xref: /freebsd/contrib/bmake/unit-tests/depsrc-precious.mk (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1# $NetBSD: depsrc-precious.mk,v 1.3 2020/11/15 20:20:58 rillig Exp $
2#
3# Tests for the special source .PRECIOUS in dependency declarations, which
4# is only relevant if the commands for the target fail or are interrupted.
5# In such a case, the target file is usually removed, to avoid having
6# half-finished files with a timestamp suggesting the file were up-to-date.
7#
8# For targets marked with .PRECIOUS, the target file is not removed.
9# The author of the makefile is then responsible for avoiding the above
10# situation, in which the target would be wrongly considered up-to-date,
11# just because its timestamp says so.
12
13# TODO: Implementation
14
15all:
16	@:;
17