aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/depsrc-end.mk
blob: 1bfe50d9862049f46c0bc8f472209b060e3ca83c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: depsrc-end.mk,v 1.2 2024/04/27 20:41:32 rillig Exp $
#
# Demonstrate an edge case in which .BEGIN depends on .END, which sounds a bit
# paradox but works since these special nodes are not in the dependency
# hierarchy where the cycles are detected.

.BEGIN:
	: 'Making ${.TARGET}.'
.END:
	: 'Making ${.TARGET}.'
all:
	: 'Making ${.TARGET}.'

.BEGIN: .END