summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0928664..ed7226f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,19 @@
TEX=pdflatex
TEXFLAGS=-file-line-error -halt-on-error
-TARGET=$(subst .tex,.pdf,$(wildcard *.tex))
+TARGET=$(subst .tex,.pdf,$(wildcard *.tex)) $(subst .tex,-short.pdf,$(wildcard *.tex))
.PHONY: all clean
all: $(TARGET)
-%.pdf: %.tex
- $(TEX) $(TEXFLAGS) $< &&\
- $(TEX) $(TEXFLAGS) $<
+%-short.pdf: %.tex handouts.sty
+ $(TEX) $(TEXFLAGS) -jobname=$(basename $<)-short '\let\ifshownotes\iffalse\let\ifshowcriticism\iffalse\input{$<}'
+ $(TEX) $(TEXFLAGS) -jobname=$(basename $<)-short '\let\ifshownotes\iffalse\let\ifshowcriticism\iffalse\input{$<}'
+
+%.pdf: %.tex handouts.sty
+ $(TEX) $(TEXFLAGS) $<
+ $(TEX) $(TEXFLAGS) $<
clean:
latexmk -C