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/1864880c1f99
branches: trunk
changeset: 954994:1864880c1f99
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 5ac90470a268 -r 1864880c1f99 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 5ac90470a268 -r 1864880c1f99 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