-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
34 lines (18 loc) · 844 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
docName = draft-ounsworth-cfrg-kem-combiners
default: all
txt: $(docName).txt
$(docName).txt: $(docName).mkd
kdrfc $(docName).mkd
xml: $(docName).xml
$(docName).xml: $(docName).mkd
kramdown-rfc2629 $(docName).mkd > $(docName).xml
# # for some reason the kramdown tool seems to be creating invalid xml, so let's fix it
# sed -i 's/consensus="true">/>/g' $(docName).xml
html: all # xml
# xml2rfc $(docName).xml --basename $(docName) --html
# Explicitely aliasing this to `all` so that a .txt is always generated, because that should be committed to git for other people's ease of editing.
all: xml
xml2rfc $(docName).xml --html --text
clean:
rm -f $(docName).xml # $(docName).html # $(docName).txt
# Explicitely not deleting the .html or .txt because that should be committed to git for other people's ease of editing.