Module Name:    src
Committed By:   rillig
Date:           Mon Sep 14 17:43:36 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: deptgt.exp deptgt.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/deptgt.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/deptgt.mk

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/unit-tests/deptgt.exp
diff -u src/usr.bin/make/unit-tests/deptgt.exp:1.1 src/usr.bin/make/unit-tests/deptgt.exp:1.2
--- src/usr.bin/make/unit-tests/deptgt.exp:1.1	Sun Aug 16 12:07:51 2020
+++ src/usr.bin/make/unit-tests/deptgt.exp	Mon Sep 14 17:43:36 2020
@@ -1 +1,2 @@
+make: "deptgt.mk" line 10: warning: Extra target ignored
 exit status 0

Index: src/usr.bin/make/unit-tests/deptgt.mk
diff -u src/usr.bin/make/unit-tests/deptgt.mk:1.2 src/usr.bin/make/unit-tests/deptgt.mk:1.3
--- src/usr.bin/make/unit-tests/deptgt.mk:1.2	Sun Aug 16 14:25:16 2020
+++ src/usr.bin/make/unit-tests/deptgt.mk	Mon Sep 14 17:43:36 2020
@@ -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:
 	@:;

Reply via email to