Skip to contentSkip to conversation

radix tree test suite: rebuild when headers change

PATCH New [email protected] 1 participant 1 message May 21, 2016 Xarray

lore
Share & tools
lore
#0 lore raw

PATCH 104/162 radix tree test suite: rebuild when headers change

From: Ross Zwisler <[email protected]>
Subject: radix tree test suite: rebuild when headers change

When we make changes to radix-tree.h in the regular kernel source (include/linux/radix-tree.h), we really want our test code to be rebuilt.

We also include a few other headers from tools/include and probably want to rebuild if these have been changed.

Update the makefile so that all of our objects will be rebuilt when any of the headers we depend on are changed.

Cc Konstantin Khlebnikov <[email protected]>
Cc Kirill Shutemov <[email protected]>
Cc Jan Kara <[email protected]>
Cc Neil Brown <[email protected]>

---

 tools/testing/radix-tree/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/radix-tree/Makefile renamed from tools/testing/radix-tree/Makefile~radix-tree-test-suite-rebuild-when-headers-change +1 -1
diff -puN tools/testing/radix-tree/Makefile~radix-tree-test-suite-rebuild-when-headers-change tools/testing/radix-tree/Makefile
@@ -13,7 +13,7 @@ main:	$(OFILES)
 clean:
 	$(RM) -f $(TARGETS) *.o radix-tree.c
 
-$(OFILES): *.h */*.h
+$(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
 
 radix-tree.c: ../../../lib/radix-tree.c
 	sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@

_