Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): explicitly add dependencies on headers
details: https://anonhg.NetBSD.org/src/rev/cdfda4d5d1b9
branches: trunk
changeset: 974256:cdfda4d5d1b9
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jul 26 20:04:57 2020 +0000
description:
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.
diffstat:
usr.bin/make/Makefile | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r b0e0183de493 -r cdfda4d5d1b9 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile Sun Jul 26 19:55:24 2020 +0000
+++ b/usr.bin/make/Makefile Sun Jul 26 20:04:57 2020 +0000
@@ -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 @@
. 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>
Home |
Main Index |
Thread Index |
Old Index