tools: bpftool: fix dependency file path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 16 Mar 2018 06:26:14 +0000 (23:26 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Mar 2018 08:22:55 +0000 (09:22 +0100)
Auto-generated dependency files are in the OUTPUT directory,
we need to include them from there.  This fixes object files
not being rebuilt after header changes.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Makefile

index 4c2867481f5cf7244c06a2cf9af970403a9f22fd..50a715ac9e8bcfad0eddf8688c34c3c7be5aaa8c 100644 (file)
@@ -70,7 +70,7 @@ ifeq ($(feature-disassembler-four-args), 1)
 CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
 endif
 
-include $(wildcard *.d)
+include $(wildcard $(OUTPUT)*.d)
 
 all: $(OUTPUT)bpftool