Skip to content

Commit

Permalink
selftests/powerpc: Rename TARGETS in powerpc selftests makefile
Browse files Browse the repository at this point in the history
This patch changes the name of the make variable TARGETS, to prevent it
from colliding with a value set by the user on the command line (as they
are recommended to do by tools/testing/selftests/README.txt).

Without this patch, "make -C tools/testing/selftests TARGETS=powerpc"
will fail.

Signed-off-by: Sam Bobroff <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
mpe committed Mar 18, 2015
1 parent 58dae82 commit a908f5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/testing/selftests/powerpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ CFLAGS := -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CUR

export CC CFLAGS

TARGETS = pmu copyloops mm tm primitives stringloops vphn
SUB_DIRS = pmu copyloops mm tm primitives stringloops vphn

endif

all: $(TARGETS)
all: $(SUB_DIRS)

$(TARGETS):
$(SUB_DIRS):
$(MAKE) -k -C $@ all

run_tests: all
@for TARGET in $(TARGETS); do \
@for TARGET in $(SUB_DIRS); do \
$(MAKE) -C $$TARGET run_tests; \
done;

clean:
@for TARGET in $(TARGETS); do \
@for TARGET in $(SUB_DIRS); do \
$(MAKE) -C $$TARGET clean; \
done;
rm -f tags

tags:
find . -name '*.c' -o -name '*.h' | xargs ctags

.PHONY: all run_tests clean tags $(TARGETS)
.PHONY: all run_tests clean tags $(SUB_DIRS)

0 comments on commit a908f5d

Please sign in to comment.