Node: build: there are two bench phony targets in the makefile

Created on 12 Nov 2017  路  7Comments  路  Source: nodejs/node

  • Version: master
  • Subsystem: build

What the title says. One of them should be removed.

https://github.com/nodejs/node/blob/c5a49e148d3293eb9e8c17a15cb8c876977f76af/Makefile#L1121-L1122

build good first issue

Most helpful comment

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.

All 7 comments

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 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akdor1154 picture akdor1154  路  3Comments

willnwhite picture willnwhite  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments

ksushilmaurya picture ksushilmaurya  路  3Comments

addaleax picture addaleax  路  3Comments