Debian Codegraph @

texmf-dist/source/latex/makebox/Makefile

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