| 1 |
# +----------------------------------------------------------------------------- |
| 2 |
# | File: Makefile |
| 3 |
# | Author: huxuan |
| 4 |
# | E-mail: i(at)huxuan.org |
| 5 |
# | Created: 2012-12-18 |
| 6 |
# | Last modified: 2020-04-20 |
| 7 |
# | Description: |
| 8 |
# | Makefile for resumecls |
| 9 |
# | |
| 10 |
# | Copyrgiht (c) 2012-2020 by huxuan. All rights reserved. |
| 11 |
# +----------------------------------------------------------------------------- |
| 12 |
|
| 13 |
PACKAGE=resumecls |
| 14 |
|
| 15 |
.PHONY: all cls doc dist clean distclean |
| 16 |
|
| 17 |
all: doc |
| 18 |
|
| 19 |
# cls |
| 20 |
|
| 21 |
cls: $(PACKAGE).cls |
| 22 |
|
| 23 |
$(PACKAGE).cls: $(PACKAGE).ins $(PACKAGE).dtx |
| 24 |
latex $(PACKAGE).ins |
| 25 |
|
| 26 |
# doc |
| 27 |
|
| 28 |
doc: $(PACKAGE).pdf |
| 29 |
|
| 30 |
$(PACKAGE).pdf: $(PACKAGE).cls |
| 31 |
xelatex $(PACKAGE).dtx |
| 32 |
makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx |
| 33 |
makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo |
| 34 |
xelatex $(PACKAGE).dtx |
| 35 |
xelatex $(PACKAGE).dtx |
| 36 |
|
| 37 |
# dist & clean |
| 38 |
|
| 39 |
dist: distclean cls doc |
| 40 |
mv $(PACKAGE).cls example/ |
| 41 |
cd example && make dist |
| 42 |
cd .. && find $(PACKAGE) -name '*.pdf' | tar zcvf $(PACKAGE).tar.gz \ |
| 43 |
-T - --exclude-vcs --exclude-vcs-ignores $(PACKAGE) |
| 44 |
|
| 45 |
clean: |
| 46 |
-@rm -f \ |
| 47 |
*~ \ |
| 48 |
*.aux \ |
| 49 |
*.bbl \ |
| 50 |
*.blg \ |
| 51 |
*.dvi \ |
| 52 |
*.glo \ |
| 53 |
*.gls \ |
| 54 |
*.idx \ |
| 55 |
*.ilg \ |
| 56 |
*.ind \ |
| 57 |
*.log \ |
| 58 |
*.out |
| 59 |
|
| 60 |
distclean: clean |
| 61 |
-@rm -f \ |
| 62 |
*.cls \ |
| 63 |
*.pdf \ |
| 64 |
*.tar.gz |