Update of bug #37237 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

GNU make's behavior here is correct.  Because the ":" does not appear within a
known macro reference (because the "$" is escaped), it's treated as part of
the rule.  This makes the rule appear to be a static pattern rule, which is
missing a "%", and hence the error.  In other words, make parses this into
words as follows: "dir/hello.o", ":", "$$(@F", ":", and ".o=.c)".

To make this work right you need to escape the ":" from make, like so:

dir/hello.o: $$(@F\:.o=.c)


This works in CVS make but I'm not sure it will work in earlier versions;
there have been some issues with escaping in target and prerequisite lists.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37237>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to