aboutsummaryrefslogtreecommitdiff
path: root/http-status-codes/Makefile
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-13 23:35:01 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-13 23:35:01 +0200
commitd62efd6aaa7a408e04484f26d97b3b74114cc4b6 (patch)
tree5340aded408bd1f523c35c496fcc81211096c921 /http-status-codes/Makefile
parent56eafb8f94157eecca4410ff6924715fe8328386 (diff)
downloadgana-d62efd6aaa7a408e04484f26d97b3b74114cc4b6.tar.gz
gana-d62efd6aaa7a408e04484f26d97b3b74114cc4b6.zip
setup http status code registry
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