Manual page with centralised documentation.
[virt-p2v.git] / Makefile
index 731783f..6d0a0c9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ all:
        @echo "                 Boot built/named ISO (uses qemu)"
        @echo "make update    Update an existing live CD ISO with new"
        @echo "                 virt-p2v script, without doing full rebuild"
+       @echo "make man       Make man pages (needs POD)"
 
 # Build live CD.
 
@@ -146,4 +147,27 @@ check-manifest:
        rm -f .orig-manifest .check-manifest; \
        exit $$rv
 
+# Manual page.
+
+MAN_SECTION := Virtualization Support
+
+man: virt-p2v.1 virt-p2v.1.txt virt-p2v.1.html
+
+virt-p2v.1: virt-p2v.pod
+       pod2man -c "$(MAN_SECTION)" --release "$(PACKAGE)-$(VERSION)" $< > $@
+
+virt-p2v.1.txt: virt-p2v.pod
+       pod2text $< > $@
+
+virt-p2v.1.html: virt-p2v.pod
+       pod2html -css virt-p2v.1.css $< > $@
+
+# Website.
+
+WEBSITE_DIR := ../redhat/et-website/virt-p2v
+
+website: man dist
+       cp virt-p2v.1.html $(WEBSITE_DIR)
+       cp $(PACKAGE)-$(VERSION).tar.gz $(WEBSITE_DIR)
+
 .PHONY:        build boot checkroot
\ No newline at end of file