| 1 |
help: |
| 2 |
@echo "This is the makefile for the mathcommand package" |
| 3 |
@echo "- all: produces mathcommand.pdf mathcommand.sty mathcommand-code.pdf README.md" |
| 4 |
@echo "- clean" |
| 5 |
@echo "- ctan: creates the mathcommand-ctan.zip file tailored for CTAN" |
| 6 |
|
| 7 |
all: mathcommand.sty mathcommand.pdf README.md |
| 8 |
|
| 9 |
mathcommand.sty: mathcommand.dtx mathcommand.ins |
| 10 |
latex mathcommand.ins |
| 11 |
|
| 12 |
README.md: mathcommand.dtx mathcommand.ins |
| 13 |
latex mathcommand.ins |
| 14 |
|
| 15 |
clean: |
| 16 |
rm -f *.aux *.glo *.idx *.aux *.synctex.gz *.out *.toc *.kaux *.diagnose *.log |
| 17 |
rm -f *.bbl *.out *.bbl *.ind *.ilg *.idx |
| 18 |
rm -f mathcommand.sty |
| 19 |
rm -f mathcommand.pdf |
| 20 |
rm -f mathcommand-sources-complete.zip |
| 21 |
rm -f mathcommand-ctan.zip |
| 22 |
rm -f README.md |
| 23 |
|
| 24 |
ctan: mathcommand-ctan.zip |
| 25 |
|
| 26 |
mathcommand.pdf: mathcommand.dtx mathcommand.sty |
| 27 |
pdflatex mathcommand.dtx |
| 28 |
pdflatex mathcommand.dtx |
| 29 |
pdflatex mathcommand.dtx |
| 30 |
|
| 31 |
mathcommand.aux: mathcommand.dtx mathcommand.sty |
| 32 |
pdflatex mathcommand.dtx |
| 33 |
|
| 34 |
sources: clean mathcommand-ctan.zip mathcommand-sources-complete.zip |
| 35 |
|
| 36 |
mathcommand-sources-complete.zip: clean |
| 37 |
\rm -f mathcommand-sources-complete.zip |
| 38 |
cp mathcommand-sources-complete.zip ../mathcommand-sources-complete-`date +%y-%m-%d_%H:%M`.zip |
| 39 |
|
| 40 |
mathcommand-ctan.zip: mathcommand.pdf mathcommand.sty mathcommand.ins README.md makefile |
| 41 |
rm -f mathcommand-ctan.zip |
| 42 |
rm -rf mathcommand |
| 43 |
mkdir mathcommand |
| 44 |
cp mathcommand.pdf mathcommand/ |
| 45 |
cp mathcommand.dtx mathcommand/ |
| 46 |
cp makefile mathcommand.ins README.md mathcommand/ |
| 47 |
zip mathcommand-ctan.zip mathcommand/* |
| 48 |
rm -rf mathcommand |
| 49 |
|