[Bug 259886] make removes existing file with the same name as PHONY target on interrupt

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Nov 2021 17:32:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259886

--- Comment #1 from Simon J. Gerraty <sjg@FreeBSD.org> ---
bmake is not gmake

the behavior is as documented.
you can either use :: or .PRECIOUS to prevent the target being removed.

Note that .PHONY is unrelated to whether an actual file is created.
Indeed .PHONY is not needed in that case.

-- 
You are receiving this mail because:
You are the assignee for the bug.