Skip to content

Commit a2ce133

Browse files
Ming Leiaxboe
authored andcommitted
selftests/ublk: fix Makefile to rebuild on header changes
Add header dependencies to kublk build rule so that changes to kublk.h, ublk_dep.h, or utils.h trigger a rebuild. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 60cf863 commit a2ce133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/ublk/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ TEST_PROGS += test_stress_07.sh
5151

5252
TEST_GEN_PROGS_EXTENDED = kublk
5353

54+
LOCAL_HDRS += $(wildcard *.h)
5455
include ../lib.mk
5556

56-
$(TEST_GEN_PROGS_EXTENDED): kublk.c null.c file_backed.c common.c stripe.c \
57-
fault_inject.c
57+
$(TEST_GEN_PROGS_EXTENDED): $(wildcard *.c)
5858

5959
check:
6060
shellcheck -x -f gcc *.sh

0 commit comments

Comments
 (0)