docs/Topcased-Praesentation

annotate Makefile @ 10:1043afd94e40

Added tag final version for changeset fea14a9800f2dba09f9dd3a618052861e6108e79
author meillo@marmaro.de
date Tue, 22 Jan 2008 17:03:46 +0100
parents
children
rev   line source
meillo@0 1 # Makefile for latex docs
meillo@0 2 # by meillo@marmaro.de
meillo@0 3 #
meillo@0 4 # Attention: needs GNUmake for patsubst and wildcard
meillo@0 5
meillo@0 6
meillo@0 7 SRC = topcased.tex
meillo@0 8 OBJ = topcased.pdf
meillo@0 9 PDFLATEX = pdflatex
meillo@0 10
meillo@0 11
meillo@0 12 all: ${OBJ}
meillo@0 13
meillo@0 14
meillo@0 15 #.tex.pdf:
meillo@0 16 %.pdf: %.tex
meillo@0 17 @echo generating $<
meillo@0 18 @${PDFLATEX} $<
meillo@0 19
meillo@0 20
meillo@0 21 dist: realclean
meillo@0 22 # generate 3 times for correct toc and pagenumbers
meillo@0 23 ${MAKE} all
meillo@0 24 ${MAKE} rmpdf
meillo@0 25 ${MAKE} all
meillo@0 26 ${MAKE} rmpdf
meillo@0 27 ${MAKE} all
meillo@0 28
meillo@0 29
meillo@0 30 clean:
meillo@0 31 @echo 'cleaning ...'
meillo@0 32 @rm -f *.{aux,lof,log,lot,nav,out,snm,toc}
meillo@0 33
meillo@0 34 rmpdf:
meillo@0 35 @echo 'removing PDFs ...'
meillo@0 36 @rm -f *.pdf
meillo@0 37
meillo@0 38 realclean: clean rmpdf
meillo@0 39
meillo@0 40 xpdf: all
meillo@0 41 xpdf -z page *.pdf
meillo@0 42
meillo@0 43
meillo@0 44 .PHONY: all xpdf dist clean realclean rmpdf
meillo@0 45 .SUFFIXES: .tex .pdf
meillo@0 46
meillo@0 47
meillo@0 48 #merge:
meillo@0 49 # rm -f all.pdf
meillo@0 50 # pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf
meillo@0 51 # pdftk *.pdf cat output all.pdf
meillo@0 52
meillo@0 53 #xpdf: ${OBJ}
meillo@0 54 # @echo xpdf $@
meillo@0 55 # @xpdf -fullscreen -z page ${OBJ} &
meillo@0 56 # #@rm ${OBJ}