docs/ps-referat-ibm

view Makefile @ 0:ccfa25b1fca2

initial commit
author meillo@marmaro.de
date Thu, 18 Sep 2008 21:32:55 +0200
parents
children ef4d7b41bf72
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
30 .PHONY: all clean view watch print
31 .SUFFIXES: .tex .pdf