docs/ps-referat-ibm

view Makefile @ 4:ef4d7b41bf72

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