Use AM_V_GEN more a more quiet build
[gnome.gobject-introspection] / tests / offsets / Makefile.am
index 62b0d79..c778ae3 100644 (file)
@@ -1,8 +1,10 @@
 include $(top_srcdir)/common.mk
+include $(top_srcdir)/Makefile.introspection
 
 BUILT_SOURCES =
 CLEANFILES =
 EXTRA_DIST =
+INTROSPECTION_GIRS =
 
 check_LTLIBRARIES =
 check_PROGRAMS =
@@ -18,20 +20,12 @@ liboffsets_la_CPPFLAGS = $(GIREPO_CFLAGS)
 # dummy rpath to get built dynamically (huh?)
 liboffsets_la_LDFLAGS = -avoid-version -rpath $(libdir)
 
-offsets-1.0.gir: liboffsets.la offsets.h $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
-       $(CHECK_DEBUG) $(SCANNER) \
-       --include=GObject-2.0 \
-        --libtool="$(SHAVE_SAVED_LIBTOOL)" \
-       --library=liboffsets.la \
-       --namespace=offsets \
-       --nsversion=1.0 \
-       --pkg gobject-2.0 \
-       $(srcdir)/offsets.h $(srcdir)/offsets.c \
-        --output $@
-
-%.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile
-       LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \
-        $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@
+offsets-1.0.gir: liboffsets.la offsets.h
+offsets_1_0_gir_INCLUDES = GObject-2.0
+offsets_1_0_gir_LIBS = liboffsets.la
+offsets_1_0_gir_PACKAGES = gobject-2.0
+offsets_1_0_gir_FILES = $(srcdir)/offsets.h $(srcdir)/offsets.c
+INTROSPECTION_GIRS += offsets-1.0.gir
 
 CLEANFILES += offsets-1.0.gir offsets-1.0.typelib
 
@@ -44,7 +38,7 @@ gitestoffsets_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
 gitestoffsets_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
 
 gitestoffsets.c: gen-gitestoffsets offsets.h
-       $(PYTHON) $(srcdir)/gen-gitestoffsets $(srcdir)/offsets.h > $@ || ( rm -f $@ && false )
+       $(AM_V_GEN) $(PYTHON) $(srcdir)/gen-gitestoffsets $(srcdir)/offsets.h > $@ || ( rm -f $@ && false )
 
 EXTRA_DIST += gen-gitestoffsets
 BUILT_SOURCES += gitestoffsets.c
@@ -53,8 +47,7 @@ CLEANFILES += gitestoffsets.c
 ############################################################
 
 check-local: offsets-1.0.typelib
-       LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \
-        GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
+       GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
        diff -u offsets.compiled offsets.introspected
 
 CLEANFILES += offsets.compiled offsets.introspected