Revision 1817 trunk/docs/uml/Makefile

Makefile (revision 1817)
1
all: admb-component.pdf admb-seqdiag.png admb-blockdiag.png
1
#$Id$
2
#
3
.SUFFIXES: .pdf .tex .png
4
all: big-admb-component.png admb-component.pdf admb-seqdiag.png admb-blockdiag.png
2 5

  
6
%.pdf:%.tex
7
	pdflatex $^
8

  
9
big-admb-component.png: big-admb-component.pdf
10
#	extract page 2
11
	gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dFirstPage=2 -dLastPage=2 -sOutputFile=t1.pdf $*.pdf
12
#	crop page 2
13
	pdfcrop --verbose --margins 0 --clip t1.pdf t2.pdf
14
#	convert to 300 dpi png
15
	convert -antialias -density 600 t2.pdf $@
16

  
3 17
admb-component.pdf: admb-component.tex
4 18
	pdflatex admb-component
5 19

  
......
10 24
	blockdiag admb-blockdiag
11 25

  
12 26
clean:
13
	@rm -vf admb-blockdiag.png
14
	@rm -vf admb-seqdiag.png
15
	@rm -vf admb-component.aux
16
	@rm -vf admb-component.log
17
	@rm -vf admb-component.pdf
27
	@rm -vf *.png
28
	@rm -vf *.aux
29
	@rm -vf *.aux
30
	@rm -vf *.out
31
	@rm -vf *.log
32
	@rm -vf *.pdf
18 33
	@rm -vf simple
19 34
	@rm -vf simple.bar
20 35
	@rm -vf simple.cor
21 36

  

Also available in: Unified diff