X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=rescue%2FMakefile.am;h=b532e258ab01d03f63fa903e0a7b95ad73187ddd;hb=4bd623f6a2d83b2c27daed56f3020152a7bf31f3;hp=3d557283cc146441b048c1105e345a20bdd4a15e;hpb=154370c0e8a7bfcb6af5236bd7232794c188eabb;p=libguestfs.git diff --git a/rescue/Makefile.am b/rescue/Makefile.am index 3d55728..b532e25 100644 --- a/rescue/Makefile.am +++ b/rescue/Makefile.am @@ -17,22 +17,23 @@ EXTRA_DIST = \ run-rescue-locally \ - virt-rescue.pl + virt-rescue if HAVE_RESCUE +bin_SCRIPTS = virt-rescue man_MANS = virt-rescue.1 noinst_DATA = $(top_builddir)/html/virt-rescue.1.html -virt-rescue.1: virt-rescue.pl +virt-rescue.1: virt-rescue $(POD2MAN) \ --section 1 \ -c "Virtualization Support" \ --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ - $< > $@ + $< > $@-t && mv $@-t $@ -$(top_builddir)/html/virt-rescue.1.html: virt-rescue.pl +$(top_builddir)/html/virt-rescue.1.html: virt-rescue mkdir -p $(top_builddir)/html cd $(top_builddir) && pod2html \ --css 'pod.css' \ @@ -41,8 +42,4 @@ $(top_builddir)/html/virt-rescue.1.html: virt-rescue.pl --outfile html/virt-rescue.1.html \ rescue/$< -install-data-hook: - mkdir -p $(DESTDIR)$(bindir) - install -m 0755 virt-rescue.pl $(DESTDIR)$(bindir)/virt-rescue - endif