From 33d619c3225e230174331b268284cd507edef972 Mon Sep 17 00:00:00 2001 From: Niels ten Oever Date: Tue, 19 Dec 2023 14:46:38 +0100 Subject: [PATCH] added Makefile --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..afcd74b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + +DRAFTS = retirement +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