blob: 8e81fda98f571cc55ea76ec1da1839dec7962dba (
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
|
BUILD=ldap network
RUBBER=rubber --warn boxes --warn refs
PDF=$(patsubst %, %.pdf, $(BUILD))
SVG=$(patsubst %, %.svg, $(BUILD))
.PHONY: all force clean cleanall
# let rubber take care of the pdf dependencies
.PHONY: $(BUILD) all dvi ps pdf force clean wc
all: pdf
dvi: pdf
ps: pdf
pdf: $(PDF)
svg: $(SVG)
%.pdf: %.tex
$(RUBBER) --pdf $<
%.svg: %.pdf
inkscape $^ --export-plain-svg=$@
force:
for I in $(BUILD); do $(RUBBER) --force --pdf "$$I"; done
clean:
for I in $(BUILD); do $(RUBBER) --clean --ps --pdf "$$I"; done
rm $(SVG)
wc: $(PDF)
@for I in $^; do echo -n "$$I: "; ps2ascii "$$I" | wc -w; done
|