Re: Match-Anything rule

2000-12-19 Thread Paul D. Smith
%% Michal Svec <[EMAIL PROTECTED]> writes: ms> % : /some/path/% ms> cp $< $@ ms> It is OK, but if I want to expand a file with a dir, it is not correctly ms> expanded, instead of: ms> foo/file: /some/path/foo/file ms> It expands to ms> foo/file: /foo/some/path/file ms> An

Re: Prerequisite variable expansion

2000-12-19 Thread Paul D. Smith
%% Casey Liscum <[EMAIL PROTECTED]> writes: cl> Variables involved in a target-specific modification do not expand to cl> the updated form when used as a prerequisite for that target. They do cl> expand properly when used in the rule's command structure. This is expected behavior. cl>

Prerequisite variable expansion

2000-12-19 Thread Casey Liscum
Variables involved in a target-specific modification do not expand to the updated form when used as a prerequisite for that target. They do expand properly when used in the rule's command structure. Here is a simplified example Makefile: - # initial target value set; TARGETS = foo # set tar