X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=inspector%2FMakefile.am;h=5e6828f81201e5c1da121425a438a66221d15a8c;hp=09a144cf042b96f08183c41b20611fa414b68f49;hb=9d3f336152ba9390ed2b27579c4b625d46e3c50d;hpb=d37f69795396ec2354eb2d8480d64b9e5bdafacc;ds=sidebyside diff --git a/inspector/Makefile.am b/inspector/Makefile.am index 09a144c..5e6828f 100644 --- a/inspector/Makefile.am +++ b/inspector/Makefile.am @@ -15,13 +15,22 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +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 +docdir = @docdir@ dist_doc_DATA = \ virt-inspector.rng \ - example1.xml example2.xml example3.xml example4.xml + $(EXAMPLE_XML) if HAVE_INSPECTOR @@ -29,7 +38,7 @@ bin_SCRIPTS = virt-inspector man_MANS = virt-inspector.1 noinst_DATA = \ - $(top_builddir)/html/virt-inspector.1.html stamp-inspector-generator + $(top_builddir)/html/virt-inspector.1.html virt-inspector.1: virt-inspector $(POD2MAN) \ @@ -49,20 +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 -if HAVE_XML_LIGHT -stamp-inspector-generator: inspector_generator.ml - cd $(top_srcdir) && \ - ocaml -warn-error A \ - inspector/inspector_generator.ml - touch $@ -else -stamp-inspector-generator: - touch $@ -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 $< $@