Debian Codegraph @

texmf-dist/doc/latex/multibibliography/Makefile

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