-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 1006 Bytes
/
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
all: build-pdf build-binder-pdf
comment: build-comment-pdf
build-pdf: main.tex
platex -kanji=utf8 $(<:.tex=)
pbibtex -kanji=utf8 $(<:.tex=)
platex -kanji=utf8 $(<:.tex=)
platex -kanji=utf8 $(<:.tex=)
dvipdfmx -p a4 $(<:.tex=)
main-binder.tex: main.tex
cat $< | \
perl -0pe 's/% (.*>>bindermode<<)$$/$$1/mg' | \
perl -0pe 's/^(.*>>nobindermode<<)$$/% $$1/mg' > $@
build-binder-pdf: main-binder.tex
platex -kanji=utf8 $(<:.tex=)
pbibtex -kanji=utf8 $(<:.tex=)
platex -kanji=utf8 $(<:.tex=)
platex -kanji=utf8 $(<:.tex=)
dvipdfmx -p a4 $(<:.tex=)
rm $<
build-comment-pdf: comment.tex
platex -kanji=utf8 $(<:.tex=)
# pbibtex -kanji=utf8 $(<:.tex=)
# platex -kanji=utf8 $(<:.tex=)
platex -kanji=utf8 $(<:.tex=)
dvipdfmx -p a4 $(<:.tex=)
test: main-binder.tex
echo $(<:.tex=)
clean:
/bin/rm -f *~ *.log *.dvi *.blg *.aux *.out *.bbl *.lot *.toc *.lof *.pdf
cd section && /bin/rm -f *~ *.log *.dvi *.blg *.aux *.out *.bbl *.lot *.toc *.lof *.pdf