view Makefile @ 0:ccfa25b1fca2

initial commit
author meillo@marmaro.de
date Thu, 18 Sep 2008 21:32:55 +0200
parents
children ef4d7b41bf72
line wrap: on
line source

# Makefile for latex docs
# by meillo@marmaro.de
# uses `latexmk'
#

SRC = ps-referat
PRINT = print


all:
	latexmk -pdf $(SRC)


clean:
	latexmk -c

view: all
	xpdf -z page $(SRC).pdf &

watch:
	latexmk -pdf -pvc -pv- $(SRC) &
	xpdf -z page $(SRC).pdf &

print:
	@echo 'creating print version'
	@sed -e '/\\pause/d' ${SRC}.tex > ${PRINT}.tex
	latexmk -pdf $(PRINT)
	@mv ${PRINT}.pdf $(SRC)_${PRINT}.pdf

.PHONY: all clean view watch print
.SUFFIXES: .tex .pdf