Updated global Makefile.am and also data/Makefile.am to generate test.html. --- Makefile.am | 3 ++- data/Makefile.am | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index db8e4ea..e154048 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,10 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = SpiceXPI data +SUBDIRS = SpiceXPI if BUILD_GENERATOR SUBDIRS += generator endif +SUBDIRS += data DIST_SUBDIRS = spice-protocol $(SUBDIRS) EXTRA_DIST = m4 diff --git a/data/Makefile.am b/data/Makefile.am index b47e0c0..b336aca 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,12 @@ -NULL = +if BUILD_GENERATOR +TEST_PAGE = test.html +IDL = $(top_srcdir)/SpiceXPI/src/plugin/nsISpicec.idl +GENERATOR_DIR = $(top_builddir)/generator +GENERATOR = $(GENERATOR_DIR)/spice-xpi-generator +dist_pkgdata_DATA = $(TEST_PAGE) -EXTRA_DIST = test.html +all-local: $(TEST_PAGE) + +$(TEST_PAGE): $(IDL) $(GENERATOR) + $(GENERATOR) -i $< -o $@ +endif -- 1.7.10.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel