meillo@1: # Makefile for latex docs meillo@1: # by meillo@marmaro.de meillo@1: # meillo@1: meillo@1: meillo@10: PDFLATEX = pdflatex meillo@10: meillo@1: SRC = GimmeShellter.tex meillo@10: OBJ = GimmeShellter.pdf meillo@1: #OBJ = ${SRC:.tex:.pdf} meillo@10: meillo@10: PRINT = print.tex meillo@10: PRINTPDF = print.pdf meillo@10: PRINTALL = print.* meillo@10: PRINTOBJ = GimmeShellter_print.pdf meillo@1: meillo@1: meillo@1: all: ${OBJ} meillo@1: meillo@1: meillo@1: #.tex.pdf: meillo@1: ${OBJ}: ${SRC} meillo@1: @echo generating $< meillo@1: @${PDFLATEX} $< meillo@1: meillo@1: meillo@10: dist: realclean print meillo@1: # generate 3 times for correct toc and pagenumbers meillo@1: ${MAKE} all meillo@10: sleep 1 meillo@10: touch ${SRC} meillo@1: ${MAKE} all meillo@10: sleep 1 meillo@10: touch ${SRC} meillo@1: ${MAKE} all meillo@1: meillo@1: meillo@1: clean: meillo@1: @echo 'cleaning ...' meillo@1: @rm -f *.{aux,lof,log,lot,nav,out,snm,toc} meillo@1: meillo@1: rmpdf: meillo@1: @echo 'removing PDFs ...' meillo@1: @rm -f *.pdf meillo@1: meillo@1: realclean: clean rmpdf meillo@1: meillo@1: xpdf: all meillo@1: xpdf -z page ${OBJ} & meillo@1: meillo@10: print: meillo@10: @echo 'creating print version' meillo@10: @sed -e '/\\pause/d' ${SRC} > ${PRINT} meillo@10: @${PDFLATEX} ${PRINT} meillo@10: sleep 1 meillo@10: touch ${SRC} meillo@10: @${PDFLATEX} ${PRINT} meillo@10: sleep 1 meillo@10: touch ${SRC} meillo@10: @${PDFLATEX} ${PRINT} meillo@10: @${MAKE} clean meillo@10: @mv ${PRINTPDF} ${PRINTOBJ} meillo@1: meillo@1: .PHONY: all xpdf dist clean realclean rmpdf meillo@1: .SUFFIXES: .tex .pdf meillo@1: meillo@1: meillo@1: #merge: meillo@1: # rm -f all.pdf meillo@1: # pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf meillo@1: # pdftk *.pdf cat output all.pdf meillo@1: meillo@1: #xpdf: ${OBJ} meillo@1: # @echo xpdf $@ meillo@1: # @xpdf -fullscreen -z page ${OBJ} & meillo@1: # #@rm ${OBJ}