summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/Makefile.am
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2009-12-14 21:47:39 -0200
committerJohan Dahlin <johan@gnome.org>2009-12-16 17:22:02 -0200
commit467204e8e7a894350517ebca2201a89bed56b0ad (patch)
tree4d84be9ab60815a5fffe6628f8174fa875c6f042 /gdk-pixbuf/Makefile.am
parent89b0649a3c8391f723a1f1554df814ae11ce975c (diff)
downloadgdk-pixbuf-467204e8e7a894350517ebca2201a89bed56b0ad.tar.gz
Use Makefile.introspection
Use the new fancy rules from the Makefile.introspection, it makes the rules prettier and avoids quite a bit of duplication
Diffstat (limited to 'gdk-pixbuf/Makefile.am')
-rw-r--r--gdk-pixbuf/Makefile.am38
1 files changed, 16 insertions, 22 deletions
diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am
index 90346fe38..4384372c6 100644
--- a/gdk-pixbuf/Makefile.am
+++ b/gdk-pixbuf/Makefile.am
@@ -1,4 +1,7 @@
include $(top_srcdir)/Makefile.decl
+include $(INTROSPECTION_MAKEFILE)
+
+INTROSPECTION_GIRS =
SUBDIRS = pixops
@@ -687,32 +690,23 @@ EXTRA_DIST += \
gen-color-table.pl
if HAVE_INTROSPECTION
-BUILT_GIRSOURCES =
-
-GdkPixbuf-2.0.gir: $(INTROSPECTION_SCANNER) libgdk_pixbuf-2.0.la Makefile
- $(INTROSPECTION_SCANNER) -v \
- --namespace GdkPixbuf --nsversion=2.0 --strip-prefix=Gdk \
- $(INCLUDES) \
- --include=Gio-2.0 \
- --include=GModule-2.0 \
- --library=libgdk_pixbuf-2.0.la \
- --libtool="$(LIBTOOL)" \
- --output $@ \
- $(addprefix $(srcdir)/,$(libgdk_pixbufinclude_HEADERS)) \
- $(addprefix $(srcdir)/,$(libgdk_pixbuf_2_0_la_SOURCES))
-BUILT_GIRSOURCES += GdkPixbuf-2.0.gir
-
-girdir = $(datadir)/gir-1.0
-gir_DATA = $(BUILT_GIRSOURCES)
-typelibsdir = $(libdir)/girepository-1.0/
+GdkPixbuf_2_0_gir_SCANNERFLAGS = --strip-prefix=Gdk
+GdkPixbuf_2_0_gir_INCLUDES = GModule-2.0 Gio-2.0
+GdkPixbuf_2_0_gir_LIBS = libgdk_pixbuf-2.0.la
+GdkPixbuf_2_0_gir_CFLAGS = $(INCLUDES)
+GdkPixbuf_2_0_gir_FILES = \
+ $(addprefix $(srcdir)/,$(libgdk_pixbufinclude_HEADERS)) \
+ $(addprefix $(srcdir)/,$(libgdk_pixbuf_2_0_la_SOURCES))
+INTROSPECTION_GIRS += GdkPixbuf-2.0.gir
-typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
+girdir = $(INTROSPECTION_GIRDIR)
+dist_gir_DATA = $(INTROSPECTION_GIRS)
-%.typelib: %.gir $(INTROSPECTION_COMPILER)
- $(DEBUG) $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+typelibsdir = $(INTROSPECTION_TYPELIBDIR)
+typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
-CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
+CLEANFILES += $(dist_gir_DATA) $(typelibs_DATA)
endif
if CROSS_COMPILING