diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-28 23:13:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-28 23:13:03 +0100 |
commit | 068cfc6a252f44799a7e9bd7914e90f72ad60091 (patch) | |
tree | cbcd5fb3dd87dd7239048b6da41428da34208080 /gnu-taler-error-codes/Makefile | |
parent | 32acd55e3d886322dab80bfbed4e73f590013472 (diff) |
add logic to generate python enumeration file
Diffstat (limited to 'gnu-taler-error-codes/Makefile')
-rw-r--r-- | gnu-taler-error-codes/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile index 502c6f2..b7885f5 100644 --- a/gnu-taler-error-codes/Makefile +++ b/gnu-taler-error-codes/Makefile @@ -1,6 +1,7 @@ FILES=taler_error_codes.h \ taler_error_codes.c \ taler_error_codes.ts \ + taler_error_codes.py \ taler_error_codes.kt all: check $(FILES) @@ -58,5 +59,11 @@ taler_error_codes.kt.tmp: combined.tmp kt.template taler_error_codes.kt: kt.header taler_error_codes.kt.tmp kt.footer cat $^ > $@ +taler_error_codes.py.tmp: combined.tmp py.template + ../format.sh py.template < combined.tmp > $@ + +taler_error_codes.py: py.header taler_error_codes.py.tmp + cat $^ > $@ + .PHONY: check clean distclean prep |