summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/hhtensor/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-30 23:03:10 +0000
committerKarl Berry <karl@freefriends.org>2011-12-30 23:03:10 +0000
commit0c0383248a5869d9927489942780617dc09aebd8 (patch)
tree751249230a4e825150d241fb69fa30f23dcd59c6 /Master/texmf-dist/doc/latex/hhtensor/Makefile
parent4eb2005bcea4ac42153a361325026f07fb9db916 (diff)
hhtensor (30dec11)
git-svn-id: svn://tug.org/texlive/trunk@24981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/hhtensor/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/hhtensor/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/hhtensor/Makefile b/Master/texmf-dist/doc/latex/hhtensor/Makefile
new file mode 100644
index 00000000000..2c4daf366fd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/hhtensor/Makefile
@@ -0,0 +1,76 @@
+
+SRCDIR=hhtensor
+INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/hhtensor
+DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/hhtensor
+VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'`
+
+
+.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf
+
+.ins.sty:
+ pdflatex $<
+
+.dtx.pdf:
+ pdflatex $<
+ pdflatex $<
+ makeindex -s gind.ist $(*D)/$(*F)
+ makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
+ pdflatex $<
+
+
+all: hhtensor hhtensor.pdf
+
+hhtensor: hhtensor.sty
+
+hhtensor.pdf: hhtensor.dtx hhtensor.ins
+ pdflatex hhtensor.dtx
+ pdflatex hhtensor.dtx
+ makeindex -s gind.ist hhtensor
+ makeindex -s gglo.ist -o hhtensor.gls hhtensor.glo
+ pdflatex hhtensor.dtx
+
+clean:
+ @-rm -f hhtensor.glo hhtensor.gls hhtensor.idx hhtensor.ilg
+ @-rm -f hhtensor.ind hhtensor.aux hhtensor.log hhtensor.toc
+ @-rm -f *~
+
+distclean: clean
+ @-rm -f hhtensor.sty hhtensor.pdf
+
+tar: all clean
+ echo Lege hhtensor-$(VERSION).tar.gz an
+ -rm -f hhtensor-$(VERSION).tar.gz
+ tar czCf .. hhtensor-$(VERSION).tar.gz \
+ $(SRCDIR)/README \
+ $(SRCDIR)/ChangeLog \
+ $(SRCDIR)/Makefile \
+ $(SRCDIR)/hhtensor.pdf \
+ $(SRCDIR)/hhtensor.dtx \
+ $(SRCDIR)/hhtensor.ins \
+ $(SRCDIR)/getversion.tex \
+ $(SRCDIR)/hhtensor.xml
+ rm getversion.log
+
+zip: all clean
+ -@rm -f hhtensor-$(VERSION).zip
+ mkdirhier tex/latex/hhtensor
+ mkdirhier doc/latex/hhtensor
+ mkdirhier source/latex/hhtensor
+ mv hhtensor.sty tex/latex/hhtensor
+ cp hhtensor.dtx hhtensor.ins hhtensor.xml source/latex/hhtensor
+ cp Makefile source/latex/hhtensor
+ cp README hhtensor.pdf doc/latex/hhtensor
+ zip -r hhtensor-$(VERSION).zip tex doc source
+ rm -r tex/ doc/ source/
+ rm getversion.log
+
+install: all
+ if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
+ if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
+ install -m644 hhtensor.sty $(INSTALLDIR)
+ install -m644 hhtensor.pdf $(DOCDIR)
+ texhash
+
+
+hhtensor.sty: hhtensor.ins hhtensor.dtx
+