diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |