-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmakefile
49 lines (43 loc) · 1.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
all:
make ins ;\
make doc ;\
make tests ;\
make zip ;\
make tds
ins:
cd ut-thesis ;\
rm ut-thesis.cls ;\
pdflatex ut-thesis.ins
doc:
cd ut-thesis ;\
pdflatex ut-thesis.dtx
tests:
for example in test/* ; do \
cp ut-thesis/ut-thesis.cls $$example ;\
cd $$example ;\
pdflatex main && pdflatex main && biber main && pdflatex main ;\
rm ut-thesis.cls ;\
cd ../../ ;\
done
debug:
cp ut-thesis/ut-thesis.cls test/.debug/ ;\
cd test/.debug ;\
pdflatex main && pdflatex main && biber main && pdflatex main ;\
rm ut-thesis.cls ;\
zip:
zip ctan/ut-thesis.zip \
ut-thesis/ut-thesis.dtx \
ut-thesis/ut-thesis.ins \
ut-thesis/ut-thesis.pdf \
ut-thesis/README
tds:
mkdir -p .texmf/tex/latex/ut-thesis ;\
mkdir -p .texmf/doc/latex/ut-thesis ;\
cd .texmf ;\
cp ../ut-thesis/ut-thesis.cls tex/latex/ut-thesis/ ;\
cp ../ut-thesis/ut-thesis.pdf doc/latex/ut-thesis/ ;\
cp ../ut-thesis/README doc/latex/ut-thesis/ ;\
zip ut-thesis.tds.zip -r * ;\
cp ut-thesis.tds.zip ../ctan ;\
cd .. ;\
rm -r .texmf