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/Makefile16
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 @@
1FILES=taler-error-codes.h \ 1FILES=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
4all: check $(FILES) 5all: check $(FILES)
@@ -17,12 +18,27 @@ prep:
17combined.tmp: registry.rec prep 18combined.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
21combined-escaped.tmp: combined.tmp
22 sed 's/"/\\"/g' $^ > $@
23
24length.tmp: combined.tmp
25 recsel -p "Count(Description):ECS_LENGTH" combined.tmp > $@
26
20taler-error-codes.h.tmp: combined.tmp h.template 27taler-error-codes.h.tmp: combined.tmp h.template
21 ../format.sh h.template < combined.tmp > $@ 28 ../format.sh h.template < combined.tmp > $@
22 29
23taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer 30taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer
24 cat $^ > $@ 31 cat $^ > $@
25 32
33taler-error-codes.c.tmp: combined-escaped.tmp c.template
34 ../format.sh c.template < combined-escaped.tmp > $@
35
36taler-error-codes-length.c.tmp: length.tmp c-length.template
37 ../format.sh c-length.template < length.tmp > $@
38
39taler-error-codes.c: c.header taler-error-codes.c.tmp taler-error-codes-length.c.tmp c.footer
40 cat $^ > $@
41
26taler-error-codes.ts.tmp: combined.tmp ts.template 42taler-error-codes.ts.tmp: combined.tmp ts.template
27 ../format.sh ts.template < combined.tmp > $@ 43 ../format.sh ts.template < combined.tmp > $@
28 44