aboutsummaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-22 21:25:11 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-22 21:25:11 +0200
commit7f94ca8eba780b5ffc7220c69fa4d4937287095a (patch)
tree0f696d139a0029b20e3458c402cf416e51174ffe /gnu-taler-error-codes
parent1b6eacc58bdd71efb5afc476207efcd952f959b1 (diff)
downloadgana-7f94ca8eba780b5ffc7220c69fa4d4937287095a.tar.gz
gana-7f94ca8eba780b5ffc7220c69fa4d4937287095a.zip
avoid gana rule cascade
Diffstat (limited to 'gnu-taler-error-codes')
-rw-r--r--gnu-taler-error-codes/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile
index 6f3fbf7..e2faf3a 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.kt 4 taler_error_codes.kt
5
5all: check $(FILES) 6all: check $(FILES)
7
6check: registry.rec 8check: registry.rec
7 recfix --check registry.rec 9 recfix --check registry.rec
8 10
@@ -15,8 +17,13 @@ clean:
15prep: 17prep:
16 cd ../http-status-codes; make ; cd - 18 cd ../http-status-codes; make ; cd -
17 19
20# Because prep is phony, this rule always triggers. To avoid
21# combined.tmp cascading into triggering the other rules even
22# if nothing changed, we use 'diff' to make sure that 'recsel'
23# actually changed the result.
18combined.tmp: registry.rec prep 24combined.tmp: registry.rec prep
19 recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@ 25 recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > combined.xtmp
26 if ! diff $@ combined.xtmp; then mv combined.xtmp $@; else rm combined.xtmp; fi
20 27
21combined-escaped.tmp: combined.tmp 28combined-escaped.tmp: combined.tmp
22 sed 's/"/\\"/g' $^ > $@ 29 sed 's/"/\\"/g' $^ > $@