xref: /freebsd/contrib/bmake/unit-tests/dep.mk (revision 2a58b312b62f908ec92311d1bd8536dbaeb8e55b)
1# $NetBSD: dep.mk,v 1.3 2021/12/13 23:38:54 rillig Exp $
2#
3# Tests for dependency declarations, such as "target: sources".
4
5.MAIN: all
6
7# As soon as a target is defined using one of the dependency operators, it is
8# restricted to this dependency operator and cannot use the others anymore.
9only-colon:
10# expect+1: Inconsistent operator for only-colon
11only-colon!
12# expect+1: Inconsistent operator for only-colon
13only-colon::
14# Ensure that the target still has the original operator.  If it hadn't, there
15# would be another error message.
16only-colon:
17
18all:
19