summaryrefslogtreecommitdiff
path: root/buildlib/defaults.mak
diff options
context:
space:
mode:
Diffstat (limited to 'buildlib/defaults.mak')
-rw-r--r--buildlib/defaults.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak
index adbaf2758..05a4392a5 100644
--- a/buildlib/defaults.mak
+++ b/buildlib/defaults.mak
@@ -36,7 +36,7 @@ BUILD_POSSIBLE = $(BASE) $(BASE)/build
endif
BUILD:= $(foreach i,$(BUILD_POSSIBLE),$(wildcard $(i)/environment.mak))
-BUILD:= $(firstword $(dir $(BUILD)))
+BUILD:= $(patsubst %/,%,$(firstword $(dir $(BUILD))))
ifeq ($(words $(BUILD)),0)
error-all: