Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests make(1): add test for combining seve...



details:   https://anonhg.NetBSD.org/src/rev/a511b96115f2
branches:  trunk
changeset: 976218:a511b96115f2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Sep 14 17:43:36 2020 +0000

description:
make(1): add test for combining several special targets

diffstat:

 usr.bin/make/unit-tests/deptgt.exp |  1 +
 usr.bin/make/unit-tests/deptgt.mk  |  6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a3528051634f -r a511b96115f2 usr.bin/make/unit-tests/deptgt.exp
--- a/usr.bin/make/unit-tests/deptgt.exp        Mon Sep 14 17:14:12 2020 +0000
+++ b/usr.bin/make/unit-tests/deptgt.exp        Mon Sep 14 17:43:36 2020 +0000
@@ -1,1 +1,2 @@
+make: "deptgt.mk" line 10: warning: Extra target ignored
 exit status 0
diff -r a3528051634f -r a511b96115f2 usr.bin/make/unit-tests/deptgt.mk
--- a/usr.bin/make/unit-tests/deptgt.mk Mon Sep 14 17:14:12 2020 +0000
+++ b/usr.bin/make/unit-tests/deptgt.mk Mon Sep 14 17:43:36 2020 +0000
@@ -1,9 +1,13 @@
-# $NetBSD: deptgt.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: deptgt.mk,v 1.3 2020/09/14 17:43:36 rillig Exp $
 #
 # Tests for special targets like .BEGIN or .SUFFIXES in dependency
 # declarations.
 
 # TODO: Implementation
 
+# Just in case anyone tries to compile several special targets in a single
+# dependency line: That doesn't work, and make immediately rejects it.
+.SUFFIXES .PHONY: .c.o
+
 all:
        @:;



Home | Main Index | Thread Index | Old Index