diff options
Diffstat (limited to 'gnunet-protocols/Makefile')
-rw-r--r-- | gnunet-protocols/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnunet-protocols/Makefile b/gnunet-protocols/Makefile new file mode 100644 index 0000000..f87c482 --- /dev/null +++ b/gnunet-protocols/Makefile | |||
@@ -0,0 +1,30 @@ | |||
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 | ||