aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2017-03-02 12:24:28 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2017-03-07 13:18:22 -0500
commit3f1b6f9d49ba5a209d745fa2448657d8b66ed0c0 (patch)
treedd577ab60274a16fc744852129f747bdd6408c9b /tools
parent284d96a494d705b9c5330c900e976fceda885b9f (diff)
radix tree test suite: Depend on Makefile and quieten grep
Changing the CFLAGS in the Makefile didn't always lead to a recompilation because the OFILES didn't depend on the Makefile. Also, after doing make clean, grep would still complain about a missing map-shift.h; we need -s as well as -q. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/radix-tree/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index 022488f50fc6..4c6289c5d415 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -28,7 +28,7 @@ clean:
28 28
29vpath %.c ../../lib 29vpath %.c ../../lib
30 30
31$(OFILES): *.h */*.h generated/map-shift.h \ 31$(OFILES): Makefile *.h */*.h generated/map-shift.h \
32 ../../include/linux/*.h \ 32 ../../include/linux/*.h \
33 ../../include/asm/*.h \ 33 ../../include/asm/*.h \
34 ../../../include/linux/radix-tree.h \ 34 ../../../include/linux/radix-tree.h \
@@ -43,7 +43,7 @@ idr.c: ../../../lib/idr.c
43.PHONY: mapshift 43.PHONY: mapshift
44 44
45mapshift: 45mapshift:
46 @if ! grep -qw $(SHIFT) generated/map-shift.h; then \ 46 @if ! grep -qws $(SHIFT) generated/map-shift.h; then \
47 echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" > \ 47 echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" > \
48 generated/map-shift.h; \ 48 generated/map-shift.h; \
49 fi 49 fi