summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/resumecls/Makefile
blob: 7dc22dcbc7ee5242d30fc6a3d513f18c91458e46 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# +-----------------------------------------------------------------------------
# | File: Makefile
# | Author: huxuan
# | E-mail: i(at)huxuan.org
# | Created: 2012-12-18
# | Last modified: 2012-12-19
# | Description:
# |     Makefile for resumecls
# |
# | Copyrgiht (c) 2012 by huxuan. All rights reserved.
# | License GPLv3
# +-----------------------------------------------------------------------------

include config.mk
EXAMPLE=example
EXAMPLEZH=example-zh
EXAMPLEEN=example-en

PACKAGE=resumecls

.PHONY: all cls doc example example-zh example-en resume resume-zh resume-en
.PHONY: clean distclean

all: doc example-zh example-en

# 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

# example

example: example-zh example-en

# example-zh

example-zh: $(EXAMPLEZH).pdf

$(EXAMPLEZH).pdf: $(PACKAGE).cls $(EXAMPLEZH).tex $(EXAMPLEZH).bbl
	xelatex $(EXAMPLEZH).tex
	xelatex $(EXAMPLEZH).tex

$(EXAMPLEZH).bbl:
	xelatex $(EXAMPLEZH).tex
	-bibtex $(EXAMPLEZH)

# example-en

example-en: $(EXAMPLEEN).pdf

$(EXAMPLEEN).pdf: $(PACKAGE).cls $(EXAMPLEEN).tex $(EXAMPLEEN).bbl
	xelatex $(EXAMPLEEN).tex
	xelatex $(EXAMPLEEN).tex

$(EXAMPLEEN).bbl:
	xelatex $(EXAMPLEEN).tex
	-bibtex $(EXAMPLEEN)

# resume

resume: resume-zh resume-en

# resume-zh

resume-zh: $(RESUMEZH).pdf

$(RESUMEZH).pdf: $(PACKAGE).cls $(RESUMEZH).tex $(RESUMEZH).bbl
	xelatex $(RESUMEZH).tex
	xelatex $(RESUMEZH).tex

$(RESUMEZH).bbl:
	xelatex $(RESUMEZH).tex
	-bibtex $(RESUMEZH)

# resume-en

resume-en: $(RESUMEEN).pdf

$(RESUMEEN).pdf: $(PACKAGE).cls $(RESUMEEN).tex $(RESUMEEN).bbl
	xelatex $(RESUMEEN).tex
	xelatex $(RESUMEEN).tex

$(RESUMEEN).bbl:
	xelatex $(RESUMEEN).tex
	-bibtex $(RESUMEEN)

# dist & clean

clean:
	-@rm -f \
		*~ \
		*.aux \
		*.bbl \
		*.blg \
		*.dvi \
		*.glo \
		*.gls \
		*.idx \
		*.ilg \
		*.ind \
		*.log \
		*.out

distclean: clean
	-@rm -f \
		*.cls \
		*.pdf