mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-09-11 13:00:34 +03:00
Add Makefile
The added makefile builds each pdf in its own folder with `latexmk`. To add a new pdf, just add its path to the main rule.
This commit is contained in:
parent
9f6f9b90b0
commit
1bdbeb3bda
1
.latexmkrc
Normal file
1
.latexmkrc
Normal file
@ -0,0 +1 @@
|
||||
$pdf_previewer = evince
|
17
Makefile
Normal file
17
Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# borrowed from
|
||||
# http://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: grammar/grammar.pdf semantics/semantics.pdf
|
||||
|
||||
%.pdf: %.tex FORCE
|
||||
latexmk -cd -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:
|
Loading…
Reference in New Issue
Block a user