Move the hooks file mask into constants.py
[ganeti-local] / man / Makefile.am
index 3cb5057..7ae99b7 100644 (file)
@@ -1,19 +1,21 @@
 # Build man pages
 
 man_MANS = ganeti.7 ganeti-os-interface.7 gnt-cluster.8 gnt-node.8 gnt-os.8 \
-          gnt-instance.8 ganeti-noded.8 ganeti-watcher.8 gnt-backup.8
+          gnt-instance.8 ganeti-noded.8 ganeti-watcher.8 gnt-backup.8 \
+          ganeti-master.8 ganeti-rapi.8 gnt-debug.8
 
 maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS)))
 
 EXTRA_DIST = ganeti-os-interface.sgml gnt-cluster.sgml gnt-node.sgml \
             ganeti-watcher.sgml ganeti.sgml gnt-instance.sgml gnt-os.sgml \
-            gnt-backup.sgml ganeti-noded.sgml \
-            footer.sgml $(maninput)
+            gnt-backup.sgml ganeti-noded.sgml ganeti-master.sgml \
+            ganeti-rapi.sgml gnt-debug.sgml footer.sgml $(maninput)
 CLEANFILES = *.[78]
 MAINTAINERCLEANFILES = $(maninput)
 
-# Wrapper around docbook2man to control the output's filename
+# Wrapper around docbook2man to control output filename
 %.in: %.sgml footer.sgml
+       export LC_ALL=C && \
        tmpdir=`mktemp -d "./manbuildXXXXXX"` && \
        docbook2man -o "$$tmpdir" $< && \
        ok= && \
@@ -31,4 +33,8 @@ MAINTAINERCLEANFILES = $(maninput)
        rm -rf "$$tmpdir"
 
 %.7 %.8: %.in Makefile
-       sed -e 's#@LOCALSTATEDIR@#$(localstatedir)#g' < $< > $@
+       sed -e 's#@LOCALSTATEDIR@#$(localstatedir)#g' \
+           -e 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g' \
+           -e 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g' \
+           -e 's#@CUSTOM_IALLOCATOR_SEARCH_PATH@#$(IALLOCATOR_SEARCH_PATH)#g' \
+           < $< > $@