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/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile
index b7885f5..9e59810 100644
--- a/gnu-taler-error-codes/Makefile
+++ b/gnu-taler-error-codes/Makefile
@@ -2,7 +2,9 @@ FILES=taler_error_codes.h \
2 taler_error_codes.c \ 2 taler_error_codes.c \
3 taler_error_codes.ts \ 3 taler_error_codes.ts \
4 taler_error_codes.py \ 4 taler_error_codes.py \
5 taler_error_codes.kt 5 taler_error_codes.kt \
6 taler_error_codes.go \
7 taler_error_codes.rst
6 8
7all: check $(FILES) 9all: check $(FILES)
8 10
@@ -23,7 +25,7 @@ prep:
23# if nothing changed, we use 'diff' to make sure that 'recsel' 25# if nothing changed, we use 'diff' to make sure that 'recsel'
24# actually changed the result. 26# actually changed the result.
25combined.tmp: registry.rec prep 27combined.tmp: registry.rec prep
26 recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > combined.xtmp 28 recsel --sort=Value -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > combined.xtmp
27 if ! diff $@ combined.xtmp > /dev/null; then mv combined.xtmp $@; else rm combined.xtmp; fi 29 if ! diff $@ combined.xtmp > /dev/null; then mv combined.xtmp $@; else rm combined.xtmp; fi
28 30
29combined-escaped.tmp: combined.tmp 31combined-escaped.tmp: combined.tmp
@@ -36,7 +38,7 @@ taler_error_codes.h.tmp: combined.tmp h.template
36 ../format.sh h.template < combined.tmp > $@ 38 ../format.sh h.template < combined.tmp > $@
37 39
38taler_error_codes.h: h.header taler_error_codes.h.tmp h.footer 40taler_error_codes.h: h.header taler_error_codes.h.tmp h.footer
39 cat $^ > $@ 41 cat $^ | sed -e "s/= 0000/= 0/" -e "s/= 000/= /" -e "s/= 00/= /" > $@
40 42
41taler_error_codes.c.tmp: combined-escaped.tmp c.template 43taler_error_codes.c.tmp: combined-escaped.tmp c.template
42 ../format.sh c.template < combined-escaped.tmp > $@ 44 ../format.sh c.template < combined-escaped.tmp > $@
@@ -51,7 +53,7 @@ taler_error_codes.ts.tmp: combined.tmp ts.template
51 ../format.sh ts.template < combined.tmp > $@ 53 ../format.sh ts.template < combined.tmp > $@
52 54
53taler_error_codes.ts: ts.header taler_error_codes.ts.tmp ts.footer 55taler_error_codes.ts: ts.header taler_error_codes.ts.tmp ts.footer
54 cat $^ > $@ 56 cat $^ | sed -e "s/= 0000/= 0/" -e "s/= 000/= /" -e "s/= 00/= /" > $@
55 57
56taler_error_codes.kt.tmp: combined.tmp kt.template 58taler_error_codes.kt.tmp: combined.tmp kt.template
57 ../format.sh kt.template < combined.tmp > $@ 59 ../format.sh kt.template < combined.tmp > $@
@@ -62,8 +64,19 @@ taler_error_codes.kt: kt.header taler_error_codes.kt.tmp kt.footer
62taler_error_codes.py.tmp: combined.tmp py.template 64taler_error_codes.py.tmp: combined.tmp py.template
63 ../format.sh py.template < combined.tmp > $@ 65 ../format.sh py.template < combined.tmp > $@
64 66
65taler_error_codes.py: py.header taler_error_codes.py.tmp 67taler_error_codes.py: py.header taler_error_codes.py.tmp
66 cat $^ > $@ 68 cat $^ > $@
67 69
70taler_error_codes.go.tmp: combined.tmp go.template
71 ../format.sh go.template < combined.tmp > $@
72
73taler_error_codes.go: go.header taler_error_codes.go.tmp go.footer
74 cat $^ > $@
75
76taler_error_codes.rst.tmp: combined.tmp rst.template
77 ../format.sh rst.template < combined.tmp > $@
78
79taler_error_codes.rst: rst.header taler_error_codes.rst.tmp rst.footer
80 cat $^ > $@
68 81
69.PHONY: check clean distclean prep 82.PHONY: check clean distclean prep