Debian Codegraph @

texmf-dist/source/latex/fitbox/Makefile

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