summaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/Makefile
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-14 00:16:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-14 00:16:04 +0200
commite1b5f8e912b3aaca1719c5fd08c2152d9f7d5113 (patch)
treef2fd32f8d33ebbd21107d75547c29946fe21375c /gnu-taler-error-codes/Makefile
parentd62efd6aaa7a408e04484f26d97b3b74114cc4b6 (diff)
start taler EC registry
Diffstat (limited to 'gnu-taler-error-codes/Makefile')
-rw-r--r--gnu-taler-error-codes/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile
new file mode 100644
index 0000000..b95669f
--- /dev/null
+++ b/gnu-taler-error-codes/Makefile
@@ -0,0 +1,25 @@
+FILES=taler-error-codes.h
+all: check $(FILES)
+check: registry.rec
+ recfix --check registry.rec
+
+distclean:
+ rm -f *.tmp
+
+clean:
+ rm -f $(FILES) *.tmp
+
+prep:
+ cd ../http-status-codes; make ; cd -
+
+combined.tmp: registry.rec prep
+ recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@
+
+taler-error-codes.h.tmp: combined.tmp h.template
+ ../format.sh h.template < combined.tmp > $@
+
+taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer
+ cat $^ > $@
+
+
+.PHONY: check clean distclean prep