Makefile (1369B)
1 FILES=gnunet_signatures.h gnunet_signatures.rst taler_signatures.go taler_signatures.ts 2 all: check $(FILES) 3 check: 4 recfix --check registry.rec 5 distclean: 6 rm -f *.tmp 7 clean: 8 rm -f $(FILES) *.tmp 9 gnunet_signatures.h.tmp: registry.rec h.template 10 ../format.sh h.template 'Package = "GNUnet"' < registry.rec > $@ 11 12 gnunet_signatures.h: h.header gnunet_signatures.h.tmp h.footer 13 cat h.header gnunet_signatures.h.tmp h.footer > $@ 14 15 gnunet_signatures.rst.tmp: registry.rec rst.template 16 ../format.sh rst.template < registry.rec > $@ 17 18 rst.header.tmp: 19 cat README POLICY rst.header.template > $@ 20 21 gnunet_signatures.rst: rst.header.tmp gnunet_signatures.rst.tmp rst.footer 22 cat rst.header.tmp gnunet_signatures.rst.tmp rst.footer > $@ 23 24 taler_signatures.go.tmp: registry.rec go-taler.template 25 ../format.sh go-taler.template 'Package = "GNU Taler"' < registry.rec > $@ 26 27 taler_signatures.go: go.header taler_signatures.go.tmp go.footer 28 cat $^ > taler_signatures.go.oct.tmp 29 sed -E 's/= 00*([0-9])/= \1/g;s/([A-Z])([A-Z]*)/\1\L\2/g;s/_//g' taler_signatures.go.oct.tmp > $@ 30 31 taler_signatures.ts.tmp: registry.rec ts-taler.template 32 ../format.sh ts-taler.template 'Package = "GNU Taler"' < registry.rec > $@ $@ 33 34 taler_signatures.ts: ts.header taler_signatures.ts.tmp ts.footer 35 cat $^ | sed -e "s/= 0000/= 0/" -e "s/= 000/= /" -e "s/= 00/= /" > $@ 36 37 38 .PHONY: check clean distclean