summaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/Makefile
blob: c0bb208b8e52820a70d649fa449788ae3c35da0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FILES=taler-error-codes.h \
  taler-error-codes.ts \
  taler-error-codes.kt
all: check $(FILES)
check: registry.rec
	recfix --check registry.rec

distclean:
	rm -f *.tmp

clean:
	rm -f $(FILES) *.tmp

prep:
	cd ../http-status-codes; make ; cd -

combined.tmp: registry.rec prep
	recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > $@

taler-error-codes.h.tmp: combined.tmp h.template
	../format.sh h.template < combined.tmp > $@

taler-error-codes.h: h.header taler-error-codes.h.tmp h.footer
	cat $^ > $@

taler-error-codes.ts.tmp: combined.tmp ts.template
	../format.sh ts.template < combined.tmp > $@

taler-error-codes.ts: ts.header taler-error-codes.ts.tmp ts.footer
	cat $^ > $@

taler-error-codes.kt.tmp: combined.tmp kt.template
	../format.sh kt.template < combined.tmp > $@

taler-error-codes.kt: kt.header taler-error-codes.kt.tmp kt.footer
	cat $^ > $@


.PHONY: check clean distclean prep