[Bug 259886] make removes existing file with the same name as PHONY target on interrupt
Date: Tue, 16 Nov 2021 20:11:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259886
Bug ID: 259886
Summary: make removes existing file with the same name as PHONY
target on interrupt
Product: Base System
Version: 12.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: serpent7776@gmail.com
Make removes an existing file that has the same name as PHONY target when
interrupted:
Create an empty file:
$ touch all
Create a simple Makefile:
.PHONY: all
all:
sleep 10
Run make:
$ make all
while sleeping, interrupt make by sending Ctrl-C:
sleep 10
^Cmake: *** all removed
*** Signal 2
file `all` will be removed by make.
This behaviour is not exhibited by gnu make, which doesn't remove `all` file
when interrupted with Ctrl-C.
I consider this a bug in make, since `all` is a PHONY target that doesn't refer
to actual file.
FreeBSD 12.2-RELEASE-p7 GENERIC amd64
--
You are receiving this mail because:
You are the assignee for the bug.