mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-09-11 13:00:34 +03:00
24 lines
646 B
Makefile
24 lines
646 B
Makefile
# borrowed from
|
|
# http://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project
|
|
|
|
.PHONY: all clean
|
|
|
|
all: combined/main.pdf
|
|
|
|
check: FORCE
|
|
# Warning 11 is \ldots vs \cdots.
|
|
# We disable it as we use both in the same context to differentiate
|
|
# syntax and meta-syntax
|
|
chktex -g0 -l .chktexrc -n11 combined/main.tex
|
|
|
|
%.pdf: %.tex common/header.tex FORCE
|
|
latexmk -output-directory=out -pdf -xelatex -pv -use-make $<
|
|
|
|
clean:
|
|
latexmk -CA
|
|
|
|
# Fore some reasons that are far behind my understanding of make, The PHONY
|
|
# rule doesn't work for the "%.pdf" rule, so let's use this old trick to
|
|
# force-rebuild them every time.
|
|
FORCE:
|