selftests/Makefile: make `run_tests' depend on `all'

So a "make run_tests" will build the tests before trying to run them.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Andrew Morton 2012-03-28 14:42:54 -07:00 committed by Linus Torvalds
parent f467f71403
commit cab6b05600
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ all:
make -C $$TARGET; \
done;
run_tests:
run_tests: all
for TARGET in $(TARGETS); do \
make -C $$TARGET run_tests; \
done;