blob: 0e802f1fad39aad7f05700cb85756818479b4a1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
|