Commit efa09fda authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Tomasz Zawadzki
Browse files

mk: prevent removing dependency files



GNU Make since version 4.4 started to remove *.d files, apparently
because it considers them intermediate. This is a regression, fixed in
version 4.4.1 - 95c2db7b ("[SV 63484] Force included makefiles to be
explicit"). It causes issues with rebuilding sources that had their
include files changed. To prevent this, use the .NOTINTERMEDIATE special
target, which was also introduced in GNU Make 4.4.

Change-Id: Iba018f3c90e47783e5d522e68642364f984caaee
Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21045


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 4c01eb58
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,4 +5,7 @@

.PRECIOUS: $(OBJS)

# workaround for GNU Make 4.4 bug
.NOTINTERMEDIATE: $(OBJS:.o=.d)

-include $(OBJS:.o=.d)