docs/ps-referat-ibm
annotate Makefile @ 4:ef4d7b41bf72
small fix in Makefile
author | meillo@marmaro.de |
---|---|
date | Thu, 25 Sep 2008 16:39:46 +0200 |
parents | ccfa25b1fca2 |
children |
rev | line source |
---|---|
meillo@0 | 1 # Makefile for latex docs |
meillo@0 | 2 # by meillo@marmaro.de |
meillo@0 | 3 # uses `latexmk' |
meillo@0 | 4 # |
meillo@0 | 5 |
meillo@0 | 6 SRC = ps-referat |
meillo@0 | 7 PRINT = print |
meillo@0 | 8 |
meillo@0 | 9 |
meillo@0 | 10 all: |
meillo@0 | 11 latexmk -pdf $(SRC) |
meillo@0 | 12 |
meillo@0 | 13 |
meillo@0 | 14 clean: |
meillo@0 | 15 latexmk -c |
meillo@0 | 16 |
meillo@0 | 17 view: all |
meillo@0 | 18 xpdf -z page $(SRC).pdf & |
meillo@0 | 19 |
meillo@0 | 20 watch: |
meillo@0 | 21 latexmk -pdf -pvc -pv- $(SRC) & |
meillo@0 | 22 xpdf -z page $(SRC).pdf & |
meillo@0 | 23 |
meillo@0 | 24 print: |
meillo@0 | 25 @echo 'creating print version' |
meillo@0 | 26 @sed -e '/\\pause/d' ${SRC}.tex > ${PRINT}.tex |
meillo@0 | 27 latexmk -pdf $(PRINT) |
meillo@0 | 28 @mv ${PRINT}.pdf $(SRC)_${PRINT}.pdf |
meillo@4 | 29 @rm $(PRINT).tex |
meillo@0 | 30 |
meillo@0 | 31 .PHONY: all clean view watch print |
meillo@0 | 32 .SUFFIXES: .tex .pdf |