Makefile (816B)
1 FILES=gnunet_overlay_protocols.h gnunet_overlay_protocols.rst 2 all: check $(FILES) 3 4 check: 5 recfix --check registry.rec 6 7 distclean: 8 rm -f *.tmp 9 clean: 10 rm -f $(FILES) *.tmp 11 12 gnunet_overlay_protocols.h.tmp: registry.rec h.template 13 ../format.sh h.template < registry.rec > $@ 14 15 gnunet_overlay_protocols.h: h.header gnunet_overlay_protocols.h.tmp h.footer 16 cat h.header gnunet_overlay_protocols.h.tmp h.footer > $@ 17 18 gnunet_overlay_protocols.rst.tmp: registry.rec rst.template 19 ../format.sh rst.template < registry.rec > $@ 20 21 rst.header.tmp: 22 cat rst.header.template README POLICY > $@ 23 echo "Entries" >> $@ 24 echo "^^^^^^^" >> $@ 25 26 gnunet_overlay_protocols.rst: rst.header.tmp gnunet_overlay_protocols.rst.tmp rst.footer 27 cat rst.header.tmp gnunet_overlay_protocols.rst.tmp rst.footer > $@ 28 29 30 .PHONY: check clean distclean