Debian Codegraph @

texmf-dist/doc/latex/ijmart/Makefile

raw
1 #
2 # Makefile for ijmart package
3 #
4 # This file is in public domain
5 #
6 # $Id: Makefile,v 1.4 2007-08-21 02:04:10 boris Exp $
7 #
8
9 PACKAGE=ijmart
10
11 SAMPLES = \
12 ijmsample.tex
13
14 PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}
15
16 all: ${PDF}
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
34 pdflatex $<
35 - bibtex $*
36 pdflatex $<
37 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
38 do pdflatex $<; done
39
40
41
42 .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls
43
44
45 clean:
46 $(RM) $(PACKAGE).cls *.log *.aux \
47 *.cfg *.glo *.idx *.toc \
48 *.ilg *.ind *.out *.lof \
49 *.lot *.bbl *.blg *.gls \
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 '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS .
60
61 zip: all clean
62 zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'