summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/gamebooklib/Makefile
blob: 00dd31cbb6bb954aa274a14b67d19b9f87d135b8 (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
default: gamebooklib_test.pdf gamebooklib.pdf gamebooklib.zip 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

gamebooklib.zip : gamebooklib_countpagesperseed.sh gamebooklib.dtx gamebooklib.ins gamebooklib.pdf gamebooklib_test.pdf gamebooklib_test.tex Makefile README
	cd ..; zip gamebooklib/gamebooklib.zip \
	gamebooklib/gamebooklib_countpagesperseed.sh \
	gamebooklib/gamebooklib.dtx gamebooklib/gamebooklib.ins \
	gamebooklib/gamebooklib.pdf gamebooklib/gamebooklib_test.pdf \
	gamebooklib/gamebooklib_test.tex gamebooklib/Makefile \
	gamebooklib/README; cd gamebooklib

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