-
Notifications
You must be signed in to change notification settings - Fork 89
/
Makefile
164 lines (129 loc) · 3.81 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
ROOT=..
SRCROOT=$(ROOT)/cvssource
DOCROOT=$(SRCROOT)/docs
INTERNALS=$(DOCROOT)/internals
TESTROOT=$(SRCROOT)/tests
LIBROOT=$(SRCROOT)/lib
CURL=$(ROOT)
include $(ROOT)/mainparts.mk
include $(ROOT)/setup.mk
MAINPARTS += _menu.html
MKRELNOTES = ./mk-release-notes.pl
MAN2HTML = roffit --bare
PAGES = \
advisory.html \
builds.html \
code-review.html \
code-style.html \
contribute.html \
deprecate.html \
feature-window.html \
foot.html \
head.html \
howto.html \
index.html \
internals.html \
keywords.html \
missing.html \
new-protocol.html \
release-notes.html \
release-procedure.html \
roadmap.html \
runtests.html \
source.html \
sourceactivity.html \
summary.html \
test-fileformat.html \
testcurl.html \
tests-overview.html \
vuln-disclosure.html
all: $(PAGES)
index.html: _index.html $(MAINPARTS) ../release.t featurewindow.t
$(ACTION)
feature-window.html: _feature-window.html $(MAINPARTS) featurewindow.t
$(ACTION)
new-protocol.html: _new-protocol.html $(MAINPARTS) new-protocol.gen
$(ACTION)
new-protocol.gen: $(INTERNALS)/NEW-PROTOCOL.md
$(MARKDOWN) < $< > $@
test-fileformat.html: _test-fileformat.html $(MAINPARTS) fileformat.gen
$(ACTION)
fileformat.gen: $(SRCROOT)/tests/FILEFORMAT.md
$(MARKDOWN) < $< > $@
tests-overview.html: _tests-overview.html $(MAINPARTS) testsoverview.gen
$(ACTION)
testsoverview.gen: $(TESTROOT)/README.md
$(MARKDOWN) < $< > $@
source.html: _source.html $(MAINPARTS)
$(ACTION)
roadmap.html: _roadmap.html roadmap.gen $(MAINPARTS)
$(ACTION)
roadmap.gen: $(SRCROOT)/docs/ROADMAP.md
$(MARKDOWN) < $< > $@
code-style.html: _code-style.html code-style.gen $(MAINPARTS)
$(ACTION)
code-style.gen: $(INTERNALS)/CODE_STYLE.md
$(GITHUB) $< | sed -e 's:*:\*:g' -e 's:#undef:\#undef:g' \
-e 's:#define:\#define:g' \
-e 's:#else:\#else:g' \
-e 's:#endif:\#endif:g' \
-e 's:#ifdef:\#ifdef:g' > $@
testcurl.html: _testcurl.html $(MAINPARTS) testcurl.gen
$(ACTION)
testcurl.gen: $(TESTROOT)/testcurl.md
$(MARKDOWN) < $< > $@
runtests.html: _runtests.html $(MAINPARTS) runtests.gen
$(ACTION)
runtests.gen: $(TESTROOT)/runtests.md
$(MARKDOWN) < $< > $@
code-review.html: _code-review.html $(MAINPARTS) code-review.gen
$(ACTION)
code-review.gen: $(DOCROOT)/CODE_REVIEW.md
$(MARKDOWN) < $< > $@
contribute.html: _contribute.html $(MAINPARTS) contribute.gen
$(ACTION)
contribute.gen: $(DOCROOT)/CONTRIBUTE.md
$(GITHUB) $< > $@
deprecate.html: _deprecate.html $(MAINPARTS) deprecate.gen
$(ACTION)
deprecate.gen: $(DOCROOT)/DEPRECATE.md
$(MARKDOWN) < $< > $@
internals.html: _internals.html $(MAINPARTS) internals.gen
$(ACTION)
internals.gen: $(DOCROOT)/INTERNALS.md
$(MARKDOWN) < $< > $@
vuln-disclosure.html: _vuln-disclosure.html $(MAINPARTS) disclosure.gen
$(ACTION)
disclosure.gen: $(DOCROOT)/VULN-DISCLOSURE-POLICY.md
$(MARKDOWN) < $< > $@
advisory.html: _advisory.html $(MAINPARTS) advisory.gen
$(ACTION)
advisory.gen: $(DOCROOT)/SECURITY-ADVISORY.md
$(MARKDOWN) < $< > $@
foot.html: _foot.html $(MAINPARTS)
$(ACTION)
head.html: _head.html $(MAINPARTS)
$(ACTION)
summary.html: _summary.html $(MAINPARTS) summary.t
$(ACTION)
sourceactivity.html: _sourceactivity.html $(MAINPARTS)
$(ACTION)
missing.html: _missing.html $(MAINPARTS)
$(ACTION)
release-notes.gen: $(SRCROOT)/RELEASE-NOTES $(MKRELNOTES) $(ROOT)/release.t
$(MKRELNOTES) < $< > $@
release-notes.html: _release-notes.html release-notes.gen $(MAINPARTS)
$(ACTION)
release-procedure.gen: $(DOCROOT)/RELEASE-PROCEDURE.md
$(MARKDOWN) < $< > $@
release-procedure.html: _release-procedure.html release-procedure.gen $(MAINPARTS)
$(ACTION)
howto.html: _howto.html $(MAINPARTS) _head.html
$(ACTION)
keywords.html: _keywords.html $(MAINPARTS) _head.html keywords.txt
$(ACTION)
builds.html: _builds.html $(MAINPARTS) table.t explainopts.t
$(ACTION)
full: all
clean:
rm -f $(PAGES)