diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:27 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:27 +0000 |
commit | 101030ab14d60497fcba5b1c2866d52fc5ac4780 (patch) | |
tree | ac6ecefeeeef51c4e7fa80577c6af064060174c3 /buildlib/defaults.mak | |
parent | abb9b874c5d1573a42c8c5519a38ac0575ef77ba (diff) |
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.mak | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak index 3e145f673..17a6b8ac8 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 |