aboutsummaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/Makefile
diff options
context:
space:
mode:
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 @@
1FILES=taler-error-codes.h
2all: check $(FILES)
3check: registry.rec
4 recfix --check registry.rec
5
6distclean:
7 rm -f *.tmp
8
9clean:
10 rm -f $(FILES) *.tmp
11
12prep:
13 cd ../http-status-codes; make ; cd -
14
15combined.tmp: registry.rec prep
16 recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@
17
18taler-error-codes.h.tmp: combined.tmp h.template
19 ../format.sh h.template < combined.tmp > $@
20
21taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer
22 cat $^ > $@
23
24
25.PHONY: check clean distclean prep