blob: dff99d44cd9f664fd31de6e56b94e97699931167 (
plain)
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
60
61
62
63
64
|
# +-----------------------------------------------------------------------------
# | File: Makefile
# | Author: huxuan
# | E-mail: i(at)huxuan.org
# | Created: 2012-12-18
# | Last modified: 2020-04-20
# | Description:
# | Makefile for resumecls
# |
# | Copyrgiht (c) 2012-2020 by huxuan. All rights reserved.
# +-----------------------------------------------------------------------------
PACKAGE=resumecls
.PHONY: all cls doc dist clean distclean
all: doc
# cls
cls: $(PACKAGE).cls
$(PACKAGE).cls: $(PACKAGE).ins $(PACKAGE).dtx
latex $(PACKAGE).ins
# doc
doc: $(PACKAGE).pdf
$(PACKAGE).pdf: $(PACKAGE).cls
xelatex $(PACKAGE).dtx
makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
xelatex $(PACKAGE).dtx
xelatex $(PACKAGE).dtx
# dist & clean
dist: distclean cls doc
mv $(PACKAGE).cls example/
cd example && make dist
cd .. && find $(PACKAGE) -name '*.pdf' | tar zcvf $(PACKAGE).tar.gz \
-T - --exclude-vcs --exclude-vcs-ignores $(PACKAGE)
clean:
-@rm -f \
*~ \
*.aux \
*.bbl \
*.blg \
*.dvi \
*.glo \
*.gls \
*.idx \
*.ilg \
*.ind \
*.log \
*.out
distclean: clean
-@rm -f \
*.cls \
*.pdf \
*.tar.gz
|