diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:53:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:53:56 +0000 |
commit | 96cff1ad736296ce495dc00c48dd9a0b54dcc1c1 (patch) | |
tree | b6473620631213b4956b7612414af891a620968b /Master/texmf-dist/source/latex/hhtensor/Makefile | |
parent | 24393dd97144ef3688996d3e6eb84d020d6e5af8 (diff) |
trunk/Master/texmf-dist/source/latex/hhtensor
git-svn-id: svn://tug.org/texlive/trunk@320 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hhtensor/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/hhtensor/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/hhtensor/Makefile b/Master/texmf-dist/source/latex/hhtensor/Makefile new file mode 100644 index 00000000000..a6a521b28ac --- /dev/null +++ b/Master/texmf-dist/source/latex/hhtensor/Makefile @@ -0,0 +1,72 @@ + +SRCDIR=hhtensor +INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/hhtensor +DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/hhtensor +VERSION=`grep '^\\\\def\\\\fileversion' hhtensor.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'` + + +.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf + +.ins.sty: + latex $< + +.dtx.dvi: + latex $< + latex $< + makeindex -s gind.ist $(*D)/$(*F) + makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo + latex $< + + +all: hhtensor hhtensor.dvi + +hhtensor: hhtensor.sty + +hhtensor.dvi: hhtensor.dtx hhtensor.ins + latex hhtensor.dtx + latex hhtensor.dtx + makeindex -s gind.ist hhtensor + makeindex -s gglo.ist -o hhtensor.gls hhtensor.glo + latex 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.dvi + +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)/Makefile \ + $(SRCDIR)/hhtensor.dtx \ + $(SRCDIR)/hhtensor.ins \ + $(SRCDIR)/hhtensor.dvi \ + $(SRCDIR)/hhtensor.xml + +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.dvi doc/latex/hhtensor + zip -r hhtensor-$(VERSION).zip tex doc source + rm -r tex/ doc/ source/ + +install: all + if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi + if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi + install -m644 hhtensor.sty $(INSTALLDIR) + install -m644 hhtensor.dvi $(DOCDIR) + texhash + + +hhtensor.sty: hhtensor.ins hhtensor.dtx + |