| 1 |
|
| 2 |
SRCDIR=hhtensor |
| 3 |
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/hhtensor |
| 4 |
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/hhtensor |
| 5 |
VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'` |
| 6 |
|
| 7 |
|
| 8 |
.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf |
| 9 |
|
| 10 |
.ins.sty: |
| 11 |
pdflatex $< |
| 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 |
|
| 21 |
all: hhtensor hhtensor.pdf |
| 22 |
|
| 23 |
hhtensor: hhtensor.sty |
| 24 |
|
| 25 |
hhtensor.pdf: hhtensor.dtx hhtensor.ins |
| 26 |
pdflatex hhtensor.dtx |
| 27 |
pdflatex hhtensor.dtx |
| 28 |
makeindex -s gind.ist hhtensor |
| 29 |
makeindex -s gglo.ist -o hhtensor.gls hhtensor.glo |
| 30 |
pdflatex hhtensor.dtx |
| 31 |
|
| 32 |
clean: |
| 33 |
@-rm -f hhtensor.glo hhtensor.gls hhtensor.idx hhtensor.ilg |
| 34 |
@-rm -f hhtensor.ind hhtensor.aux hhtensor.log hhtensor.toc |
| 35 |
@-rm -f *~ |
| 36 |
|
| 37 |
distclean: clean |
| 38 |
@-rm -f hhtensor.sty hhtensor.pdf |
| 39 |
|
| 40 |
tar: all clean |
| 41 |
echo Lege hhtensor-$(VERSION).tar.gz an |
| 42 |
-rm -f hhtensor-$(VERSION).tar.gz |
| 43 |
tar czCf .. hhtensor-$(VERSION).tar.gz \ |
| 44 |
$(SRCDIR)/README \ |
| 45 |
$(SRCDIR)/ChangeLog \ |
| 46 |
$(SRCDIR)/Makefile \ |
| 47 |
$(SRCDIR)/hhtensor.pdf \ |
| 48 |
$(SRCDIR)/hhtensor.dtx \ |
| 49 |
$(SRCDIR)/hhtensor.ins \ |
| 50 |
$(SRCDIR)/getversion.tex \ |
| 51 |
$(SRCDIR)/hhtensor.xml |
| 52 |
rm getversion.log |
| 53 |
|
| 54 |
zip: all clean |
| 55 |
-@rm -f hhtensor-$(VERSION).zip |
| 56 |
mkdirhier tex/latex/hhtensor |
| 57 |
mkdirhier doc/latex/hhtensor |
| 58 |
mkdirhier source/latex/hhtensor |
| 59 |
mv hhtensor.sty tex/latex/hhtensor |
| 60 |
cp hhtensor.dtx hhtensor.ins hhtensor.xml source/latex/hhtensor |
| 61 |
cp Makefile source/latex/hhtensor |
| 62 |
cp README hhtensor.pdf doc/latex/hhtensor |
| 63 |
zip -r hhtensor-$(VERSION).zip tex doc source |
| 64 |
rm -r tex/ doc/ source/ |
| 65 |
rm getversion.log |
| 66 |
|
| 67 |
install: all |
| 68 |
if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi |
| 69 |
if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi |
| 70 |
install -m644 hhtensor.sty $(INSTALLDIR) |
| 71 |
install -m644 hhtensor.pdf $(DOCDIR) |
| 72 |
texhash |
| 73 |
|
| 74 |
|
| 75 |
hhtensor.sty: hhtensor.ins hhtensor.dtx |
| 76 |
|