summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 060fe2e..02a5361 100644
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,26 @@
-
LATEXMK = latexmk -interaction=nonstopmode
tcr.pdf: FORCE
- $(LATEXMK) -pdf tcr
-
-pdf: tcr.pdf tcr-opt.pdf
+ cd content && $(LATEXMK)
tcr-opt.pdf: FORCE
- $(LATEXMK) -pdf -jobname=tcr-opt -usepretex="\def\OPTIONAL{}" tcr
+ cd content && $(LATEXMK) -r latexmk.opt
+
+pdf: tcr.pdf tcr-opt.pdf
all: pdf test
test:
- +gmake -f TestMakefile
+ +gmake -C test
clean: cleanpdf cleantest
cleanpdf:
- $(LATEXMK) -C tcr
- $(LATEXMK) -C -jobname=tcr-opt tcr
- rm -f *.thm
+ cd content && $(LATEXMK) -C
+ cd content && $(LATEXMK) -r latexmk.opt -C
cleantest:
- +-gmake -f TestMakefile cleantest
+ +-gmake -C clean
FORCE:
.PHONY: all pdf test clean cleanpdf cleantest FORCE