Skip to content

Conversation

wking
Copy link
Contributor

@wking wking commented May 9, 2017

The $(var:pattern=replacement) syntax is documented here.

Spun off from #759.

The $(var:pattern=replacement) syntax is documented in [1].

[1]: https://www.gnu.org/software/make/manual/html_node/Text-Functions.html#index-patsubst-1

Signed-off-by: W. Trevor King <wking@tremily.us>
@dqminh
Copy link
Contributor

dqminh commented May 10, 2017

why do we need this ?

@wking
Copy link
Contributor Author

wking commented May 10, 2017 via email

@crosbymichael
Copy link
Member

Closing as we are going to remove PHONY

wking added a commit to wking/opencontainer-runtime-spec that referenced this pull request May 10, 2017
The only .PHONY entry we *need* is for schema/validate, since that's a
real file but we haven't told Make about its real dependencies (which
involve complicated Go lookups).  I'm personally in favor of using
.PHONY for all targets that aren't on-disk files, because it hints to
readers that the rule is not generating a file at the target.  But
there has been resistance to adding .PHONY entries to all such cases
(e.g. [1,2]), so this commit brings us around to a
internally-consistent "only use .PHONY when you always need it"
position.

That means that, for example, users who create files named 'clean'
will turn 'clean' the target into a no-op, but runtime-spec
maintainers are ok with that.

[1]: opencontainers#791 (comment)
[2]: opencontainers#791 (comment)

Signed-off-by: W. Trevor King <wking@tremily.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants