# HG changeset patch # User meillo@marmaro.de # Date 1197460485 -3600 # Node ID 7adaf386e4ffe17aa11d4d754726d97b6234e5be # Parent 129c2c5ed47f1e422d146ed7a6e618115fe7e43e added generation of print version to makefile diff -r 129c2c5ed47f -r 7adaf386e4ff Makefile --- a/Makefile Wed Dec 12 10:38:11 2007 +0100 +++ b/Makefile Wed Dec 12 12:54:45 2007 +0100 @@ -3,10 +3,16 @@ # +PDFLATEX = pdflatex + SRC = GimmeShellter.tex +OBJ = GimmeShellter.pdf #OBJ = ${SRC:.tex:.pdf} -OBJ = GimmeShellter.pdf -PDFLATEX = pdflatex + +PRINT = print.tex +PRINTPDF = print.pdf +PRINTALL = print.* +PRINTOBJ = GimmeShellter_print.pdf all: ${OBJ} @@ -18,12 +24,14 @@ @${PDFLATEX} $< -dist: realclean +dist: realclean print # generate 3 times for correct toc and pagenumbers ${MAKE} all - ${MAKE} rmpdf + sleep 1 + touch ${SRC} ${MAKE} all - ${MAKE} rmpdf + sleep 1 + touch ${SRC} ${MAKE} all @@ -40,6 +48,18 @@ xpdf: all xpdf -z page ${OBJ} & +print: + @echo 'creating print version' + @sed -e '/\\pause/d' ${SRC} > ${PRINT} + @${PDFLATEX} ${PRINT} + sleep 1 + touch ${SRC} + @${PDFLATEX} ${PRINT} + sleep 1 + touch ${SRC} + @${PDFLATEX} ${PRINT} + @${MAKE} clean + @mv ${PRINTPDF} ${PRINTOBJ} .PHONY: all xpdf dist clean realclean rmpdf .SUFFIXES: .tex .pdf