Module Name: src
Committed By: rillig
Date: Sat Aug 22 12:42:32 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: dep-double-colon.exp dep-double-colon.mk
Log Message:
make(1): add test for :: in the main target
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/dep-double-colon.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/dep-double-colon.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/dep-double-colon.exp
diff -u src/usr.bin/make/unit-tests/dep-double-colon.exp:1.1 src/usr.bin/make/unit-tests/dep-double-colon.exp:1.2
--- src/usr.bin/make/unit-tests/dep-double-colon.exp:1.1 Sun Aug 16 12:07:51 2020
+++ src/usr.bin/make/unit-tests/dep-double-colon.exp Sat Aug 22 12:42:32 2020
@@ -1 +1,5 @@
+command 1a
+command 1b
+command 2a
+command 2b
exit status 0
Index: src/usr.bin/make/unit-tests/dep-double-colon.mk
diff -u src/usr.bin/make/unit-tests/dep-double-colon.mk:1.2 src/usr.bin/make/unit-tests/dep-double-colon.mk:1.3
--- src/usr.bin/make/unit-tests/dep-double-colon.mk:1.2 Sun Aug 16 14:25:16 2020
+++ src/usr.bin/make/unit-tests/dep-double-colon.mk Sat Aug 22 12:42:32 2020
@@ -1,8 +1,11 @@
-# $NetBSD: dep-double-colon.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: dep-double-colon.mk,v 1.3 2020/08/22 12:42:32 rillig Exp $
#
# Tests for the :: operator in dependency declarations.
-# TODO: Implementation
+all::
+ @echo 'command 1a'
+ @echo 'command 1b'
-all:
- @:;
+all::
+ @echo 'command 2a'
+ @echo 'command 2b'