summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hatina <phatina@redhat.com>2012-07-10 14:24:49 +0200
committerPeter Hatina <phatina@redhat.com>2012-07-11 09:20:13 +0200
commit66ef0edf0d8aeb5b4be3f623acf0bc61f0d5faa1 (patch)
tree4d0cf37cb1543a62dfe9cff96d2c215362d187b9
parent69bf4826c785233f53d6db49cff866c6a1cfd1f1 (diff)
generator, fix Makefile.am's to build test.html
-rw-r--r--Makefile.am3
-rw-r--r--data/Makefile.am10
2 files changed, 10 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..1ad42b4 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,3 +1,9 @@
-NULL =
+if BUILD_GENERATOR
+TEST_PAGE = test.html
+IDL = $(top_srcdir)/SpiceXPI/src/plugin/nsISpicec.idl
+GENERATOR = $(top_builddir)/generator/spice-xpi-generator
+dist_pkgdata_DATA = $(TEST_PAGE)
-EXTRA_DIST = test.html
+$(TEST_PAGE): $(IDL)
+ $(AM_V_GEN)$(GENERATOR) -i $< -o $@
+endif