Debian Codegraph @

texmf-dist/source/latex/aomart/Makefile

raw
1 #
2 # Makefile for aomart package
3 #
4 # This file is in public domain
5 #
6 # $Id: Makefile,v 1.10 2025/03/06 20:39:10 boris Exp $
7 #
8
9 PACKAGE=aomart
10
11 SAMPLES = \
12 aomsample.tex\
13 aomsample1.tex \
14 aomfrench.tex
15
16 SCRIPTS = aom-fullref.pl
17
18 MAN1 = ${SCRIPTS:%.pl=%.1}
19
20
21 PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}
22
23 all: ${PDF} ${MAN1}
24
25 %.1: %.pl
26 pod2man -c "LATEX AOMART" -n $* -s 1 -r "" $< > $@
27
28
29 %.pdf: %.dtx $(PACKAGE).cls
30 pdflatex $<
31 - bibtex $*
32 pdflatex $<
33 - makeindex -s gind.ist -o $*.ind $*.idx
34 - makeindex -s gglo.ist -o $*.gls $*.glo
35 pdflatex $<
36 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
37 do pdflatex $<; done
38
39
40 %.cls: %.ins %.dtx
41 pdflatex $<
42
43 %.pdf: %.tex $(PACKAGE).cls
44 pdflatex $<
45 - bibtex $*
46 pdflatex $<
47 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
48 do pdflatex $<; done
49
50 aomsample1.tex: aom-fullref.pl aomsample.tex
51 perl aom-fullref.pl aomsample.tex > aomsample1.tex
52
53
54 .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls
55
56
57 clean:
58 $(RM) $(PACKAGE).cls *.log *.aux \
59 *.cfg *.glo *.idx *.toc \
60 *.ilg *.ind *.out *.lof \
61 *.lot *.bbl *.blg *.gls \
62 *.dvi *.ps *.thm *.tgz *.zip *.rpi *.hd
63
64 distclean: clean
65 $(RM) $(PDF) aomsample1.tex *.1
66
67 #
68 # Archive for the distribution. Includes typeset documentation
69 #
70 archive: all clean
71 COPYFILE_DISABLE=1 \
72 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' \
73 --exclude '*.tgz' --exclude '*.zip' --exclude CVS $(PACKAGE)
74 mv ../$(PACKAGE).tgz .
75
76 zip: all clean
77 ${MAKE} $(PACKAGE).cls
78 $(RM) *.log
79 zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'