selftests/bpf: make directory prerequisites order-only
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 12 Jul 2019 13:56:31 +0000 (15:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 21:10:17 +0000 (23:10 +0200)
commite46fc22e60a410d896448835adca95aa3332d25d
tree5a4bb8530eca95c6871f6242061046518cbc6252
parent025c0c0917b78f21e3aaffecda75968d54172095
selftests/bpf: make directory prerequisites order-only

When directories are used as prerequisites in Makefiles, they can cause
a lot of unnecessary rebuilds, because a directory is considered changed
whenever a file in this directory is added, removed or modified.

If the only thing a target is interested in is the existence of the
directory it depends on, which is the case for selftests/bpf, this
directory should be specified as an order-only prerequisite: it would
still be created in case it does not exist, but it would not trigger a
rebuild of a target in case it's considered changed.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile