aboutsummaryrefslogtreecommitdiffstats
path: root/figures/Makefile
blob: 7c3783bcee100a9e9d6438dda606c953f1ff55af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
BUILD=ldap network

PDF=$(patsubst %,%.pdf,$(BUILD))
SVG=$(patsubst %,%.svg,$(BUILD))
PNG=$(patsubst %,%.png,$(BUILD))

.PHONY: all force clean cleanall
# let rubber take care of the pdf dependencies
.PHONY: $(BUILD) all dvi ps pdf svg png clean wc

all: pdf

dvi: pdf
ps:  pdf
pdf: $(PDF)
svg: $(SVG)
png: $(PNG)


%.svg: %.pdf
	inkscape $*-trimmed.pdf --export-plain-svg=$@

%.png: %.pdf
#	inkscape $*-trimmed.pdf --export-area-drawing --export-png=$@
	convert -density 120 -quality 85 $*-trimmed.pdf $@

%.pdf: %.tex
	pdflatex -shell-escape $^

clean:
	rm -f *.aux *.log *.auxlock network-trimmed* ldap-trimmed* $(PDF) $(SVG) $(PNG)
	

wc: $(PDF)
	@for I in $^; do echo -n "$$I: "; ps2ascii "$$I" | wc -w; done