diff options
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 | ||