-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
- mkdir -p $(top_builddir)/html
- cd $(top_builddir) && pod2html \
- --css 'pod.css' \
- --title 'virt-rescue, run a rescue shell on a virtual machine' \
- --htmldir html \
- --outfile html/virt-rescue.1.html \
- rescue/$<
-
-endif
+virt-rescue.1 $(top_builddir)/html/virt-rescue.1.html: stamp-virt-rescue.pod
+
+stamp-virt-rescue.pod: virt-rescue.pod
+ $(top_builddir)/podwrapper.sh \
+ --man virt-rescue.1 \
+ --html $(top_builddir)/html/virt-rescue.1.html \
+ $<
+ touch $@