docs/Development-Case

changeset 5:303fa01dce67

added Makefile
author meillo@marmaro.de
date Wed, 16 Jan 2008 11:46:50 +0100
parents a967aa02ee99
children b9b93523dc05
files Makefile
diffstat 1 files changed, 58 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Wed Jan 16 11:46:50 2008 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +# generic Makefile for latex docs
     1.5 +# by meillo@marmaro.de
     1.6 +#
     1.7 +# Attention: needs GNUmake for patsubst and wildcard
     1.8 +
     1.9 +
    1.10 +SRC = *.tex
    1.11 +OBJ = $(patsubst %.tex, %.pdf, $(wildcard *.tex))
    1.12 +PDFLATEX = pdflatex
    1.13 +
    1.14 +
    1.15 +all: ${OBJ}
    1.16 +
    1.17 +
    1.18 +#.tex.pdf:
    1.19 +%.pdf: %.tex
    1.20 +	@echo generating $<
    1.21 +#@for i in $< ; do
    1.22 +	@  ${PDFLATEX} $<
    1.23 +#	@done
    1.24 +
    1.25 +
    1.26 +dist: realclean
    1.27 +	# generate 3 times for correct toc and pagenumbers
    1.28 +	${MAKE} all
    1.29 +	${MAKE} rmpdf
    1.30 +	${MAKE} all
    1.31 +	${MAKE} rmpdf
    1.32 +	${MAKE} all
    1.33 +
    1.34 +
    1.35 +clean:
    1.36 +	@echo 'cleaning ...'
    1.37 +	@rm -f *.{aux,lof,log,lot,nav,out,snm,toc}
    1.38 +
    1.39 +rmpdf:
    1.40 +	@echo 'removing PDFs ...'
    1.41 +	@rm -f *.pdf
    1.42 +
    1.43 +realclean: clean rmpdf
    1.44 +
    1.45 +xpdf: all
    1.46 +	xpdf -z page *.pdf
    1.47 +
    1.48 +
    1.49 +.PHONY: all xpdf dist clean realclean rmpdf
    1.50 +.SUFFIXES: .tex .pdf
    1.51 +
    1.52 +
    1.53 +#merge:
    1.54 +#	rm -f all.pdf
    1.55 +#	pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf
    1.56 +#	pdftk *.pdf cat output all.pdf
    1.57 +
    1.58 +#xpdf: ${OBJ}
    1.59 +#	@echo xpdf $@
    1.60 +#	@xpdf -fullscreen -z page ${OBJ} &
    1.61 +#	#@rm ${OBJ}