meillo@1: # Makefile for latex docs
meillo@1: # by meillo@marmaro.de
meillo@1: #
meillo@1: 
meillo@1: 
meillo@1: SRC = GimmeShellter.tex
meillo@1: #OBJ = ${SRC:.tex:.pdf}
meillo@1: OBJ = GimmeShellter.pdf
meillo@1: PDFLATEX = pdflatex
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@1: dist: realclean
meillo@1: 	# generate 3 times for correct toc and pagenumbers
meillo@1: 	${MAKE} all
meillo@1: 	${MAKE} rmpdf
meillo@1: 	${MAKE} all
meillo@1: 	${MAKE} rmpdf
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@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}