blob: 914ddb5a7201de11dabab04dd394629e80ff80ce (
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
|
.PHONY : example cls all clean clsfast ctan
all: cls example clean
clsfast:
cp cesenaexam.dtx ./build/cesenaexam.dtx
cd ./build && \
pdflatex cesenaexam.dtx && \
rm cesenaexam.dtx
cls:
cp cesenaexam.dtx ./build/cesenaexam.dtx
cd ./build && \
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" cesenaexam.dtx && \
makeindex -s gglo.ist -o cesenaexam.gls cesenaexam.glo && \
makeindex -s gind.ist -o cesenaexam.ind cesenaexam.idx && \
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" cesenaexam.dtx && \
rm cesenaexam.dtx && \
cp README.md ../
example:
cp cesenaexam_example.tex ./build/cesenaexam_example.tex
cp -r images ./build/
cd ./build && \
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" cesenaexam_example.tex && \
rm cesenaexam_example.tex &&\
rm -r images
clean:
cd ./build && \
rm -r *.aux *_latexmk *.fls *.glo *.gls *.hd *.idx *.ilg *.ind *.log *.out *.toc README.md
ctan:
mkdir cesenaexam
cp Makefile ./cesenaexam/
cp README.md ./cesenaexam/
cp cesenaexam.dtx ./cesenaexam/
cp ./build/cesenaexam.pdf ./cesenaexam/
cp ./build/cesenaexam.ins ./cesenaexam/
cp ./build/cesenaexam.cls ./cesenaexam/
cp ./build/cesenaexam.sty ./cesenaexam/
cp cesenaexam_example.tex ./cesenaexam/
cp ./build/cesenaexam_example.pdf ./cesenaexam/
zip -r9 cesenaexam.zip ./cesenaexam
|