-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
59 lines (48 loc) · 1.91 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
DESTDIR ?= $(shell kpsewhich -var-value=TEXMFHOME)
INSTALL_DIR = $(DESTDIR)/tex/latex/fefu
DOC_DIR = $(DESTDIR)/doc/latex/fefu
CACHE_DIR := $(shell pwd)/.latex-cache
.PHONY: install uninstall clean
install:
@mkdir -p $(CACHE_DIR)
@cp source/fefu.ins $(CACHE_DIR)
@cp source/fefu.dtx $(CACHE_DIR)
@cp source/fefu_base.dtx $(CACHE_DIR)
@cp source/fefu_style_imct.dtx $(CACHE_DIR)
@cp source/fefu_presentation.dtx $(CACHE_DIR)
@cp source/fefu_style_default.dtx $(CACHE_DIR)
@cd $(CACHE_DIR) && latex fefu.ins && pdflatex fefu.dtx && pdflatex fefu_base.dtx && pdflatex fefu_presentation.dtx && pdflatex fefu_style_default.dtx && pdflatex fefu_style_imct.dtx
@mkdir -p $(INSTALL_DIR)
@cp $(CACHE_DIR)/fefu_base.sty $(INSTALL_DIR)
@cp $(CACHE_DIR)/fefu_style_default.sty $(INSTALL_DIR)
@cp $(CACHE_DIR)/fefu_style_imct.sty $(INSTALL_DIR)
@cp $(CACHE_DIR)/fefu.cls $(INSTALL_DIR)
@cp $(CACHE_DIR)/fefu_presentation.cls $(INSTALL_DIR)
@mkdir -p cls
@cp $(CACHE_DIR)/fefu_base.sty cls
@cp $(CACHE_DIR)/fefu_style_default.sty cls
@cp $(CACHE_DIR)/fefu_style_imct.sty cls
@cp $(CACHE_DIR)/fefu.cls cls
@cp $(CACHE_DIR)/fefu_presentation.cls cls
@mkdir -p $(DOC_DIR)
@cp $(CACHE_DIR)/fefu_base.pdf $(DOC_DIR)
@cp $(CACHE_DIR)/fefu_style_default.pdf $(DOC_DIR)
@cp $(CACHE_DIR)/fefu_style_imct.pdf $(DOC_DIR)
@cp $(CACHE_DIR)/fefu.pdf $(DOC_DIR)
@cp $(CACHE_DIR)/fefu_presentation.pdf $(DOC_DIR)
@mkdir -p doc
@cp $(CACHE_DIR)/fefu_base.pdf doc
@cp $(CACHE_DIR)/fefu_style_default.pdf doc
@cp $(CACHE_DIR)/fefu_style_imct.pdf doc
@cp $(CACHE_DIR)/fefu.pdf doc
@cp $(CACHE_DIR)/fefu_presentation.pdf doc
@cp $(CACHE_DIR)/fefu_base.sty example
@cp $(CACHE_DIR)/fefu_style_default.sty example
@cp $(CACHE_DIR)/fefu_style_imct.sty example
@cp $(CACHE_DIR)/fefu.cls example
@cp $(CACHE_DIR)/fefu_presentation.cls example
uninstall: clean
@rm -rf $(INSTALL_DIR)
@rm -rf $(DOC_DIR)
clean:
@rm -rf $(CACHE_DIR)