-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 964 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
DRAFT:=enrollment-roadmap
VERSION:=$(shell ./getver ${DRAFT}.mkd )
YANGDATE=$(shell date +%Y-%m-%d)
# git clone this from https://github.com/mbj4668/pyang.git
# then, cd pyang/plugins;
# wget https://raw.githubusercontent.com/core-wg/yang-cbor/master/sid.py
# sorry.
PYANGDIR=/sandel/src/pyang
${DRAFT}-${VERSION}.txt: ${DRAFT}.txt
cp ${DRAFT}.txt ${DRAFT}-${VERSION}.txt
git add ${DRAFT}-${VERSION}.txt ${DRAFT}.txt
%.xml: %.mkd component-diagram.txt
kramdown-rfc2629 ${DRAFT}.mkd | ./insert-figures >${DRAFT}.xml
git add ${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 ${CWTDATE1} ${CWTDATE2}
.PRECIOUS: ${DRAFT}.xml