-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
74 lines (59 loc) · 2.01 KB
/
Makefile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
DISTRIB-DIR = distrib
README = README.markdown
BREQN-DTX = \
breqn.dtx \
flexisym.dtx \
mathstyle.dtx
BREQN-PDF = \
breqn.pdf \
flexisym.pdf \
mathstyle.pdf
BREQN-DERIVED = \
breqn.sty \
flexisym.sty \
cmbase.sym \
mathpazo.sym \
mathptmx.sym \
msabm.sym \
mathstyle.sty \
all: distrib
tds-dirs:
mkdir -p $(DISTRIB-DIR)
mkdir -p $(DISTRIB-DIR)/breqn
mkdir -p $(DISTRIB-DIR)/breqn-tds
mkdir -p $(DISTRIB-DIR)/breqn-tds/doc
mkdir -p $(DISTRIB-DIR)/breqn-tds/doc/latex
mkdir -p $(DISTRIB-DIR)/breqn-tds/doc/latex/breqn
mkdir -p $(DISTRIB-DIR)/breqn-tds/source
mkdir -p $(DISTRIB-DIR)/breqn-tds/source/latex
mkdir -p $(DISTRIB-DIR)/breqn-tds/source/latex/breqn
mkdir -p $(DISTRIB-DIR)/breqn-tds/tex
mkdir -p $(DISTRIB-DIR)/breqn-tds/tex/latex
mkdir -p $(DISTRIB-DIR)/breqn-tds/tex/latex/breqn
tds-dirs-clean: tds-dirs
rm -f $(DISTRIB-DIR)/breqn-tds/doc/latex/breqn/*
rm -f $(DISTRIB-DIR)/breqn-tds/source/latex/breqn/*
rm -f $(DISTRIB-DIR)/breqn-tds/tex/latex/breqn/*
rm -f $(DISTRIB-DIR)/breqn/*
rm -f $(DISTRIB-DIR)/breqn.zip
rm -f $(DISTRIB-DIR)/breqn.tds.zip
breqn-styles:
for f in $(BREQN-DTX) ; do tex --interaction=batchmode $$f ; done
breqn-pdfs: breqn-styles
# three runs should suffice
for f in $(BREQN-DTX); \
do pdflatex --draftmode --interaction=batchmode $$f ; done
for f in $(BREQN-DTX); \
do pdflatex -—draftmode --interaction=batchmode $$f ; done
for f in $(BREQN-DTX); \
do pdflatex --interaction=batchmode $$f ; done
breqn-distrib: tds-dirs breqn-pdfs
cp $(BREQN-DERIVED) $(DISTRIB-DIR)/breqn-tds/tex/latex/breqn ; \
cp $(BREQN-DTX) $(BREQN-TEX) $(DISTRIB-DIR)/breqn-tds/source/latex/breqn ;\
cp $(BREQN-PDF) $(DISTRIB-DIR)/breqn-tds/doc/latex/breqn ;\
cp $(BREQN-PDF) $(BREQN-DTX) $(BREQN-TEX) $(DISTRIB-DIR)/breqn
distrib: tds-dirs-clean breqn-distrib
cp $(README) $(DISTRIB-DIR)/breqn/README
cp $(README) $(DISTRIB-DIR)/breqn-tds/doc/latex/breqn/README
cd $(DISTRIB-DIR)/breqn-tds ; zip -r breqn.tds.zip *
cd $(DISTRIB-DIR) ; zip -r breqn.zip breqn breqn.tds.zip