]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
Set up ccan make dependency correctly
authorKeith Busch <kbusch@kernel.org>
Thu, 13 Feb 2020 19:48:08 +0000 (11:48 -0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 13 Feb 2020 19:48:08 +0000 (11:48 -0800)
Fixes parallel -j make.

Signed-off-by: Keith Busch <kbusch@kernel.org>
src/Makefile

index 7e004fc11256beedd0e77160f6e970b0e0b9a4bd..541a8167fca5fd4e79341feb529420c44b8d72ca 100644 (file)
@@ -51,7 +51,7 @@ libccan_srcs := $(wildcard $(CCANDIR)ccan/*/*.c)
 libccan_objs := $(patsubst %.c,%.ol,$(libccan_srcs))
 libccan_sobjs := $(patsubst %.c,%.os,$(libccan_srcs))
 
-$(libccan_objs) $(libccan_sobjs): $(libccan_headers)
+$(libccan_objs) $(libccan_sobjs): $(libccan_headers) $(CCANDIR)config.h
 
 libnvme_priv := nvme/private.h
 libnvme_api := libnvme.h nvme/types.h nvme/ioctl.h nvme/filters.h nvme/tree.h nvme/util.h