-install-data-hook:
- mkdir -p $(DESTDIR)$(bindir)
- install -m 0755 virt-inspector.pl $(DESTDIR)$(bindir)/virt-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>' > $@
+
+# Build a partly-static library (for the binary distribution).