summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/resumecls/Makefile
blob: ebb0955055e24bac2e7588e0d90b15a93bd9aa4f (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
# +-----------------------------------------------------------------------------
# | File: Makefile
# | Author: huxuan
# | E-mail: i(at)huxuan.org
# | Created: 2012-12-18
# | Last modified: 2013-03-17
# | Description:
# |     Makefile for resumecls
# |
# | Copyrgiht (c) 2012-2013 by huxuan. All rights reserved.
# +-----------------------------------------------------------------------------

PACKAGE=resumecls

.PHONY: all cls doc 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

# clean & distclean

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

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