-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
66 lines (53 loc) · 1.29 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
MASTER = tese
POSTER = poster
LATEXMK = latexmk -pdf -pdflatex='pdflatex -interaction nonstopmode'
all: ${MASTER} ${POSTER} doc
${MASTER}:
${LATEXMK} -pdf ${MASTER}
${POSTER}:
${LATEXMK} -pdf ${POSTER}
aspell: ${MASTER_FILE} ${TEX_FILES}
aspell -l pt-br -c ${MASTER_FILE}
for f in ${TEX_FILES}; do \
aspell -l pt-br -c $$f; \
done
hunspell:
hunspell -d pt_BR -c ${MASTER_FILE}
for f in ${TEX_FILES}; do \
hunspell -d pt_BR $$f; \
done
dev-all: dev-aspell aspell all
dev-aspell: ${DEV_FILES} ${DOC_FILES}
for f in ${DEV_FILES}; do \
aspell -l pt-br -c $$f; \
done
for f in ${DOC_FILES}; do \
aspell -l pt-br -c $$f; \
done
dev-hunspell: ${DEV_FILES} ${DOC_FILES}
for f in ${DEV_FILES}; do \
hunspell -d pt_BR $$f; \
done
for f in ${DOC_FILES}; do \
hunspell -d pt_BR $$f; \
done
.PHONY: doc clean-all clean clean-doc
doc:
branch=$$(git branch | sed -n '/\* /s///p'); \
for i in $$(git branch -r | grep -v HEAD); \
do \
git checkout $$i; \
$(MAKE) tese; \
$(MAKE) clean; \
$(MAKE) poster; \
$(MAKE) clean; \
mv -f tese.pdf doc/samples/$${i/origin\//}.pdf; \
mv -f poster.pdf doc/samples/poster-$${i/origin\//}.pdf; \
done; \
git checkout $${branch};
clean-all: clean clean-doc
clean:
latexmk -c
$(RM) *.bbl
clean-doc:
$(RM) -f doc/samples/*.pdf