diff options
Diffstat (limited to '')
-rw-r--r-- | make/fenceman.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/make/fenceman.mk b/make/fenceman.mk new file mode 100644 index 0000000..3997b88 --- /dev/null +++ b/make/fenceman.mk @@ -0,0 +1,11 @@ +%.8: % $(top_srcdir)/lib/fence2man.xsl + set -e && \ + PYTHONPATH=$(abs_srcdir)/lib:$(abs_builddir)/../lib:$(abs_builddir)/lib \ + $(PYTHON) $* -o manpage > $(@D)/.$(@F).tmp && \ + xmllint --noout --relaxng $(top_srcdir)/lib/metadata.rng $(@D)/.$(@F).tmp && \ + xsltproc $(top_srcdir)/lib/fence2man.xsl $(@D)/.$(@F).tmp > $@ + xsltproc $(top_srcdir)/lib/fence2wiki.xsl $(@D)/.$(@F).tmp | grep -v '<?xml' > $(@D)/$(@F:%.8=%.wiki) + +clean-man: + $(eval CLEAN_TARGET=$(shell find . -name "*.8" | grep -v "kdump/fence_kdump_send.8\|manual/fence_ack_manual.8\|virt/man/fence_xvm.8\|virt/man/fence_virt.8\|virt/man/fence_virtd.8")) + rm -f $(CLEAN_TARGET) */.*.8.tmp */*.wiki |