docs/gimme-shellter

annotate Makefile @ 5:52725a5ea7d9

added extract-urls.sh; rewrote summary; some minor changes
author meillo@marmaro.de
date Thu, 06 Dec 2007 21:16:19 +0100
parents
children 7adaf386e4ff
rev   line source
meillo@1 1 # Makefile for latex docs
meillo@1 2 # by meillo@marmaro.de
meillo@1 3 #
meillo@1 4
meillo@1 5
meillo@1 6 SRC = GimmeShellter.tex
meillo@1 7 #OBJ = ${SRC:.tex:.pdf}
meillo@1 8 OBJ = GimmeShellter.pdf
meillo@1 9 PDFLATEX = pdflatex
meillo@1 10
meillo@1 11
meillo@1 12 all: ${OBJ}
meillo@1 13
meillo@1 14
meillo@1 15 #.tex.pdf:
meillo@1 16 ${OBJ}: ${SRC}
meillo@1 17 @echo generating $<
meillo@1 18 @${PDFLATEX} $<
meillo@1 19
meillo@1 20
meillo@1 21 dist: realclean
meillo@1 22 # generate 3 times for correct toc and pagenumbers
meillo@1 23 ${MAKE} all
meillo@1 24 ${MAKE} rmpdf
meillo@1 25 ${MAKE} all
meillo@1 26 ${MAKE} rmpdf
meillo@1 27 ${MAKE} all
meillo@1 28
meillo@1 29
meillo@1 30 clean:
meillo@1 31 @echo 'cleaning ...'
meillo@1 32 @rm -f *.{aux,lof,log,lot,nav,out,snm,toc}
meillo@1 33
meillo@1 34 rmpdf:
meillo@1 35 @echo 'removing PDFs ...'
meillo@1 36 @rm -f *.pdf
meillo@1 37
meillo@1 38 realclean: clean rmpdf
meillo@1 39
meillo@1 40 xpdf: all
meillo@1 41 xpdf -z page ${OBJ} &
meillo@1 42
meillo@1 43
meillo@1 44 .PHONY: all xpdf dist clean realclean rmpdf
meillo@1 45 .SUFFIXES: .tex .pdf
meillo@1 46
meillo@1 47
meillo@1 48 #merge:
meillo@1 49 # rm -f all.pdf
meillo@1 50 # pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf
meillo@1 51 # pdftk *.pdf cat output all.pdf
meillo@1 52
meillo@1 53 #xpdf: ${OBJ}
meillo@1 54 # @echo xpdf $@
meillo@1 55 # @xpdf -fullscreen -z page ${OBJ} &
meillo@1 56 # #@rm ${OBJ}