Debian Codegraph @

texmf-dist/source/latex/nostarch/Makefile

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