Skip to content

Commit b919918

Browse files
musamaanjumshuahkh
authored andcommitted
selftests: futex: Use variable MAKE instead of make
Recursive make commands should always use the variable MAKE, not the explicit command name ‘make’. This has benefits and removes the following warning when multiple jobs are used for the build: make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. Fixes: a8ba798 ("selftests: enable O and KBUILD_OUTPUT") Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: André Almeida <andrealmeid@collabora.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 908a26e commit b919918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/futex/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ all:
1111
@for DIR in $(SUBDIRS); do \
1212
BUILD_TARGET=$(OUTPUT)/$$DIR; \
1313
mkdir $$BUILD_TARGET -p; \
14-
make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
14+
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
1515
if [ -e $$DIR/$(TEST_PROGS) ]; then \
1616
rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \
1717
fi \
@@ -32,6 +32,6 @@ override define CLEAN
3232
@for DIR in $(SUBDIRS); do \
3333
BUILD_TARGET=$(OUTPUT)/$$DIR; \
3434
mkdir $$BUILD_TARGET -p; \
35-
make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
35+
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
3636
done
3737
endef

0 commit comments

Comments
 (0)