diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-14 00:16:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-14 00:16:04 +0200 |
commit | e1b5f8e912b3aaca1719c5fd08c2152d9f7d5113 (patch) | |
tree | f2fd32f8d33ebbd21107d75547c29946fe21375c /gnu-taler-error-codes/Makefile | |
parent | d62efd6aaa7a408e04484f26d97b3b74114cc4b6 (diff) | |
download | gana-e1b5f8e912b3aaca1719c5fd08c2152d9f7d5113.tar.gz gana-e1b5f8e912b3aaca1719c5fd08c2152d9f7d5113.zip |
start taler EC registry
Diffstat (limited to 'gnu-taler-error-codes/Makefile')
-rw-r--r-- | gnu-taler-error-codes/Makefile | 25 |
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 @@ | |||
1 | FILES=taler-error-codes.h | ||
2 | all: check $(FILES) | ||
3 | check: registry.rec | ||
4 | recfix --check registry.rec | ||
5 | |||
6 | distclean: | ||
7 | rm -f *.tmp | ||
8 | |||
9 | clean: | ||
10 | rm -f $(FILES) *.tmp | ||
11 | |||
12 | prep: | ||
13 | cd ../http-status-codes; make ; cd - | ||
14 | |||
15 | combined.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 | |||
18 | taler-error-codes.h.tmp: combined.tmp h.template | ||
19 | ../format.sh h.template < combined.tmp > $@ | ||
20 | |||
21 | taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer | ||
22 | cat $^ > $@ | ||
23 | |||
24 | |||
25 | .PHONY: check clean distclean prep | ||