What the title says. One of them should be removed.
https://github.com/nodejs/node/blob/c5a49e148d3293eb9e8c17a15cb8c876977f76af/Makefile#L1121-L1122
Not really a bug. Multiple .PHONY targets are allowed and even encouraged by some style guides.
Since we're discussing this, maybe it's a good idea to switch to this style:
.PHONY: foo
foo:
make_foo
.PHONY: bar
bar:
make_bar
Makes it more obvious it's phony vis-a-vis hiding that fact at the end of the file.
Added good first issue label for Ben's suggestion.
Hello @targos, @bnoordhuis
Should we make it like:
.PHONY: foo
foo:
make_foo
.PHONY: bar
bar:
make_bar
# Redefinition
.PHONY: foo \
bar
Maybe I can work on this
@okyantoro Yes, but not the block you labeled 'redefinition.'
@bnoordhuis I am still working on this. But I find targets below have no matching target inside Makefile.
bench-http-simple \
bench-idle \
blog \
blogclean \
dist \
dynamiclib \
install-bin \
install-includes \
staticlib \
website-upload
Is it okay to delete these targets?
@okyantoro Yes, that's fine.
Fixed in https://github.com/nodejs/node/pull/17964
Thank you @okyantoro !
Most helpful comment
Not really a bug. Multiple
.PHONYtargets are allowed and even encouraged by some style guides.Since we're discussing this, maybe it's a good idea to switch to this style:
Makes it more obvious it's phony vis-a-vis hiding that fact at the end of the file.