Debian Codegraph @

texmf-dist/source/latex/philosophersimprint/Makefile

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