Bug 139601 - [patch] make(1): variable substitution for $@ in dependency source fails
Summary: [patch] make(1): variable substitution for $@ in dependency source fails
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2009-10-14 14:30 UTC by FUCHIGAMI Masachika
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:

file.diff (862 bytes, patch)
2009-10-14 14:30 UTC, FUCHIGAMI Masachika
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description FUCHIGAMI Masachika 2009-10-14 14:30:02 UTC
local variable substitution in dependency source fails when $@ is used in another variable name ( e.g. ${$(@)_SRC} ).

make(1) delayes load-time variable substitution for local variables by expanding local variables to itself ( $@ -> $@ ), but make(1) does not delay variables containing local variables.

How-To-Repeat: -- Makefile
foo: $($@).txt
% touch bar.txt
% make foo
make: don't know how to make .txt. Stop
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:40 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped