summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mathcommand/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/mathcommand/makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/mathcommand/makefile')
-rw-r--r--macros/latex/contrib/mathcommand/makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/macros/latex/contrib/mathcommand/makefile b/macros/latex/contrib/mathcommand/makefile
new file mode 100644
index 0000000000..0e802f1fad
--- /dev/null
+++ b/macros/latex/contrib/mathcommand/makefile
@@ -0,0 +1,49 @@
+help:
+ @echo "This is the makefile for the mathcommand package"
+ @echo "- all: produces mathcommand.pdf mathcommand.sty mathcommand-code.pdf README.md"
+ @echo "- clean"
+ @echo "- ctan: creates the mathcommand-ctan.zip file tailored for CTAN"
+
+all: mathcommand.sty mathcommand.pdf README.md
+
+mathcommand.sty: mathcommand.dtx mathcommand.ins
+ latex mathcommand.ins
+
+README.md: mathcommand.dtx mathcommand.ins
+ latex mathcommand.ins
+
+clean:
+ rm -f *.aux *.glo *.idx *.aux *.synctex.gz *.out *.toc *.kaux *.diagnose *.log
+ rm -f *.bbl *.out *.bbl *.ind *.ilg *.idx
+ rm -f mathcommand.sty
+ rm -f mathcommand.pdf
+ rm -f mathcommand-sources-complete.zip
+ rm -f mathcommand-ctan.zip
+ rm -f README.md
+
+ctan: mathcommand-ctan.zip
+
+mathcommand.pdf: mathcommand.dtx mathcommand.sty
+ pdflatex mathcommand.dtx
+ pdflatex mathcommand.dtx
+ pdflatex mathcommand.dtx
+
+mathcommand.aux: mathcommand.dtx mathcommand.sty
+ pdflatex mathcommand.dtx
+
+sources: clean mathcommand-ctan.zip mathcommand-sources-complete.zip
+
+mathcommand-sources-complete.zip: clean
+ \rm -f mathcommand-sources-complete.zip
+ cp mathcommand-sources-complete.zip ../mathcommand-sources-complete-`date +%y-%m-%d_%H:%M`.zip
+
+mathcommand-ctan.zip: mathcommand.pdf mathcommand.sty mathcommand.ins README.md makefile
+ rm -f mathcommand-ctan.zip
+ rm -rf mathcommand
+ mkdir mathcommand
+ cp mathcommand.pdf mathcommand/
+ cp mathcommand.dtx mathcommand/
+ cp makefile mathcommand.ins README.md mathcommand/
+ zip mathcommand-ctan.zip mathcommand/*
+ rm -rf mathcommand
+