Debian Codegraph @

texmf-dist/source/latex/nmbib/Makefile

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