+ $< > $@-t && mv $@-t $@
+
+$(top_builddir)/html/virt-inspector.1.html: virt-inspector.pod
+ mkdir -p $(top_builddir)/html
+ cd $(top_builddir) && pod2html \
+ --css 'pod.css' \
+ --title 'virt-inspector, display OS version, kernel, drivers, mount points, applications, etc. in a virtual machine' \
+ --htmldir html \
+ --outfile html/virt-inspector.1.html \
+ inspector/$<
+
+if HAVE_XMLLINT
+
+TESTS = $(EXAMPLE_XML)
+TESTS_ENVIRONMENT = $(XMLLINT) --noout --relaxng virt-inspector.rng
+
+endif
+
+endif
+
+# These rules require virt-inspector so there is no good time that we
+# can run them. Instead you can run them by hand.
+
+example-debian.xml:
+ ./run-inspector-locally ../images/debian.img > $@
+example-fedora.xml:
+ ./run-inspector-locally ../images/fedora.img > $@
+example-ubuntu.xml:
+ ./run-inspector-locally ../images/ubuntu.img > $@
+example-windows.xml:
+ ./run-inspector-locally ../images/windows.img | fgrep -v '<uuid>' > $@