summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/isodate/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-11 23:54:09 +0000
committerKarl Berry <karl@freefriends.org>2006-01-11 23:54:09 +0000
commit6d194c5911349b081e4f5d2fceae6e70de7f6063 (patch)
tree10e7be211eb504885b2d390786b57629eef06a70 /Master/texmf-dist/source/latex/isodate/Makefile
parente1631ad38523ce5a94b368ef94f755e305f5a0cd (diff)
trunk/Master/texmf-dist/source/latex/isodate
git-svn-id: svn://tug.org/texlive/trunk@333 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/isodate/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/isodate/Makefile93
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/isodate/Makefile b/Master/texmf-dist/source/latex/isodate/Makefile
new file mode 100644
index 00000000000..760d4488983
--- /dev/null
+++ b/Master/texmf-dist/source/latex/isodate/Makefile
@@ -0,0 +1,93 @@
+SRCDIR=isodate
+INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/isodate
+DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/isodate
+VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'`
+
+.SUFFIXES: .sty .ins .dtx .pdf
+
+LANG= danish.idf english.idf french.idf german.idf norsk.idf swedish.idf
+
+.ins.sty:
+ latex $<
+
+.dtx.pdf:
+ pdflatex $<
+ pdflatex $<
+ makeindex -s gind.ist $(*D)/$(*F)
+ makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
+ pdflatex $<
+
+all: isodate isodate.pdf isodateo.pdf testdate.pdf
+
+isodate.sty: isodate.ins isodate.dtx
+
+testdate.pdf: testdate.tex isodate.sty
+ pdflatex testdate
+
+isodate: isodate.sty $(LANG)
+
+
+danish.idf: isodate.ins
+ latex isodate.ins
+english.idf: isodate.ins
+ latex isodate.ins
+french.idf: isodate.ins
+ latex isodate.ins
+german.idf: isodate.ins
+ latex isodate.ins
+swedish.idf: isodate.ins
+ latex isodate.ins
+
+substr:
+ @if [ -z `kpsewhich substr.sty` ]; then \
+ echo; echo "Error installing isodate:"; \
+ echo "This version of isodate needs the package substr.sty"; \
+ echo "which cannot be found in your system."; \
+ echo; \
+ echo "Please download it from CTAN:/macros/latex/contrib/substr/."; \
+ echo "One of the possible CTAN nodes is ftp.dante.de."; \
+ echo "Try to execute make after installing substr.sty again."; \
+ echo; exit; fi
+
+
+clean:
+ @-rm -f isodate.{glo,gls,idx,ilg,ind,aux,log,toc}
+ @-rm -f isodateo.{glo,gls,idx,ilg,ind,aux,log,toc}
+ @-rm -f testdate.{log,aux}
+ @-rm -f *~
+
+distclean: clean
+ @-rm -f $(LANG)
+ @-rm -f isodate.sty isodate.pdf
+ @-rm -f isodateo.sty isodateo.pdf
+ @-rm -f testdate.pdf
+
+tar: all clean
+ echo Lege isodate-$(VERSION).tar.gz an
+ -rm -f isodate-$(VERSION).tar.gz
+ tar czhCf .. isodate-$(VERSION).tar.gz \
+ isodate/README isodate/ChangeLog isodate/Makefile \
+ isodate/isodate.{dtx,ins,pdf} \
+ isodate/isodateo.{dtx,pdf} \
+ isodate/testdate.{pdf,tex} \
+ isodate/getversion.tex \
+ isodate/testisodate_without_babel.tex \
+ isodate/isodate.xml
+ rm -f getversion.log
+
+texlive: all clean
+ rm -rf texmf
+ mkdir -p texmf/tex/latex/isodate
+ mkdir -p texmf/doc/latex/isodate
+ mkdir -p texmf/source/latex/isodate
+ cp isodate.sty isodateo.sty *.idf texmf/tex/latex/isodate/
+ cp isodate.pdf README ChangeLog isodate.xml texmf/doc/latex/isodate/
+ cp isodate.dtx isodate.ins Makefile texmf/source/latex/isodate/
+ cp isodateo.dtx texmf/source/latex/isodate/
+
+install: all
+ if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
+ if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
+ install -m644 *.sty *.idf $(INSTALLDIR)
+ install -m644 isodate.pdf README ChangeLog $(DOCDIR)
+ texhash