Debian Codegraph @

texmf-dist/source/latex/sageep/Makefile

raw
1 #
2 # Makefile for sageep package
3 #
4 # This file is in public domain
5 #
6 # $Id: Makefile,v 1.4 2009-01-09 19:14:43 boris Exp $
7 #
8
9 PACKAGE=sageep
10
11 SAMPLES = sample.tex
12
13
14 PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}
15
16 all: ${PDF} $(PACKAGE).bst
17
18
19 %.pdf: %.dtx $(PACKAGE).cls
20 pdflatex $<
21 - bibtex $*
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 %.cls: %.ins %.dtx
31 pdflatex $<
32
33 %.pdf: %.tex $(PACKAGE).cls $(PACKAGE).bst
34 pdflatex $<
35 - bibtex $*
36 pdflatex $<
37 pdflatex $<
38 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
39 do pdflatex $<; done
40
41
42 .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls
43
44
45 clean:
46 $(RM) $(PACKAGE).cls *.log *.aux \
47 *.glo *.idx *.toc *.tbc \
48 *.ilg *.ind *.out *.lof \
49 *.lot *.bbl *.blg *.gls *.sty *.ist \
50 *.dvi *.ps *.thm *.tgz *.zip
51
52 distclean: clean
53 $(RM) $(PDF)
54
55 #
56 # Archive for the distribution. Includes typeset documentation
57 #
58 archive: all clean
59 tar -czvf $(PACKAGE).tgz --exclude 'debug*' \
60 --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS .
61
62
63 zip: all clean
64 zip -r $(PACKAGE).zip * \
65 -x 'debug*' -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'