view Makefile @ 12:b1d215fc244c default tip

Added tag Abgabeversion for changeset fb6ee4e487da3edb2ad4f5634b3c5de8f60bc1fd
author meillo@marmaro.de
date Wed, 06 Feb 2008 11:06:53 +0100
parents 303fa01dce67
children
line wrap: on
line source

# generic Makefile for latex docs
# by meillo@marmaro.de
#
# Attention: needs GNUmake for patsubst and wildcard


SRC = *.tex
OBJ = $(patsubst %.tex, %.pdf, $(wildcard *.tex))
PDFLATEX = pdflatex


all: ${OBJ}


#.tex.pdf:
%.pdf: %.tex
	@echo generating $<
#@for i in $< ; do
	@  ${PDFLATEX} $<
#	@done


dist: realclean
	# generate 3 times for correct toc and pagenumbers
	${MAKE} all
	${MAKE} rmpdf
	${MAKE} all
	${MAKE} rmpdf
	${MAKE} all


clean:
	@echo 'cleaning ...'
	@rm -f *.{aux,lof,log,lot,nav,out,snm,toc}

rmpdf:
	@echo 'removing PDFs ...'
	@rm -f *.pdf

realclean: clean rmpdf

xpdf: all
	xpdf -z page *.pdf


.PHONY: all xpdf dist clean realclean rmpdf
.SUFFIXES: .tex .pdf


#merge:
#	rm -f all.pdf
#	pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf
#	pdftk *.pdf cat output all.pdf

#xpdf: ${OBJ}
#	@echo xpdf $@
#	@xpdf -fullscreen -z page ${OBJ} &
#	#@rm ${OBJ}