From fe858a1d40db3b6ac2f6b22a863f33d65db422f2 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 21 Sep 2016 12:27:06 +0200 Subject: Short version in makefile --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3