[gobject-introspection/wip/transformer: 13/14] tests: Some more fixes to build uninstalled



commit f92f31ffd83faf5540396cf39eda1ebf12d6f8ea
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 20 10:50:35 2010 -0400

    tests: Some more fixes to build uninstalled

 tests/Makefile.am |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 82481be..1f4a6b9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,3 +1,5 @@
+include $(top_srcdir)/common.mk
+
 SUBDIRS = . scanner repository offsets
 
 EXTRA_DIST=
@@ -30,24 +32,21 @@ everything.h: everything-stamp.h
 	@true
 
 Everything-1.0.gir: libeverything-1.0.la Makefile
-	$(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --warn-error --reparse-validate \
+	$(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate \
 	--namespace=Everything --nsversion=1.0 \
 	--add-include-path=$(top_builddir)/gir --include=Gio-2.0 \
 	--library=libeverything-1.0.la --output=$@ \
 	everything.h everything.c
 
-Everything-1.0.typelib: Everything-1.0.gir
-	$(AM_V_GEN) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir $< -o $@
-
 GIMarshallingTests-1.0.gir: libgimarshallingtests-1.0.la Makefile
-	$(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --warn-error --reparse-validate \
+	$(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate \
 	--namespace=GIMarshallingTests --symbol-prefix=gi_marshalling_tests --nsversion=1.0 \
 	--add-include-path=$(top_builddir)/gir --include=Gio-2.0 \
 	--library=libgimarshallingtests-1.0.la  --output=$@ \
 	gimarshallingtests.h gimarshallingtests.c
 
-GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir
-	$(AM_V_GEN) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir $< -o $@
+%.typelib: %.gir
+	$(AM_V_GEN) $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) $< -o $@
 
 check: Everything-1.0.typelib GIMarshallingTests-1.0.typelib
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]