summaryrefslogtreecommitdiff
path: root/Makefile-gir.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-03-25 18:07:06 -0400
committerColin Walters <walters@verbum.org>2011-03-25 18:08:26 -0400
commit752a97f9609bfe15b522a30dc0ca6d2c5b5acfc8 (patch)
tree392fa3b02bb2e6e980d00301b28354db4885a6c9 /Makefile-gir.am
parent30e66074ef6268b4e332049e86d904c52d9bd1db (diff)
downloadgobject-introspection-752a97f9609bfe15b522a30dc0ca6d2c5b5acfc8.tar.gz
Don't dist gir/cairo-1.0.gir, it's generated
We should not be disting it, because it contains values derived from configure. Extract it out of STATIC_GIRSOURCES, and also move it to a Makefile rule rather than AC_SUBST as it should be so it gets cleaned properly.
Diffstat (limited to 'Makefile-gir.am')
-rw-r--r--Makefile-gir.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile-gir.am b/Makefile-gir.am
index 5751f801..02a4ea17 100644
--- a/Makefile-gir.am
+++ b/Makefile-gir.am
@@ -1,7 +1,6 @@
BUILT_GIRSOURCES =
STATIC_GIRSOURCES = \
- gir/cairo-1.0.gir \
gir/DBus-1.0.gir \
gir/DBusGLib-1.0.gir \
gir/fontconfig-2.0.gir \
@@ -14,6 +13,17 @@ STATIC_GIRSOURCES = \
gir/xrandr-1.3.gir
EXTRA_DIST += $(STATIC_GIRSOURCES)
+cairogirdir=$(GIR_DIR)
+cairogir_DATA = gir/cairo-1.0.gir
+gir/cairo-1.0.gir: gir/cairo-1.0.gir.in Makefile
+ sed \
+ -e s,%CAIRO_SHARED_LIBRARY%,$(CAIRO_SHARED_LIBRARY), \
+ -e s,%CAIRO_GIR_PACKAGE%,$(CAIRO_GIR_PACKAGE), \
+ < $< > $@.tmp && mv $@.tmp $@
+BUILT_SOURCES += gir/cairo-1.0.gir
+CLEANFILES += gir/cairo-1.0.gir
+EXTRA_DIST += cairo-1.0.gir.in
+
# Doesn't seem to work to do gir/%.typelib =(
gir/cairo-1.0.typelib: g-ir-compiler
gir/DBus-1.0.typelib: g-ir-compiler