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