forked from ietf-wg-cellar/ebml-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 913 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 913 Bytes
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
VERSION := 14
STATUS := draft-
OUTPUT := $(STATUS)ietf-cellar-ebml-$(VERSION)
XML2RFC_CALL := xml2rfc
MMARK_CALL := mmark
-include runtimes.mak
XML2RFC := $(XML2RFC_CALL) --v3
MMARK := $(MMARK_CALL)
all: $(OUTPUT).html $(OUTPUT).txt $(OUTPUT).xml
$(info RFC rendering has been tested with mmark version 2.1.1 and xml2rfc 2.30.0, please ensure these are installed and recent enough.)
$(OUTPUT).md: specification.markdown rfc_frontmatter.markdown rfc_backmatter.markdown EBMLSchema.xsd ebml_schema_example.xml
cat rfc_frontmatter.markdown $< rfc_backmatter.markdown > $(OUTPUT).md
%.xml: %.md
$(MMARK) $< | sed 's|<sourcecode type="xml">|<artwork type="ascii-art">|g;s|<sourcecode type="xsd">|<artwork type="ascii-art">|g;s|</sourcecode>|</artwork>|g' > $@
%.html: %.xml
$(XML2RFC) --html $< -o $@
%.txt: %.xml
$(XML2RFC) $< -o $@
clean:
rm -f $(OUTPUT).txt $(OUTPUT).html $(OUTPUT).md $(OUTPUT).xml