Debian Codegraph @

texmf-dist/doc/latex/contour/Makefile

raw
1
2 SRCDIR=contour
3 INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/contour
4 DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/contour
5 VERSION=`grep '^%<.*> *\\[' contour.dtx | sed 's/^%<.*> *\\[[0-9/]* *\\(v[0-9]*\\)\\.\\([0-9]*\\).*/\\1_\\2/'`
6
7 .SUFFIXES: .sty .ins .dtx .dvi .ps .pdf
8
9 .ins.sty:
10 latex $<
11
12 .dtx.pdf:
13 pdflatex $<
14 pdflatex $<
15 makeindex -s gind.ist $(*D)/$(*F)
16 makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
17 pdflatex $<
18
19 .dvi.ps:
20 dvips -o $(*D)/$(*F).ps $(*D)/$(*F)
21
22
23 all: contour contour.pdf
24
25
26 contour: contour.sty
27
28
29 clean:
30 @-rm -f contour.glo contour.gls contour.idx contour.ilg
31 @-rm -f contour.ind contour.aux contour.log contour.toc
32 @-rm -f *~
33
34 distclean: clean
35 @-rm -f contour.sty contour.pdf dvips.cnt dvipsone.cnt pdftex.cnt vtex.cnt contour.cfg
36
37 tar: all clean
38 @echo Lege contour-$(VERSION).tar.gz an
39 -@rm -f contour-$(VERSION).tar.gz
40 @tar czCf .. contour-$(VERSION).tar.gz \
41 $(SRCDIR)/README \
42 $(SRCDIR)/ChangeLog \
43 $(SRCDIR)/Makefile \
44 $(SRCDIR)/contour.dtx \
45 $(SRCDIR)/contour.ins \
46 $(SRCDIR)/contour.pdf \
47 $(SRCDIR)/contour.xml \
48 $(SRCDIR)/contourtest.tex
49
50 zip: all clean
51 -@rm -f contour-$(VERSION).zip
52 mkdirhier tex/latex/contour
53 mkdirhier doc/latex/contour
54 mkdirhier source/latex/contour
55 mv contour.sty dvips.cnt dvipsone.cnt pdftex.cnt vtex.cnt contour.cfg tex/latex/contour
56 cp contour.dtx contour.ins contour.xml source/latex/contour
57 cp Makefile source/latex/contour
58 cp README contour.pdf ChangeLog contourtest.tex doc/latex/contour
59 zip -r contour-$(VERSION).zip tex doc source
60 rm -r tex/ doc/ source/
61
62 texlive: all clean
63 rm -rf texmf
64 mkdir -p texmf/tex/latex/contour
65 mkdir -p texmf/doc/latex/contour
66 mkdir -p texmf/source/latex/contour
67 cp contour.sty dvips.cnt dvipsone.cnt pdftex.cnt vtex.cnt contour.cfg texmf/tex/latex/contour
68 cp contour.dtx contour.ins contour.xml texmf/source/latex/contour
69 cp Makefile texmf/source/latex/contour
70 cp README ChangeLog texmf/doc/latex/contour
71 cp contour.pdf contourtest.tex texmf/doc/latex/contour
72
73 install: all
74 if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
75 if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
76 install -m644 contour.sty pdftex.cnt dvips.cnt dvipsone.cnt vtex.cnt contour.cfg $(INSTALLDIR)
77 install -m644 contour.pdf contourtest.tex README ChangeLog $(DOCDIR)
78 texhash
79
80 contour.sty: contour.ins contour.dtx
81
82 version:
83 @echo $(VERSION)