Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f1b6f9d authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <mawilcox@microsoft.com>
parent 284d96a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ clean:


vpath %.c ../../lib
vpath %.c ../../lib


$(OFILES): *.h */*.h generated/map-shift.h \
$(OFILES): Makefile *.h */*.h generated/map-shift.h \
	../../include/linux/*.h \
	../../include/linux/*.h \
	../../include/asm/*.h \
	../../include/asm/*.h \
	../../../include/linux/radix-tree.h \
	../../../include/linux/radix-tree.h \
@@ -43,7 +43,7 @@ idr.c: ../../../lib/idr.c
.PHONY: mapshift
.PHONY: mapshift


mapshift:
mapshift:
	@if ! grep -qw $(SHIFT) generated/map-shift.h; then		\
	@if ! grep -qws $(SHIFT) generated/map-shift.h; then		\
		echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" >		\
		echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" >		\
				generated/map-shift.h;			\
				generated/map-shift.h;			\
	fi
	fi