1*e2eeea75SSimon J. Gerraty# $NetBSD: depsrc-precious.mk,v 1.3 2020/11/15 20:20:58 rillig Exp $ 22c3632d1SSimon J. Gerraty# 3*e2eeea75SSimon J. Gerraty# Tests for the special source .PRECIOUS in dependency declarations, which 4*e2eeea75SSimon J. Gerraty# is only relevant if the commands for the target fail or are interrupted. 5*e2eeea75SSimon J. Gerraty# In such a case, the target file is usually removed, to avoid having 6*e2eeea75SSimon J. Gerraty# half-finished files with a timestamp suggesting the file were up-to-date. 7*e2eeea75SSimon J. Gerraty# 8*e2eeea75SSimon J. Gerraty# For targets marked with .PRECIOUS, the target file is not removed. 9*e2eeea75SSimon J. Gerraty# The author of the makefile is then responsible for avoiding the above 10*e2eeea75SSimon J. Gerraty# situation, in which the target would be wrongly considered up-to-date, 11*e2eeea75SSimon J. Gerraty# just because its timestamp says so. 122c3632d1SSimon J. Gerraty 132c3632d1SSimon J. Gerraty# TODO: Implementation 142c3632d1SSimon J. Gerraty 152c3632d1SSimon J. Gerratyall: 162c3632d1SSimon J. Gerraty @:; 17