]> Git Repo - linux.git/commit
selftests/bpf: make directory prerequisites order-only
authorIlya Leoshkevich <[email protected]>
Fri, 12 Jul 2019 13:56:31 +0000 (15:56 +0200)
committerDaniel Borkmann <[email protected]>
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 <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
tools/testing/selftests/bpf/Makefile
This page took 0.042273 seconds and 4 git commands to generate.