Debian Codegraph @

texmf-dist/source/latex/multiaudience/Makefile

raw
1 #
2 #
3 # This file is in public domain
4 #
5 # $Id: Makefile,v 1.4 2021/10/02 22:18:28 boris Exp $
6 #
7
8 PACKAGE=multiaudience
9 PDF = sample-execs.pdf sample-devs.pdf sample-admins.pdf sample-admins,execs.pdf sample-admins,devs.pdf sample-execs,devs.pdf
10
11
12 all: $(PACKAGE).pdf ${PDF}
13
14 %.pdf: %.dtx $(PACKAGE).sty
15 pdflatex $<
16 - bibtex $*
17 pdflatex $<
18 - makeindex -s gind.ist -o $*.ind $*.idx
19 - makeindex -s gglo.ist -o $*.gls $*.glo
20 pdflatex $<
21 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
22 do pdflatex $<; done
23
24
25
26
27 %.sty: %.ins %.dtx
28 pdflatex $<
29
30 sample-%.pdf: sample.tex $(PACKAGE).sty
31 pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
32 -bibtex sample-$*
33 pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
34 while ( grep -q '^LaTeX Warning: Label(s) may have changed' sample-$*.log) \
35 do pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"; done
36
37
38 .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).sty
39
40
41 clean:
42 $(RM) $(PACKAGE).sty *.log *.aux \
43 *.cfg *.glo *.idx *.toc \
44 *.ilg *.ind *.out *.lof \
45 *.lot *.bbl *.blg *.gls *.hd \
46 *.dvi *.ps *.tgz *.zip *.brf
47
48 veryclean: clean
49 $(RM) $(PACKAGE).pdf ${PDF}
50
51 distclean: veryclean
52
53 #
54 # Archive for the distribution. Includes typeset documentation
55 #
56 archive: all clean
57 tar -czvf $(PACKAGE).tgz -C .. --exclude '*~' --exclude '*.tgz' --exclude CVS $(PACKAGE)
58
59 zip: all clean
60 ${MAKE} $(PACKAGE).sty
61 $(RM) *.log
62 zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'