X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=inspector%2FMakefile.am;h=5e6828f81201e5c1da121425a438a66221d15a8c;hp=fc2bee369265433cfd2fec020f4dd329b59c32af;hb=9d3f336152ba9390ed2b27579c4b625d46e3c50d;hpb=665ddb18fafeea53dff508c7dfdd00536ccab52e diff --git a/inspector/Makefile.am b/inspector/Makefile.am index fc2bee3..5e6828f 100644 --- a/inspector/Makefile.am +++ b/inspector/Makefile.am @@ -17,6 +17,12 @@ include $(top_srcdir)/subdir-rules.mk +EXAMPLE_XML = \ + example-debian.xml \ + example-fedora.xml \ + example-ubuntu.xml \ + example-windows.xml + EXTRA_DIST = \ run-inspector-locally \ virt-inspector @@ -24,7 +30,7 @@ EXTRA_DIST = \ docdir = @docdir@ dist_doc_DATA = \ virt-inspector.rng \ - example1.xml example2.xml example3.xml example4.xml + $(EXAMPLE_XML) if HAVE_INSPECTOR @@ -52,9 +58,30 @@ $(top_builddir)/html/virt-inspector.1.html: virt-inspector if HAVE_XMLLINT -TESTS = example1.xml example2.xml example3.xml example4.xml +TESTS = $(EXAMPLE_XML) TESTS_ENVIRONMENT = $(XMLLINT) --noout --relaxng virt-inspector.rng 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 '' > $@ + endif + +# Make symlink from virt-inspector.pl to virt-inspector. This is just +# to keep xgettext happy since it uses the file extension to determine +# the implementation language of a file. + +all-local: virt-inspector.pl + +virt-inspector.pl: virt-inspector + ln -sf $< $@