summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ed7226f..79dc9ca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
TEX=pdflatex
TEXFLAGS=-file-line-error -halt-on-error
-TARGET=$(subst .tex,.pdf,$(wildcard *.tex)) $(subst .tex,-short.pdf,$(wildcard *.tex))
+FULL=$(subst .tex,.pdf,$(wildcard *.tex))
+SHORT=$(subst .tex,-short.pdf,$(wildcard *.tex))
+TINY=$(subst .tex,-tiny.pdf,$(wildcard *.tex))
+
+TARGET=$(FULL) $(SHORT) $(TINY)
.PHONY: all clean
all: $(TARGET)
+%-tiny.pdf: %.tex handouts.sty
+ $(TEX) $(TEXFLAGS) -jobname=$(basename $<)-tiny '\let\ifshownotes\iffalse\let\ifshowcriticism\iffalse\let\ifshowpagenrs\iffalse\input{$<}'
+ $(TEX) $(TEXFLAGS) -jobname=$(basename $<)-tiny '\let\ifshownotes\iffalse\let\ifshowcriticism\iffalse\let\ifshowpagenrs\iffalse\input{$<}'
+
%-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{$<}'
@@ -17,3 +25,4 @@ all: $(TARGET)
clean:
latexmk -C
+ $(RM) $(FULL) $(SHORT) $(TINY)