Debian Codegraph @

texmf-dist/source/latex/mugsthesis/Makefile

raw
1 PACKAGE=mugsthesis
2
3 PDF = $(PACKAGE).pdf
4
5 all: ${PDF} SAMPLE
6
7 %.pdf: %.dtx $(PACKAGE).cls
8 pdflatex $<
9 - makeindex -s gind.ist -o $*.ind $*.idx
10 - makeindex -s gglo.ist -o $*.gls $*.glo
11 pdflatex $<
12 while ( grep -1 '^LaTeX Warning: Label(s) may have changed' $*.log) do pdflatex $<; done
13
14 %.cls: %.ins %.dtx
15 latex $<
16
17 SAMPLE: sample/$(PACKAGE)_sample.tex sample/$(PACKAGE).cls
18 latexmk -pdf -cd $<
19
20 sample/%: %
21 cp $^ sample
22
23 sample/$(PACKAGE).cls: $(PACKAGE).cls
24
25 .PRECIOUS: $(PACKAGE).cls
26
27 docclean:
28 $(RM) *.log *.aux *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.lof *.lot \
29 sample/*.log sample/*.aux sample/*.out sample/*.bbl sample/*.blg sample/*.fls \
30 sample/*.lof sample/*.lot sample/*.toc sample/*.fdb_latexmk sample/$(PACKAGE).cls
31
32 clean: docclean
33 $(RM) $(PACKAGE).cls
34
35 distclean: clean
36 $(RM) *.pdf sample/*.pdf
37
38 ctan: all clean
39 COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '.git*' --exclude '*.tgz' $(PACKAGE); mv ../$(PACKAGE).tgz .
40
41 .PHONY: all SAMPLE docclean clean distclean ctan