comparison Makefile @ 0:ccfa25b1fca2

initial commit
author meillo@marmaro.de
date Thu, 18 Sep 2008 21:32:55 +0200
parents
children ef4d7b41bf72
comparison
equal deleted inserted replaced
-1:000000000000 0:ccfa25b1fca2
1 # Makefile for latex docs
2 # by meillo@marmaro.de
3 # uses `latexmk'
4 #
5
6 SRC = ps-referat
7 PRINT = print
8
9
10 all:
11 latexmk -pdf $(SRC)
12
13
14 clean:
15 latexmk -c
16
17 view: all
18 xpdf -z page $(SRC).pdf &
19
20 watch:
21 latexmk -pdf -pvc -pv- $(SRC) &
22 xpdf -z page $(SRC).pdf &
23
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
30 .PHONY: all clean view watch print
31 .SUFFIXES: .tex .pdf