tools: bpf: call descend in Makefile
authorJiri Benc <jbenc@redhat.com>
Thu, 8 Mar 2018 22:00:39 +0000 (23:00 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Mar 2018 09:22:59 +0000 (10:22 +0100)
Use the descend macro to properly propagate $(subdir) to bpftool.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/Makefile

index e8d9e41..daca0a4 100644 (file)
@@ -76,12 +76,12 @@ install: $(PROGS) bpftool_install
        $(INSTALL) $(OUTPUT)bpf_asm $(DESTDIR)$(prefix)/bin/bpf_asm
 
 bpftool:
-       $(MAKE) -C bpftool
+       $(call descend,bpftool)
 
 bpftool_install:
-       $(MAKE) -C bpftool install
+       $(call descend,bpftool,install)
 
 bpftool_clean:
-       $(MAKE) -C bpftool clean
+       $(call descend,bpftool,clean)
 
 .PHONY: bpftool FORCE