Mercurial > docs > Topcased-Praesentation
comparison Makefile @ 0:d00c2801fda3
initial commit; added usecases; added generating
author | meillo@marmaro.de |
---|---|
date | Sun, 20 Jan 2008 21:46:18 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d00c2801fda3 |
---|---|
1 # Makefile for latex docs | |
2 # by meillo@marmaro.de | |
3 # | |
4 # Attention: needs GNUmake for patsubst and wildcard | |
5 | |
6 | |
7 SRC = topcased.tex | |
8 OBJ = topcased.pdf | |
9 PDFLATEX = pdflatex | |
10 | |
11 | |
12 all: ${OBJ} | |
13 | |
14 | |
15 #.tex.pdf: | |
16 %.pdf: %.tex | |
17 @echo generating $< | |
18 @${PDFLATEX} $< | |
19 | |
20 | |
21 dist: realclean | |
22 # generate 3 times for correct toc and pagenumbers | |
23 ${MAKE} all | |
24 ${MAKE} rmpdf | |
25 ${MAKE} all | |
26 ${MAKE} rmpdf | |
27 ${MAKE} all | |
28 | |
29 | |
30 clean: | |
31 @echo 'cleaning ...' | |
32 @rm -f *.{aux,lof,log,lot,nav,out,snm,toc} | |
33 | |
34 rmpdf: | |
35 @echo 'removing PDFs ...' | |
36 @rm -f *.pdf | |
37 | |
38 realclean: clean rmpdf | |
39 | |
40 xpdf: all | |
41 xpdf -z page *.pdf | |
42 | |
43 | |
44 .PHONY: all xpdf dist clean realclean rmpdf | |
45 .SUFFIXES: .tex .pdf | |
46 | |
47 | |
48 #merge: | |
49 # rm -f all.pdf | |
50 # pdftk A=00_vorstellung.pdf cat A1-2 output 00_vorstellung-mod.pdf && rm 00_vorstellung.pdf | |
51 # pdftk *.pdf cat output all.pdf | |
52 | |
53 #xpdf: ${OBJ} | |
54 # @echo xpdf $@ | |
55 # @xpdf -fullscreen -z page ${OBJ} & | |
56 # #@rm ${OBJ} |