summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-04-12 05:37:22 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-04-12 05:37:22 -0700
commit4c4f32ccf5ed5ba03cd286e65e9753429381e968 (patch)
treed3ce0e985467dd728cd02a8fd6de1a295925c42a
parent5f5a02f73faf33c2c264646df49f5162098a593a (diff)
Make sure glib subdir is configure before distinternal-glib
We want to distribute the glib subdir, but we want to avoid configuring it for the default build case where the system glib is used. Override the standard dist target so that we can reconfigure with --with-internal-glib if necessary. I think the target should be compatible with the original dist.
-rw-r--r--Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 082b03d..8eb1d52 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -48,3 +48,13 @@ pkg_config_SOURCES= \
parse.c \
main.c
DISTCHECK_CONFIGURE_FLAGS = --with-installed-popt --with-internal-glib
+
+# Override the normal dist so that we can make sure the glib subdir is
+# configured first. Otherwise it will just bomb entering the directory.
+dist dist-all: check-glib-Makefile
+ @$(MAKE) $(AM_MAKEFLAGS) dist-gzip
+check-glib-Makefile:
+ @if test ! -f glib/Makefile; then \
+ echo $(SHELL) $(top_srcdir)/configure --with-internal-glib; \
+ $(SHELL) $(top_srcdir)/configure --with-internal-glib; \
+ fi