summaryrefslogtreecommitdiff
path: root/GNUmakefile.mk
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-11-29 17:07:57 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-11-29 17:25:14 +0100
commitd73e574d8abd933537bf4d2155f36aa9a91a0acc (patch)
tree649adb8becc14c42d23544295729945147eaaa4d /GNUmakefile.mk
parent6a6152a9a3d76f8ce26e4a9b5bd6479f31009ee7 (diff)
move reconfigure into gbuild
Diffstat (limited to 'GNUmakefile.mk')
-rw-r--r--GNUmakefile.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/GNUmakefile.mk b/GNUmakefile.mk
index 6d613a6b4971..d40695c441a5 100644
--- a/GNUmakefile.mk
+++ b/GNUmakefile.mk
@@ -26,13 +26,23 @@
#
#*************************************************************************
+gb_SOURCEANDRERUN:=
+SRCDIR:=$(realpath $(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
ifeq ($(strip $(SOLARENV)),)
+ifneq ($(MAKECMDGOALS),$(SRCDIR)/Env.Host.sh)
+gb_SOURCEANDRERUN:=T
+gb_MINISOLARENV:=
+else
+SOLARENV:=$(SRCDIR)/solenv
+gb_MINISOLARENV:=T
+endif
+endif
+
+ifneq ($(gb_SOURCEANDRERUN),)
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/solenv/gbuild/source_and_rerun.mk
else
include $(SOLARENV)/gbuild/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(wildcard $(SRCDIR)/RepositoryModule_*.mk)))
endif
-
-
# vim: set noet sw=4 ts=4: