diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-01 23:05:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-01 23:05:44 +0000 |
commit | 23ab143d707b8fa83fb9c63646807bc43b9456af (patch) | |
tree | 9c240f06526e7d7c5e08a9f5bbbd39f0a1535370 /Master/texmf-dist/doc/latex/typogrid/Makefile | |
parent | 053930a0ae346b5d7e31ad8e9e576cac0ea1bb70 (diff) |
typogrid 0.21 (1jan12)
git-svn-id: svn://tug.org/texlive/trunk@24994 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/typogrid/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/typogrid/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/typogrid/Makefile b/Master/texmf-dist/doc/latex/typogrid/Makefile new file mode 100644 index 00000000000..8ea95b17b8a --- /dev/null +++ b/Master/texmf-dist/doc/latex/typogrid/Makefile @@ -0,0 +1,68 @@ + +SRCDIR=typogrid +INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/typogrid +DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/typogrid +VERSION=`latex getversion | grep '^VERSION' | sed 's/^VERSION \\(.*\\)\\.\\(.*\\)/\\1_\\2/'` + + +.SUFFIXES: .sty .ins .dtx .pdf .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: typogrid.sty typogrid.pdf + + +clean: + @-rm -f typogrid.glo typogrid.gls typogrid.idx typogrid.ilg + @-rm -f typogrid.ind typogrid.aux typogrid.log typogrid.toc + @-rm -f testtypogrid.aux testtypogrid.log + @-rm -f *~ + +distclean: clean + @-rm -f typogrid.sty typogrid.pdf + @-rm -f testtypogrid.pdf + +tar: all clean + -rm -f typogrid-$(VERSION).tar.gz + tar czCf .. typogrid-$(VERSION).tar.gz \ + $(SRCDIR)/README \ + $(SRCDIR)/ChangeLog \ + $(SRCDIR)/Makefile \ + $(SRCDIR)/typogrid.dtx \ + $(SRCDIR)/typogrid.ins \ + $(SRCDIR)/typogrid.pdf \ + $(SRCDIR)/getversion.tex \ + $(SRCDIR)/testtypogrid.tex + rm -f getversion.log + +zip: all clean + -@rm -f typogrid-$(VERSION).zip + mkdirhier tex/latex/typogrid + mkdirhier doc/latex/typogrid + mkdirhier source/latex/typogrid + mv typogrid.sty tex/latex/typogrid + cp typogrid.dtx typogrid.ins typogrid.xml source/latex/typogrid + cp Makefile source/latex/typogrid + cp README ChangeLog typogrid.pdf testtypogrid.tex doc/latex/typogrid + zip -r typogrid-$(VERSION).zip tex doc source + rm -r tex/ doc/ source/ + rm -f getversion.log + +install: all + if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi + if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi + install -m644 typogrid.sty $(INSTALLDIR) + install -m644 typogrid.pdf $(DOCDIR) + texhash + + +typogrid.sty: typogrid.ins typogrid.dtx + |