diff options
author | Camil Staps | 2016-09-21 12:27:06 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-21 12:27:06 +0200 |
commit | fe858a1d40db3b6ac2f6b22a863f33d65db422f2 (patch) | |
tree | 6947cb396b6d79f65743ee74c7707a9b82ef8a8b /Makefile | |
parent | Start Benton (diff) |
Short version in makefile
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 |