-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
43 lines (27 loc) · 833 Bytes
/
Makefile
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
36
37
38
39
40
SRC := $(wildcard ip-handling/draft-*.xml) $(wildcard fec/draft-*.xml)
#SRC := $(wildcard draft-*.xml)
WSRC := $(wildcard *.wsd)
HTML := $(patsubst %.xml,%.html,$(SRC))
TXT := $(patsubst %.xml,%.txt,$(SRC))
DIF := #$(patsubst %.xml,%.diff.html,$(SRC))
PDF := #$(patsubst %.xml,%.pdf,$(SRC))
SVG := #$(patsubst %.wsd,%.svg,$(WSRC))
all: $(HTML) $(TXT)
# $(DIF) $(PDF)
#all: $(HTML) $(TXT) $(DIF) $(SVG) $(PDF)
clean:
rm -f *~ draft*.html draft*pdf draft-*txt $(SVG)
#%.html: %.xml
# xsltproc -o $@ rfc2629.xslt $^
%.html: %.xml
xml2rfc --html $^ -o $@
%.txt: %.xml
xml2rfc --text $^ -o $@
%.diff.html: %.txt.old %.txt
htmlwdiff $^ > $@
%.pdf: %.html $(SVG)
wkpdf -p letter -s $^ -o $@
%.svg: %.wsd
node ~/bin/ladder.js $^ $@
%.png: %.svg
java -jar batik-rasterizer.jar $^ -d $@ -bg 255.255.255.255