forked from mcr/nasr-terminology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 790 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
DRAFT:= nasr-terminology
VERSION:=$(shell ./getver ${DRAFT}.mkd )
EXAMPLES=
${DRAFT}-${VERSION}.txt: ${DRAFT}.txt
cp ${DRAFT}.txt ${DRAFT}-${VERSION}.txt
: git add ${DRAFT}-${VERSION}.txt ${DRAFT}.txt
%.xml: %.mkd
kramdown-rfc2629 -3 ${DRAFT}.mkd >${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 "user=mcr+ietf@sandelman.ca" ${REPLACES} -F "xml=@${DRAFT}.xml" https://datatracker.ietf.org/api/submission | jq
version:
echo Version: ${VERSION}
clean:
-rm -f ${DRAFT}.xml
.PRECIOUS: ${DRAFT}.xml