diff options
author | Jonathan Kollasch <jakllsch@kollasch.net> | 2010-09-28 21:11:48 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-09-28 21:11:48 +0000 |
commit | 7ff5b449ce259ab6633db88da9ed7417c25bf110 (patch) | |
tree | b04d01939904a4a1714cb44500cc28aad6026c3f | |
parent | 1f98ee72c35081f4cff5b145fa56ad8ff936c9e9 (diff) |
As $PWD is not exported by all shells, use make-builtin $(CURDIR)
instead of $(PWD).
Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5878 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ HOSTCC:=$(CC_real) --hostcc HOSTCXX:=$(CC_real) --hostcxx endif -export top := $(PWD) +export top := $(CURDIR) export src := src export srck := $(top)/util/kconfig export obj ?= build @@ -196,7 +196,7 @@ includemakefiles= \ $$(abspath $$(patsubst src/%, \ $(obj)/%, \ $$(addprefix $(dir $(1)),$$($(type)-y))))))) \ - $(eval subdirs+=$$(subst $(PWD)/,,$$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y))))) + $(eval subdirs+=$$(subst $(CURDIR)/,,$$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y))))) # For each path in $(subdirs) call includemakefiles, passing $(1) as $(3) # Repeat until subdirs is empty |