-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 833 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
# latexmk does a good job cleaning up, but some files still remain
# this is a list of all extensions of temporary files
EXTENSIONS:=aux bbl blg cut dvi log out pdfsync ps synctex.gz tdo toc tex~ backup bcf fdb_latexmk fls
.PHONY: contents aspell
LATEX := latexmk -pdf -xelatex
default: pdf
pdf:
$(LATEX) -pdf thesis.tex
clean:
$(LATEX) -c thesis.tex
@for i in $(EXTENSIONS); \
do \
for file in `find . -name "*.$$i"`; do rm $$file; done; \
done
wordlist=lint/aspell.en.pws
replist=lint/aspell.en.prepl
ASPELL=aspell --lang=en_US --mode=tex --personal=$(PWD)/$(wordlist) --repl=$(PWD)/$(replist)
TEXFILES = $(shell find . -name "*.tex" -not -path "./figures/*")
aspell: $(addsuffix .spchk,$(basename $(TEXFILES)))
%.spchk: %.tex
$(ASPELL) check $<
check: redpen-conf.xml
redpen -r plain -c redpen-conf.xml thesis.tex