summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onlyamsmath/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/onlyamsmath/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/onlyamsmath/Makefile')
-rw-r--r--macros/latex/contrib/onlyamsmath/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/macros/latex/contrib/onlyamsmath/Makefile b/macros/latex/contrib/onlyamsmath/Makefile
new file mode 100644
index 0000000000..91a129aefe
--- /dev/null
+++ b/macros/latex/contrib/onlyamsmath/Makefile
@@ -0,0 +1,63 @@
+VERSION=`grep -e '\\[.*\\]' onlyamsmath-v.tex | sed 's/ \\[[0-9/]* *\\([v0-9]*\\)\\.\\([0-9]*\\).*\\]/\\1_\\2/'`
+
+.SUFFIXES: .sty .ins .dtx .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: onlyamsmath onlyamsmath.pdf message
+
+onlyamsmathtest.pdf:
+ pdflatex onlyamsmathtest
+
+
+onlyamsmath:
+ pdflatex onlyamsmath.ins
+
+
+
+clean:
+ @-rm -f onlyamsmath.{glo,gls,idx,ilg,ind,aux,log,toc}
+ @-rm -f onlyamsmathtest.{log,aux}
+ @-rm -f *~
+
+distclean: clean
+ @-rm -f onlyamsmath.{sty,pdf,ps}
+ @-rm -f onlyamsmathtest.{pdf,ps}
+
+tar: all clean
+ @echo Generate onlyamsmath-$(VERSION).tar.gz
+ @-rm -f onlyamsmath-$(VERSION).tar.gz
+ @tar czCf .. onlyamsmath-$(VERSION).tar.gz \
+ onlyamsmath/README \
+ onlyamsmath/ChangeLog \
+ onlyamsmath/Makefile \
+ onlyamsmath/onlyamsmath.{dtx,ins,pdf} \
+ onlyamsmath/onlyamsmathtest.tex
+
+zip: all clean
+ @echo Generate onlyamsmath-$(VERSION).zip
+ mkdir -p tex/latex/onlyamsmath
+ mkdir -p doc/latex/onlyamsmath
+ mkdir -p source/latex/onlyamsmath
+ cp onlyamsmath.sty tex/latex/onlyamsmath
+ cp README ChangeLog onlyamsmath.pdf onlyamsmathtest.tex doc/latex/onlyamsmath
+ cp onlyamsmath.dtx onlyamsmath.ins Makefile source/latex/onlyamsmath
+ @rm -f onlyamsmath-$(VERSION).zip
+ @zip -r onlyamsmath-$(VERSION).zip source/ tex/ doc/
+ rm -rf source/ tex/ doc/
+
+message:
+ @echo "Please copy onlyamsmath.sty to a directory"
+ @echo "in the LaTeX search path"
+ @echo "Then run \`latex onlyamsmathtest' to see an example"
+
+