Debian Codegraph @

texmf-dist/source/latex/nomencl/Makefile

raw
1
2 PACKAGE=nomencl
3
4 SAMPLES = sample01.tex sample02.tex sample03.tex sample04.tex sample05.tex
5
6 CFG = sample04.cfg sample05.cfg sample06.cfg
7
8
9 SAMPLEPDF = ${SAMPLES:%.tex=%.pdf}
10
11 PDF = $(PACKAGE).pdf ${SAMPLEPDF}
12
13 all: ${PDF} ${SAMPLES} ${CFG} ${PACKAGE}.sty
14
15
16 %.sty: %.ins %.dtx
17 pdflatex $*.ins
18
19 sample%.tex: nomencl.ins nomencl.sty
20 pdflatex nomencl.ins
21
22 sample%.cfg: nomencl.ins nomencl.dtx
23 pdflatex nomencl.ins
24
25
26 %.pdf: %.dtx ${PACKAGE}.sty
27 pdflatex $<
28 - bibtex $*
29 pdflatex $<
30 - makeindex -s gind.ist -o $*.ind $*.idx
31 - makeindex -s gglo.ist -o $*.gls $*.glo
32 pdflatex $<
33 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
34 do pdflatex $<; done
35
36
37 sample%.pdf: sample%.tex ${CFG} ${PACKAGE}.sty
38 pdflatex sample$*.tex
39 makeindex sample$*.nlo -s nomencl.ist -o sample$*.nls
40 pdflatex sample$*.tex
41 pdflatex sample$*.tex
42
43
44
45 clean:
46 $(RM) ${PACKAGE}.sty *.log *.aux \
47 *.cfg *.glo *.idx *.toc \
48 *.ilg *.ind *.out *.lof \
49 *.lot *.bbl *.blg *.gls *.cut *.hd \
50 *.dvi *.ps *.thm *.tgz *.zip *.rpi *.drv *.ist \
51 *.nlo *.nls ${SAMPLES} ${CFG}
52
53 distclean: clean
54 $(RM) $(PDF)
55
56 #
57 # Archive for the distribution. Includes typeset documentation
58 #
59 archive: all clean
60 COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' $(PACKAGE); mv ../$(PACKAGE).tgz .
61
62 zip: all clean
63 zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'
64
65 .PRECIOUS: ${SAMPLES} ${CFG}