Kaydet (Commit) 8b212711 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

darn! finally bootstrap target (seems to) works on windows... and other

üst 81e95253
...@@ -352,8 +352,11 @@ config_host.mk : config_host.mk.in bin/repo-list.in ooo.lst.in configure.in auto ...@@ -352,8 +352,11 @@ config_host.mk : config_host.mk.in bin/repo-list.in ooo.lst.in configure.in auto
# #
# Bootstap # Bootstap
# #
$(WORKDIR)/bootstrap:
@cd $(SRCDIR) && ./bootstrap
@mkdir -p $(dir $@) && touch $@
bootstrap: $(SRCDIR)/workdir/$(INPATH)/bootstrap bootstrap: $(WORKDIR)/bootstrap
# #
# Fetch # Fetch
...@@ -362,7 +365,7 @@ fetch: src.downloaded ...@@ -362,7 +365,7 @@ fetch: src.downloaded
src.downloaded : autogen ooo.lst download src.downloaded : autogen ooo.lst download
ifeq ($(DO_FETCH_TARBALLS),YES) ifeq ($(DO_FETCH_TARBALLS),YES)
./download $(SRCDIR)/ooo.lst && touch $@ @./download $(SRCDIR)/ooo.lst && touch $@
else else
@echo "Automatic fetching of external tarballs is disabled." @echo "Automatic fetching of external tarballs is disabled."
endif endif
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
.PHONY: cross-build-toolset dev-install build findunusedcode .PHONY: cross-build-toolset dev-install build findunusedcode
$(SRCDIR)/workdir/$(INPATH)/bootstrap:
@cd $(SRCDIR) && ./bootstrap
@mkdir -p $(dir $@) && touch $@
ifeq ($(gb_SourceEnvAndRecurse_STAGE),buildpl) ifeq ($(gb_SourceEnvAndRecurse_STAGE),buildpl)
.DEFAULT_GOAL=all .DEFAULT_GOAL=all
...@@ -110,7 +106,7 @@ endef ...@@ -110,7 +106,7 @@ endef
# the build order dependencies are rather ugly... # the build order dependencies are rather ugly...
dev-install: \ dev-install: \
$(SRCDIR)/workdir/$(INPATH)/bootstrap \ bootstrap \
$(SRCDIR)/src.downloaded \ $(SRCDIR)/src.downloaded \
$(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset) \ $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset) \
| $(filter build,$(MAKECMDGOALS)) \ | $(filter build,$(MAKECMDGOALS)) \
...@@ -177,11 +173,11 @@ endif # gb_SourceEnvAndRecurse_STAGE=buildpl ...@@ -177,11 +173,11 @@ endif # gb_SourceEnvAndRecurse_STAGE=buildpl
ifeq ($(gb_SourceEnvAndRecurse_STAGE),gbuild) ifeq ($(gb_SourceEnvAndRecurse_STAGE),gbuild)
dev-install: $(SRCDIR)/workdir/$(INPATH)/bootstrap $(SRCDIR)/src.downloaded $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset) | $(filter build,$(MAKECMDGOALS)) dev-install: bootstrap $(SRCDIR)/src.downloaded $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset) | $(filter build,$(MAKECMDGOALS))
build: $(SRCDIR)/workdir/$(INPATH)bootstrap $(SRCDIR)/src.downloaded $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset) build: bootstrap $(SRCDIR)/src.downloaded $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross_toolset)
cross_toolset: $(SRCDIR)/workdir/$(INPATH)/bootstrap $(SRCDIR)/src.downloaded cross_toolset: bootstrap $(SRCDIR)/src.downloaded
findunusedcode: findunusedcode:
......
.PHONY : bootstrap
gb_PARTIALBUILD := T gb_PARTIALBUILD := T
ifeq ($(SOLARENV),) ifeq ($(SOLARENV),)
...@@ -8,6 +10,12 @@ endif ...@@ -8,6 +10,12 @@ endif
include $(module_directory)/../config_$(gb_Side).mk include $(module_directory)/../config_$(gb_Side).mk
endif endif
$(WORKDIR)/bootstrap:
@cd $(SRCDIR) && ./bootstrap
@mkdir -p $(dir $@) && touch $@
bootstrap: $(WORKDIR)/bootstrap
gb_SourceEnvAndRecurse_STAGE=gbuild gb_SourceEnvAndRecurse_STAGE=gbuild
include $(SOLARENV)/gbuild/gbuild.mk include $(SOLARENV)/gbuild/gbuild.mk
......
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