diff options
Diffstat (limited to 'gnu-taler-error-codes/Makefile')
-rw-r--r-- | gnu-taler-error-codes/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile index c0bb208..2837753 100644 --- a/gnu-taler-error-codes/Makefile +++ b/gnu-taler-error-codes/Makefile | |||
@@ -1,4 +1,5 @@ | |||
1 | FILES=taler-error-codes.h \ | 1 | FILES=taler-error-codes.h \ |
2 | taler-error-codes.c \ | ||
2 | taler-error-codes.ts \ | 3 | taler-error-codes.ts \ |
3 | taler-error-codes.kt | 4 | taler-error-codes.kt |
4 | all: check $(FILES) | 5 | all: check $(FILES) |
@@ -17,12 +18,27 @@ prep: | |||
17 | combined.tmp: registry.rec prep | 18 | combined.tmp: registry.rec prep |
18 | recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@ | 19 | recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@ |
19 | 20 | ||
21 | combined-escaped.tmp: combined.tmp | ||
22 | sed 's/"/\\"/g' $^ > $@ | ||
23 | |||
24 | length.tmp: combined.tmp | ||
25 | recsel -p "Count(Description):ECS_LENGTH" combined.tmp > $@ | ||
26 | |||
20 | taler-error-codes.h.tmp: combined.tmp h.template | 27 | taler-error-codes.h.tmp: combined.tmp h.template |
21 | ../format.sh h.template < combined.tmp > $@ | 28 | ../format.sh h.template < combined.tmp > $@ |
22 | 29 | ||
23 | taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer | 30 | taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer |
24 | cat $^ > $@ | 31 | cat $^ > $@ |
25 | 32 | ||
33 | taler-error-codes.c.tmp: combined-escaped.tmp c.template | ||
34 | ../format.sh c.template < combined-escaped.tmp > $@ | ||
35 | |||
36 | taler-error-codes-length.c.tmp: length.tmp c-length.template | ||
37 | ../format.sh c-length.template < length.tmp > $@ | ||
38 | |||
39 | taler-error-codes.c: c.header taler-error-codes.c.tmp taler-error-codes-length.c.tmp c.footer | ||
40 | cat $^ > $@ | ||
41 | |||
26 | taler-error-codes.ts.tmp: combined.tmp ts.template | 42 | taler-error-codes.ts.tmp: combined.tmp ts.template |
27 | ../format.sh ts.template < combined.tmp > $@ | 43 | ../format.sh ts.template < combined.tmp > $@ |
28 | 44 | ||