+2008-08-17 Colin Walters <walters@verbum.org>
+
+ * gir/glib-2.0.gir, gir/gobject-2.0.gir:
+ Rename to -good, always generate during build.
+ * gir/Makefile.am: Ensure .gir files dep on
+ all scanner sources.
+ * Makefile.am: Switch build order to ensure
+ the scanner is ready before we do gir/.
+ * tools/g-ir-scanner: Look for .git too.
+
2008-08-17 Johan Dahlin <johan@gnome.org>
* girepository/gtypelib.c (validate_enum_blob):
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = gir girepository giscanner tools tests
+SUBDIRS = girepository giscanner tools gir tests
DIST_SUBDIRS = m4 $(SUBDIRS)
man_MANS = docs/g-ir-scanner.1
BUILT_SOURCES =
G_IR_SCANNER = $(top_srcdir)/tools/g-ir-scanner
+G_IR_SCANNER_FILES = $(top_srcdir)/giscanner/*.py \
+ $(top_builddir)/giscanner/libgiscanner.la
# glib
GLIB_INCLUDEDIR=`pkg-config --variable=includedir glib-2.0`/glib-2.0
GLIB_LIBDIR=`pkg-config --variable=libdir glib-2.0`
-glib-2.0.gir: $(G_IR_SCANNER)
+glib-2.0.gir: $(G_IR_SCANNER) $(G_IR_SCANNER_FILES)
$(G_IR_SCANNER) -v --namespace GLib \
--output $@ \
--strip-prefix=g \
# gobject
GOBJECT_LIBDIR=`pkg-config --variable=libdir gobject-2.0`
-gobject-2.0.gir: $(G_IR_SCANNER)
+gobject-2.0.gir: $(G_IR_SCANNER) $(G_IR_SCANNER_FILES)
$(G_IR_SCANNER) -v --namespace GObject \
--output $@ \
--strip-prefix=g \
girdir=$(datadir)/gir
dist_gir_DATA = $(BUILT_SOURCES)
+
+EXTRA_DIST = glib-2.0-good.gir gobject-2.0-good.gir
# This only works on unix systems
currentdir = os.path.dirname(os.path.abspath(sys.argv[0]))
basedir = os.path.abspath(os.path.join(currentdir, '..'))
-if os.path.exists(os.path.join(basedir, '.svn')):
+if (os.path.exists(os.path.join(basedir, '.svn')) or
+ os.path.exists(os.path.join(basedir, '.git'))):
path = basedir
else:
path = os.path.join(basedir, 'lib', 'python%d.%d' % sys.version_info[:2],