Debian Codegraph @

texmf-dist/source/latex/adjmulticol/Makefile

raw
1 #
2 # Makefile for adjmulticol package
3 #
4 # This file is in public domain
5 #
6 # $Id$
7 #
8
9 PACKAGE=adjmulticol
10 SAMPLES = sample.tex
11
12 all: $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}
13
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
27 pdflatex $<
28 - bibtex $*
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
48
49 veryclean: clean
50 $(RM) *.pdf
51
52 distclean: veryclean
53
54 #
55 # Archive for the distribution. Includes typeset documentation
56 #
57 archive: all clean
58 COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' $(PACKAGE); mv ../$(PACKAGE).tgz .
59
60 zip: all clean
61 ${MAKE} $(PACKAGE).sty
62 $(RM) *.log
63 zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x "*.ins" -x CVS -x 'CVS/*'