summaryrefslogtreecommitdiff
path: root/solenv/gbuild/BuildDirs.mk
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-10-21 17:25:07 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-10-21 21:28:49 +0200
commita260c792f437f62c96289ac314faa0c6c4e128ae (patch)
tree30cbd6fee4db4a325c07bd078fb41077618d7e7f /solenv/gbuild/BuildDirs.mk
parent356536956bb7d6958b942259cf231b25fa89b7cd (diff)
kill multi repo support: BuildDirs and gbuild.mk, GNUmakefile.mk
Diffstat (limited to 'solenv/gbuild/BuildDirs.mk')
-rw-r--r--solenv/gbuild/BuildDirs.mk13
1 files changed, 3 insertions, 10 deletions
diff --git a/solenv/gbuild/BuildDirs.mk b/solenv/gbuild/BuildDirs.mk
index 6cb575af98ac..ad2fa51065e9 100644
--- a/solenv/gbuild/BuildDirs.mk
+++ b/solenv/gbuild/BuildDirs.mk
@@ -40,8 +40,7 @@ ifneq ($(and $(gb_LOCALBUILDDIR),$(wildcard $(gb_LOCALBUILDDIR)/SetupLocal.mk)),
include $(gb_LOCALBUILDDIR)/SetupLocal.mk
endif
-ifeq ($(strip $(gb_REPOS)),)
-gb_REPOS := $(SOLARSRC)
+SRCDIR := $(SOLARSRC)
endif
# HACK
@@ -50,15 +49,9 @@ ifeq ($(OS_FOR_BUILD),WNT)
override WORKDIR := $(shell cygpath -u $(WORKDIR))
override OUTDIR := $(shell cygpath -u $(OUTDIR))
override OUTDIR_FOR_BUILD := $(shell cygpath -u $(OUTDIR_FOR_BUILD))
-override gb_REPOS := $(shell cygpath -u $(gb_REPOS))
+override SRCDIR := $(shell cygpath -u $(SRCDIR))
endif
-REPODIR := $(patsubst %/,%,$(dir $(firstword $(gb_REPOS))))
-
-ifeq ($(filter setuplocal removelocal,$(MAKECMDGOALS)),)
-ifneq ($(filter-out $(foreach repo,$(gb_REPOS),$(realpath $(repo))/%),$(realpath $(firstword $(MAKEFILE_LIST)))),)
-$(eval $(call gb_Output_error,The initial makefile $(realpath $(firstword $(MAKEFILE_LIST))) is not in the repositories $(foreach repo,$(gb_REPOS),$(realpath $(repo))).,ALL))
-endif
-endif
+REPODIR := $(patsubst %/,%,$(dir $(SRCDIR)))
# vim: set noet sw=4: