summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gamebooklib/Makefile
blob: 6925b402bdd9ee6aaeef28fa7e39d180ad058930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
default: gamebooklib_test.pdf gamebooklib.pdf tidy

gamebooklib_test.pdf : gamebooklib_test.tex gamebooklib.sty
	pdflatex \\nonstopmode\\input gamebooklib_test.tex && \
	pdflatex \\nonstopmode\\input gamebooklib_test.tex

gamebooklib.sty : gamebooklib.dtx gamebooklib.ins
	rm -f gamebooklib.sty && latex gamebooklib.ins

gamebooklib.pdf : gamebooklib.sty gamebooklib.dtx
	pdflatex \\nonstopmode\\input gamebooklib.dtx && \
	makeindex -s gglo.ist -o gamebooklib.gls gamebooklib.glo && \
	makeindex -s gind.ist -o gamebooklib.ind gamebooklib.idx && \
	pdflatex \\nonstopmode\\input gamebooklib.dtx

tidy:
	rm -f *.log *.ind *.idx *.glo *.gls *.aux *.ilg
# TODO: should we really be deleting the .sty? Check CTAN rules.
clean: tidy
	rm -f *~ *.sty