Debian Codegraph @

texmf-dist/source/latex/commedit/Makefile

raw
1 #
2 # Makefile for commedit package
3 #
4 # This file is in public domain
5 #
6 # $Id: Makefile,v 1.2 2012-02-25 21:06:49 boris Exp $
7 #
8
9 PACKAGE=commedit
10
11 SAMPLESTEX = sample.tex
12
13 SAMPLESPDF = ${SAMPLESTEX:%.tex=%.pdf} commented.pdf
14
15 all: $(PACKAGE).pdf $(SAMPLESPDF)
16
17
18 %.pdf: %.dtx $(PACKAGE).sty
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 %.pdf: %.tex $(PACKAGE).sty
30 pdflatex $<
31 - bibtex $*
32 pdflatex $<
33 - makeindex -o $*.ind $*.idx
34 pdflatex $<
35 while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
36 do pdflatex $<; done
37
38 commented.tex: sample.tex
39 pdflatex $<
40
41 %.sty: %.ins %.dtx
42 pdflatex $<
43
44
45
46 .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).sty
47
48
49 clean:
50 $(RM) *.sty *.log *.aux \
51 *.cfg *.glo *.idx *.toc \
52 *.ilg *.ind *.out *.lof \
53 *.lot *.bbl *.blg *.gls \
54 *.dvi *.ps *.hd commented.tex
55
56 distclean veryclean: clean
57 $(RM) *.pdf
58
59 #
60 # Archive for the distribution. Includes typeset documentation
61 #
62 archive: all clean
63 COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz \
64 --exclude '*~' --exclude '*.tgz' --exclude .git \
65 --exclude .gitignore $(PACKAGE) ;\
66 mv ../$(PACKAGE).tgz .;
67
68 zip: all clean
69 ${MAKE} ${PACKAGE}.sty
70 ${RM} *.log
71 cd .. && zip -r ${PACKAGE}.zip ${PACKAGE} \
72 -x '*/.git' -x '*/.gitignore' \
73 -x '*/.git/*' -x '*/.gitignore' \
74 -x '*/*.ins'