Debian Codegraph @

texmf-dist/source/latex/resphilosophica/Makefile

raw
1 #
2 # Makefile for resphilosophica package
3 #
4 # This file is in public domain
5 #
6 # $Id: Makefile,v 1.11 2018/02/22 01:45:45 boris Exp $
7 #
8
9 PACKAGE=resphilosophica
10
11 SAMPLES = rpsample.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 pdflatex $<
37 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
38 do pdflatex $<; done
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 \
49 *.dvi *.ps *.hd *.rpi *.notes
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/resphilosophica/' latex