-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (34 loc) · 1.37 KB
/
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
41
42
43
44
DRAFT:=constrained-voucher
VERSION:=$(shell ./getver ${DRAFT}.mkd )
EXAMPLES=two-ca-chain.txt
EXAMPLES+=pinning-options.txt
EXAMPLES+=$(wildcard examples/voucher-example*.txt)
EXAMPLES+=$(wildcard examples/voucher-request-example*.txt)
EXAMPLES+=examples/voucher-status.hex
EXAMPLES+=examples/voucher-statusdiag.txt
EXAMPLES+=$(wildcard examples/*.c)
EXAMPLES+=$(wildcard examples/cose-examples/*.txt)
EXAMPLES+=$(wildcard examples/cose-examples/*.hex)
EXAMPLES+=$(wildcard examples/script-cose-examples/*.sh)
EXAMPLES+=$(wildcard examples/script-cose-examples/*.ext)
EXAMPLES+=$(wildcard examples/cose-examples/keys/*.pem)
${DRAFT}-${VERSION}.txt: ${DRAFT}.txt
cp ${DRAFT}.txt ${DRAFT}-${VERSION}.txt
: git add ${DRAFT}-${VERSION}.txt ${DRAFT}.txt
%.xml: %.mkd ${EXAMPLES} insert-figures
kramdown-rfc2629 -3 ${DRAFT}.mkd | perl insert-figures >${DRAFT}.xml
unset DISPLAY; XML_LIBRARY=$(XML_LIBRARY):./src xml2rfc --v2v3 ${DRAFT}.xml
mv ${DRAFT}.v2v3.xml ${DRAFT}.xml
%.txt: %.xml
unset DISPLAY; XML_LIBRARY=$(XML_LIBRARY):./src xml2rfc --text -o $@ $?
%.html: %.xml
unset DISPLAY; XML_LIBRARY=$(XML_LIBRARY):./src xml2rfc --html -o $@ $?
submit: ${DRAFT}.xml
curl -S -F "[email protected]" -F "xml=@${DRAFT}.xml" https://datatracker.ietf.org/api/submit
version:
echo Version: ${VERSION}
clean:
-rm -f ${DRAFT}.xml
html: ${DRAFT}.html
xml: ${DRAFT}.xml
.PRECIOUS: ${DRAFT}.xml