summaryrefslogtreecommitdiff
path: root/buildlib/defaults.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:27 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:27 +0000
commit101030ab14d60497fcba5b1c2866d52fc5ac4780 (patch)
treeac6ecefeeeef51c4e7fa80577c6af064060174c3 /buildlib/defaults.mak
parentabb9b874c5d1573a42c8c5519a38ac0575ef77ba (diff)
downloadapt-101030ab14d60497fcba5b1c2866d52fc5ac4780.tar.gz
More Solaris fixes
Author: jgg Date: 1999-12-10 06:30:42 GMT More Solaris fixes
Diffstat (limited to 'buildlib/defaults.mak')
-rw-r--r--buildlib/defaults.mak16
1 files changed, 14 insertions, 2 deletions
diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak
index 3e145f67..17a6b8ac 100644
--- a/buildlib/defaults.mak
+++ b/buildlib/defaults.mak
@@ -40,13 +40,25 @@ BUILD_POSSIBLE := $(BASE) $(BASE)/build-$(shell uname -m) $(BASE)/build
endif
BUILDX:= $(foreach i,$(BUILD_POSSIBLE),$(wildcard $(i)/environment.mak*))
-BUILDX:= $(patsubst %/,%,$(firstword $(dir $(BUILDX))))
ifeq ($(words $(BUILDX)),0)
-error-all:
+
+# Check for a busted wildcard function. We use this function in several
+# places, it must work.
+ifeq ($(words $(wildcard *)),0)
+error-all/environment.mak:
+ echo You have a broken version of GNU Make - upgrade.
+else
+error-all/environment.mak:
echo Can't find the build directory in $(BUILD_POSSIBLE) -- use BUILD=
endif
+# Force include below to come to the error target
+BUILDX := error-all
+else
+BUILDX:= $(patsubst %/,%,$(firstword $(dir $(BUILDX))))
+endif
+
override BUILD := $(BUILDX)
# Base definitions