Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
added Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels ten Oever committed Dec 19, 2023
1 parent 8ad7960 commit 33d619c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 33d619c

Please sign in to comment.