Issue 78033 - Document :i macro expansion switch
Summary: Document :i macro expansion switch
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: dmake (show other issues)
Version: current
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 03:06 UTC by quetschke
Modified: 2013-08-07 15:34 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Documentation patch (1.17 KB, patch)
2007-06-03 18:16 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2007-06-02 03:06:14 UTC
The dmake man page describes the :i macro expansion ( $(MACRO:i) ) as:
  i or I - inferred names of targets.

This needs some additional explanation: If the macro value corresponds to a target
(or prerequisite) the actuall corresponding filename might have been changed
because of the .SOURCE[.suffix] special target.

The following example prints /tmp/aaa if that file exists:

- - makefile.mk - -
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce

.SOURCE : /tmp
QQQ:=aaa

all : aaa
	@echo $(QQQ:i)
- - - -
Comment 1 quetschke 2007-06-03 18:16:02 UTC
Created attachment 45623 [details]
Documentation patch
Comment 2 quetschke 2007-06-18 04:56:49 UTC
Committed to dmake49.
Comment 3 quetschke 2007-06-18 04:57:27 UTC
@ause: Please verify.
Comment 4 hjs 2007-06-26 17:34:05 UTC
.
Comment 5 hjs 2007-07-13 14:30:16 UTC
dmake 4.9 active in MWS