diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2016-11-22 11:30:26 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-12-11 14:12:56 +0300 |
commit | e19b7cee020441dd690613d223aed7abb0bcda81 (patch) | |
tree | 148ac04e7634c1e9234275fe82c2f9e22333c00a /samples/bpf | |
parent | 76bee23411f8510fbf5fc5641bae2c203b726eb6 (diff) | |
download | linux-e19b7cee020441dd690613d223aed7abb0bcda81.tar.xz |
make use of make variable CURDIR instead of calling pwd
make already provides the current working directory in a variable, so make
use of it instead of forking a shell. Also replace usage of PWD by
CURDIR. PWD is provided by most shells, but not all, so this makes the
build system more robust.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 12b7304d55dc..b1e322860a7f 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -119,10 +119,10 @@ CLANG ?= clang # Trick to allow make to be run from this directory all: - $(MAKE) -C ../../ $$PWD/ + $(MAKE) -C ../../ $(CURDIR)/ clean: - $(MAKE) -C ../../ M=$$PWD clean + $(MAKE) -C ../../ M=$(CURDIR) clean @rm -f *~ # Verify LLVM compiler tools are available and bpf target is supported by llc |