docs/Development-Case

annotate Makefile @ 12:b1d215fc244c

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