-noinst_DATA = @top_builddir@/html/virt-edit.1.html
-
-virt-edit.1: virt-edit.pl
- $(POD2MAN) \
- --section 1 \
- -c "Virtualization Support" \
- --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
- $< > $@
-
-@top_builddir@/html/virt-edit.1.html: virt-edit.pl
- mkdir -p @top_builddir@/html
- cd @top_builddir@ && pod2html \
- --css 'pod.css' \
- --title 'virt-edit, edit a file in a virtual machine' \
- --htmldir html \
- --outfile html/virt-edit.1.html \
- edit/$<
-
-install-data-hook:
- mkdir -p $(DESTDIR)$(bindir)
- install -m 0755 virt-edit.pl $(DESTDIR)$(bindir)/virt-edit
-
-endif