Initial setup of repo
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
DRAFTS = in-tree-hints
|
||||
OUTPUTS = $(foreach draft,$(DRAFTS),draft-${draft}.html draft-${draft}.xml draft-${draft}.txt)
|
||||
STAGING = staging.xml
|
||||
|
||||
all: $(OUTPUTS)
|
||||
|
||||
clean:
|
||||
rm -f $(OUTPUTS) *.$(STAGING)
|
||||
|
||||
draft-%.html: draft-%.xml
|
||||
xml2rfc $< --html
|
||||
|
||||
draft-%.xml: draft-%.md
|
||||
kramdown-rfc2629 $< > $*.$(STAGING)
|
||||
mv $*.$(STAGING) $@
|
||||
|
||||
draft-%.txt: draft-%.xml
|
||||
xml2rfc $< --text
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user