Kaydet (Commit) 80bd3e05 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen Kaydeden (comit) Eike Rathke

kill gb_MINISOLARENV in favor of stages

üst 5b11cd8c
...@@ -26,23 +26,18 @@ ...@@ -26,23 +26,18 @@
# #
#************************************************************************* #*************************************************************************
gb_SOURCEANDRERUN:= SRCDIR:=$(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
SRCDIR:=$(realpath $(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
ifeq ($(strip $(SOLARENV)),) ifeq ($(strip $(gb_SourceEnvAndRecurse_STAGE)),)
ifneq ($(MAKECMDGOALS),$(SRCDIR)/Env.Host.sh) include $(SRCDIR)/solenv/gbuild/source_and_rerun.mk
gb_SOURCEANDRERUN:=T
gb_MINISOLARENV:=
else
SOLARENV:=$(SRCDIR)/solenv
gb_MINISOLARENV:=T
endif endif
ifeq ($(gb_SourceEnvAndRecurse_STAGE),reconfigure)
SOLARENV:=$(SRCDIR)/solenv
endif endif
ifneq ($(gb_SOURCEANDRERUN),) ifneq ($(filter reconfigure gbuild buildpl,$(gb_SourceEnvAndRecurse_STAGE)),)
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/solenv/gbuild/source_and_rerun.mk
else
include $(SOLARENV)/gbuild/gbuild.mk include $(SOLARENV)/gbuild/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(wildcard $(SRCDIR)/RepositoryModule_*.mk))) $(eval $(call gb_Module_make_global_targets,$(wildcard $(SRCDIR)/RepositoryModule_*.mk)))
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -50,7 +50,7 @@ fetch: $(SRCDIR)/src.downloaded ...@@ -50,7 +50,7 @@ fetch: $(SRCDIR)/src.downloaded
# fixme: can we prevent these exports in the first place? # fixme: can we prevent these exports in the first place?
$(SRCDIR)/Env.Host.sh: autogen.lastrun configure.in ooo.lst.in set_soenv.in $(SRCDIR)/Env.Host.sh: autogen.lastrun configure.in ooo.lst.in set_soenv.in
$(if $(gb_MINISOLARENV),$(SRCDIR)/autogen.sh,@echo "cannot reconfigure from within solarenv" && rm -f $(SRCDIR)/Env.Host.sh && exit 2) $(if $(filter reconfigure,$(gb_SourceEnvAndRecurse_STAGE)),$(SRCDIR)/autogen.sh,@echo "cannot reconfigure from within solarenv" && rm -f $(SRCDIR)/Env.Host.sh && exit 2)
$(WORKDIR)/bootstrap: $(WORKDIR)/bootstrap:
@cd $(SRCDIR) && ./bootstrap @cd $(SRCDIR) && ./bootstrap
......
...@@ -151,7 +151,7 @@ $(eval $(call gb_Helper_collect_libtargets)) ...@@ -151,7 +151,7 @@ $(eval $(call gb_Helper_collect_libtargets))
gb_Library_DLLPOSTFIX := lo gb_Library_DLLPOSTFIX := lo
# Include platform/cpu/compiler specific config/definitions # Include platform/cpu/compiler specific config/definitions
ifeq ($(strip $(gb_MINISOLARENV)),) ifneq ($(filter gbuild buidpl,$(gb_SourceEnvAndRecurse_STAGE)),)
include $(GBUILDDIR)/platform/$(OS)_$(CPUNAME)_$(COM).mk include $(GBUILDDIR)/platform/$(OS)_$(CPUNAME)_$(COM).mk
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment