-
Notifications
You must be signed in to change notification settings - Fork 546
/
Makefile
36 lines (27 loc) · 806 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
35
36
# This file copie and modified from https://github.com/miekg/learninggo/blob/master/Makefile
MMARK=mmark
all: learninggo.html
.PHONY: learninggo.html
learninggo.html:
$(MMARK) -html -head inc/head.html -css inc/book.css learninggo.md > learninggo.html
.PHONY: learninggo.xml
learninggo.xml:
$(MMARK) learninggo.md > learninggo.xml
.PHONY: learninggo.txt
learninggo.txt: learninggo.xml
xml2rfc --v3 learninggo.xml
.PHONY: learninggo-2.xml
learninggo-2.xml:
$(MMARK) -2 learninggo.md > learninggo-2.xml
.PHONY: learninggo-2.txt
learninggo-2.txt: learninggo-2.xml
@# Using -n because it doesn't fully validate (RFC7749 is a limited format).
xml2rfc -n learninggo-2.xml
.PHONY: ast
ast:
$(MMARK) -ast learninggo.md
.PHONY: test
test:
$(MMARK) -html learninggo.md
clean:
rm -f learninggo.html