aboutsummaryrefslogtreecommitdiff
path: root/gnunet-protocols/Makefile
blob: f87c482aa72be1d845285658553ab2aac9b8fc2d (plain) (blame)
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
FILES=gnunet_overlay_protocols.h gnunet_overlay_protocols.rst
all: check $(FILES)

check:
	recfix --check registry.rec

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

gnunet_overlay_protocols.h.tmp: registry.rec h.template
	../format.sh h.template < registry.rec > $@

gnunet_overlay_protocols.h: h.header gnunet_overlay_protocols.h.tmp h.footer
	cat h.header gnunet_overlay_protocols.h.tmp h.footer > $@

gnunet_overlay_protocols.rst.tmp: registry.rec rst.template
	../format.sh rst.template < registry.rec > $@

rst.header.tmp:
	cat rst.header.template README POLICY > $@
	echo "Entries" >> $@
	echo "^^^^^^^" >> $@

gnunet_overlay_protocols.rst: rst.header.tmp gnunet_overlay_protocols.rst.tmp rst.footer
	cat rst.header.tmp gnunet_overlay_protocols.rst.tmp rst.footer > $@


.PHONY: check clean distclean