| 1 |
|
| 2 |
SRCDIR=numprint |
| 3 |
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/numprint |
| 4 |
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/numprint |
| 5 |
#VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/g'` |
| 6 |
VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION //' | sed 's/\\([0-9]*\\)\\.\\([0-9a-z]*\\)/\\1_\\2/g'` |
| 7 |
|
| 8 |
|
| 9 |
.SUFFIXES: .sty .ins .dtx .pdf |
| 10 |
|
| 11 |
.ins.sty: |
| 12 |
pdflatex $< |
| 13 |
|
| 14 |
.dtx.pdf: |
| 15 |
pdflatex $< |
| 16 |
pdflatex $< |
| 17 |
makeindex -s gind.ist $(*D)/$(*F) |
| 18 |
makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo |
| 19 |
pdflatex $< |
| 20 |
|
| 21 |
|
| 22 |
all: numprint.sty numprint.pdf numprinttest.pdf \ |
| 23 |
nbaseprt.pdf nbaseprttest.pdf |
| 24 |
|
| 25 |
numprinttest.pdf: numprinttest.tex numprint.sty |
| 26 |
pdflatex numprinttest |
| 27 |
|
| 28 |
nbaseprttest.pdf: nbaseprttest.tex nbaseprt.sty |
| 29 |
pdflatex nbaseprttest |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
clean: |
| 34 |
@-rm -f numprint.glo numprint.gls numprint.idx numprint.ilg |
| 35 |
@-rm -f numprint.ind numprint.aux numprint.log numprint.toc |
| 36 |
@-rm -f numprinttest.log numprinttest.aux |
| 37 |
@-rm -f nbaseprt.glo nbaseprt.gls nbaseprt.idx nbaseprt.ilg |
| 38 |
@-rm -f nbaseprt.ind nbaseprt.aux nbaseprt.log nbaseprt.toc |
| 39 |
@-rm -f nbaseprttest.log nbaseprttest.aux |
| 40 |
@-rm -f *~ |
| 41 |
|
| 42 |
distclean: clean |
| 43 |
@-rm -f numprint.sty numprint.pdf numprint032.sty |
| 44 |
@-rm -f numprinttest.pdf |
| 45 |
@-rm -f nbaseprt.sty nbaseprt.pdf nbaseprt032.sty |
| 46 |
@-rm -f nbaseprttest.pdf |
| 47 |
|
| 48 |
tar: all clean |
| 49 |
echo Lege numprint-$(VERSION).tar.gz an |
| 50 |
-rm -f numprint-$(VERSION).tar.gz |
| 51 |
tar czCf .. numprint-$(VERSION).tar.gz \ |
| 52 |
$(SRCDIR)/README \ |
| 53 |
$(SRCDIR)/ChangeLog.numprint \ |
| 54 |
$(SRCDIR)/ChangeLog.nbaseprt \ |
| 55 |
$(SRCDIR)/Makefile \ |
| 56 |
$(SRCDIR)/numprint.dtx \ |
| 57 |
$(SRCDIR)/nbaseprt.dtx \ |
| 58 |
$(SRCDIR)/numprint.ins \ |
| 59 |
$(SRCDIR)/numprint.pdf \ |
| 60 |
$(SRCDIR)/nbaseprt.pdf \ |
| 61 |
$(SRCDIR)/numprint032.dtx \ |
| 62 |
$(SRCDIR)/numprinttest.tex \ |
| 63 |
$(SRCDIR)/nbaseprttest.tex \ |
| 64 |
$(SRCDIR)/getversion.tex |
| 65 |
rm -f getversion.log |
| 66 |
|
| 67 |
texlive: all clean |
| 68 |
rm -rf texmf |
| 69 |
mkdir -p texmf/tex/latex/numprint |
| 70 |
mkdir -p texmf/doc/latex/numprint |
| 71 |
mkdir -p texmf/source/latex/numprint |
| 72 |
cp numprint.sty nbaseprt.sty numprint032.sty texmf/tex/latex/numprint |
| 73 |
cp numprint.dtx numprint.ins texmf/source/latex/numprint |
| 74 |
cp nbaseprt.dtx texmf/source/latex/numprint |
| 75 |
cp numprint032.dtx Makefile texmf/source/latex/numprint |
| 76 |
cp README ChangeLog.numprint ChangeLog.nbaseprt texmf/doc/latex/numprint |
| 77 |
cp numprinttest.tex numprint.pdf texmf/doc/latex/numprint |
| 78 |
cp nbaseprttest.tex nbaseprt.pdf texmf/doc/latex/numprint |
| 79 |
|
| 80 |
zip: all clean texlive |
| 81 |
-@rm -f numprint-$(VERSION).zip |
| 82 |
zip -r numprint-$(VERSION).zip texmf |
| 83 |
rm -r texmf/ |
| 84 |
rm -f getversion.log |
| 85 |
|
| 86 |
install: all |
| 87 |
if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi |
| 88 |
if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi |
| 89 |
install -m644 numprint.sty numprint032.sty nbaseprt.sty $(INSTALLDIR) |
| 90 |
install -m644 numprint.pdf numprinttest.tex $(DOCDIR) |
| 91 |
install -m644 nbaseprt.pdf nbaseprttest.tex $(DOCDIR) |
| 92 |
install -m644 README ChangeLog.numprint ChangeLog.nbaseprt $(DOCDIR) |
| 93 |
texhash |
| 94 |
|
| 95 |
numprint.sty: numprint.ins numprint.dtx |
| 96 |
nbaseprt.sty: numprint.ins nbaseprt.dtx |