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): one file per line in the Makefile
details: https://anonhg.NetBSD.org/src/rev/514c6fb2c163
branches: trunk
changeset: 937040:514c6fb2c163
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Aug 07 05:13:04 2020 +0000
description:
make(1): one file per line in the Makefile
Suggested by sjg.
diffstat:
usr.bin/make/Makefile | 44 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 38 insertions(+), 6 deletions(-)
diffs (61 lines):
diff -r af92f863ba7f -r 514c6fb2c163 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile Fri Aug 07 00:43:47 2020 +0000
+++ b/usr.bin/make/Makefile Fri Aug 07 05:13:04 2020 +0000
@@ -1,10 +1,43 @@
-# $NetBSD: Makefile,v 1.81 2020/08/06 05:32:26 rillig Exp $
+# $NetBSD: Makefile,v 1.82 2020/08/07 05:13:04 rillig Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
-SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c lst.c main.c
-SRCS+= make.c make_malloc.c metachar.c parse.c
-SRCS+= str.c strlist.c suff.c targ.c trace.c var.c util.c
+SRCS= arch.c
+SRCS+= buf.c
+SRCS+= compat.c
+SRCS+= cond.c
+SRCS+= dir.c
+SRCS+= for.c
+SRCS+= hash.c
+SRCS+= job.c
+SRCS+= lst.c
+SRCS+= main.c
+SRCS+= make.c
+SRCS+= make_malloc.c
+SRCS+= metachar.c
+SRCS+= parse.c
+SRCS+= str.c
+SRCS+= strlist.c
+SRCS+= suff.c
+SRCS+= targ.c
+SRCS+= trace.c
+SRCS+= var.c
+SRCS+= util.c
+HDRS= buf.h
+HDRS+= config.h
+HDRS+= dir.h
+HDRS+= hash.h
+HDRS+= job.h
+HDRS+= lst.h
+HDRS+= make.h
+HDRS+= make_malloc.h
+HDRS+= meta.h
+HDRS+= metachar.h
+HDRS+= nonints.h
+HDRS+= pathnames.h
+HDRS+= sprite.h
+HDRS+= strlist.h
+HDRS+= trace.h
# Whether to generate a coverage report after running the tests.
USE_COVERAGE?= no # works only with gcc; clang9 fails to link
@@ -50,8 +83,7 @@
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
+${SRCS:M*.c:.c=.o}: ${HDRS}
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
Home |
Main Index |
Thread Index |
Old Index