aboutsummaryrefslogtreecommitdiff
path: root/http-status-codes/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'http-status-codes/Makefile')
-rw-r--r--http-status-codes/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/http-status-codes/Makefile b/http-status-codes/Makefile
new file mode 100644
index 0000000..cea962b
--- /dev/null
+++ b/http-status-codes/Makefile
@@ -0,0 +1,31 @@
1FILES=registry.rec http-status-codes.h
2all: check $(FILES)
3check: registry.rec
4 recfix --check registry.rec
5
6# http-status-codes-1.csv is from IANA!
7iana.tmp: http-status-codes-1.csv
8 cat $^ | grep -v Unassigned | csv2rec > $@
9
10# extend by all-caps descriptions suitable for C-style identifier generation
11iana-extended.tmp: iana.tmp
12 ./extend.sh $@ $^
13
14registry.rec: types.rec iana-extended.tmp extras.rec
15 cat $^ > $@
16
17distclean:
18 rm -f *.tmp
19
20clean:
21 rm -f $(FILES) *.tmp
22
23
24http-status-codes.h.tmp: registry.rec h.template
25 ../format.sh h.template < registry.rec > $@
26
27http-status-codes.h: h.header http-status-codes.h.tmp h.footer
28 cat $^ > $@
29
30
31.PHONY: check clean distclean