mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Don't generate output file for .PHONY targets
This commit is contained in:
parent
7e1c78b4f3
commit
37ebd8f8d5
1 changed files with 2 additions and 1 deletions
3
third_party/make/job.c
vendored
3
third_party/make/job.c
vendored
|
@ -1807,7 +1807,8 @@ child_execute_job (struct childbase *child, int good_stdin, char **argv)
|
||||||
* creation so that it can't be deleted by the command which
|
* creation so that it can't be deleted by the command which
|
||||||
* must truncate when writing its output.
|
* must truncate when writing its output.
|
||||||
*/
|
*/
|
||||||
if (strlen(c->file->name) < PATH_MAX)
|
if (!c->file->phony &&
|
||||||
|
strlen(c->file->name) < PATH_MAX)
|
||||||
{
|
{
|
||||||
int fd, rc, err = errno;
|
int fd, rc, err = errno;
|
||||||
strcpy (outpathbuf, c->file->name);
|
strcpy (outpathbuf, c->file->name);
|
||||||
|
|
Loading…
Reference in a new issue