Debian Codegraph @

texmf-dist/source/latex/isodate/Makefile

raw
1 SRCDIR=isodate
2 INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/isodate
3 DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/isodate
4 VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'`
5
6 .SUFFIXES: .sty .ins .dtx .pdf
7
8 LANG= danish.idf english.idf french.idf german.idf norsk.idf swedish.idf
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 all: isodate isodate.pdf isodateo.pdf testdate.pdf
21
22 isodate.sty: isodate.ins isodate.dtx
23
24 testdate.pdf: testdate.tex isodate.sty
25 pdflatex testdate
26
27 isodate: isodate.sty $(LANG)
28
29
30 danish.idf: isodate.ins
31 latex isodate.ins
32 english.idf: isodate.ins
33 latex isodate.ins
34 french.idf: isodate.ins
35 latex isodate.ins
36 german.idf: isodate.ins
37 latex isodate.ins
38 swedish.idf: isodate.ins
39 latex isodate.ins
40
41 substr:
42 @if [ -z `kpsewhich substr.sty` ]; then \
43 echo; echo "Error installing isodate:"; \
44 echo "This version of isodate needs the package substr.sty"; \
45 echo "which cannot be found in your system."; \
46 echo; \
47 echo "Please download it from CTAN:/macros/latex/contrib/substr/."; \
48 echo "One of the possible CTAN nodes is ftp.dante.de."; \
49 echo "Try to execute make after installing substr.sty again."; \
50 echo; exit; fi
51
52
53 clean:
54 @-rm -f isodate.{glo,gls,idx,ilg,ind,aux,log,toc}
55 @-rm -f isodateo.{glo,gls,idx,ilg,ind,aux,log,toc}
56 @-rm -f testdate.{log,aux}
57 @-rm -f *~
58
59 distclean: clean
60 @-rm -f $(LANG)
61 @-rm -f isodate.sty isodate.pdf
62 @-rm -f isodateo.sty isodateo.pdf
63 @-rm -f testdate.pdf
64
65 tar: all clean
66 echo Lege isodate-$(VERSION).tar.gz an
67 -rm -f isodate-$(VERSION).tar.gz
68 tar czhCf .. isodate-$(VERSION).tar.gz \
69 isodate/README isodate/ChangeLog isodate/Makefile \
70 isodate/isodate.{dtx,ins,pdf} \
71 isodate/isodateo.{dtx,pdf} \
72 isodate/testdate.{pdf,tex} \
73 isodate/getversion.tex \
74 isodate/testisodate_without_babel.tex \
75 isodate/isodate.xml
76 rm -f getversion.log
77
78 texlive: all clean
79 rm -rf texmf
80 mkdir -p texmf/tex/latex/isodate
81 mkdir -p texmf/doc/latex/isodate
82 mkdir -p texmf/source/latex/isodate
83 cp isodate.sty isodateo.sty *.idf texmf/tex/latex/isodate/
84 cp isodate.pdf README ChangeLog isodate.xml texmf/doc/latex/isodate/
85 cp isodate.dtx isodate.ins Makefile texmf/source/latex/isodate/
86 cp isodateo.dtx texmf/source/latex/isodate/
87
88 install: all
89 if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
90 if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
91 install -m644 *.sty *.idf $(INSTALLDIR)
92 install -m644 isodate.pdf README ChangeLog $(DOCDIR)
93 texhash