Module Name: src
Committed By: rillig
Date: Sun Jul 26 20:04:57 UTC 2020
Modified Files:
src/usr.bin/make: Makefile
Log Message:
make(1): explicitly add dependencies on headers
This prevents partial builds after changing a header. The declared
dependencies are more than strictly necessary, but that's still better
than having inconsistent partial builds because too few dependencies are
declared.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/usr.bin/make/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.74 src/usr.bin/make/Makefile:1.75
--- src/usr.bin/make/Makefile:1.74 Sun Jul 26 07:15:26 2020
+++ src/usr.bin/make/Makefile Sun Jul 26 20:04:57 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.74 2020/07/26 07:15:26 rillig Exp $
+# $NetBSD: Makefile,v 1.75 2020/07/26 20:04:57 rillig Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -37,12 +37,14 @@ COPTS.filemon_dev.c+= \
. endif
.endif
-.PATH: ${.CURDIR}/lst.lib
SUBDIR.roff+= PSD.doc
.if make(obj) || make(clean)
SUBDIR+= unit-tests
.endif
+${SRCS:M*.c:.c=.o}: buf.h config.h dir.h hash.h job.h lst.h make.h make_malloc.h
+${SRCS:M*.c:.c=.o}: meta.h metachar.h nonints.h pathnames.h sprite.h strlist.h trace.h
+
.include <bsd.prog.mk>
.include <bsd.subdir.mk>