diff options
Diffstat (limited to 'GNUmakefile.mk')
-rw-r--r-- | GNUmakefile.mk | 14 |
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: |