3 man_MANS = ganeti.7 ganeti-os-interface.7 gnt-cluster.8 gnt-node.8 gnt-os.8 \
4 gnt-instance.8 ganeti-noded.8 ganeti-watcher.8 gnt-backup.8 \
7 maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS)))
9 EXTRA_DIST = ganeti-os-interface.sgml gnt-cluster.sgml gnt-node.sgml \
10 ganeti-watcher.sgml ganeti.sgml gnt-instance.sgml gnt-os.sgml \
11 gnt-backup.sgml ganeti-noded.sgml ganeti-master.sgml \
12 footer.sgml $(maninput)
14 MAINTAINERCLEANFILES = $(maninput)
16 # Wrapper around docbook2man to control the output's filename
17 %.in: %.sgml footer.sgml
18 tmpdir=`mktemp -d "./manbuildXXXXXX"` && \
19 docbook2man -o "$$tmpdir" $< && \
21 for check in `basename $< .sgml`.{7,8}; do \
22 if test -f "$$tmpdir/$$check"; then \
23 mv "$$tmpdir/$$check" $@ && \
28 if test -z "$$ok"; then \
29 echo "Building $@ failed."; \
34 %.7 %.8: %.in Makefile
35 sed -e 's#@LOCALSTATEDIR@#$(localstatedir)#g' \
36 -e 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g' \
37 -e 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g' \