make-alpha
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addsuffix manual example wrong, se_implicit test 4 fails.


From: John E. Malmberg
Subject: Re: addsuffix manual example wrong, se_implicit test 4 fails.
Date: Fri, 19 Sep 2014 01:01:21 -0500
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

On 9/18/2014 8:50 AM, Paul Smith wrote:
On Wed, 2014-09-17 at 20:34 -0500, John E. Malmberg wrote:
It works fine for me in GNU make 4.0 on Linux Mint 17 (basically Ubuntu
14.04) (actually this is from the current Git head but I'm pretty sure
nothing in this area has changed since the 4.0 release):

   $ mkdir /tmp/foo /tmp/bar
   $ touch /tmp/foo/foo.c /tmp/bar/foo.c
   $ touch foo.h

   $ cat Makefile
   .SECONDEXPANSION:

   /tmp/foo.o:

   %.o: $$(addsuffix /%.c,foo bar) foo.h ; @echo $^

   $ make
   /tmp/foo/foo.c /tmp/bar/foo.c foo.h

I was looking in the wrong place. The pattern_search routine in implicit.c appears to be the culprit.

It needs to be able to handle paths in both VMS syntax or in Unix syntax under VMS.

It also does not appear to be properly handling VMS syntax either.

Fixing it to handle the Unix syntax should be easy.

Fixing it to handle the VMS syntax correctly is far more complex, as VMS syntax has changed since the original port of Make was done, and it does not look like the original code was handling the older syntax correctly.

Regards,
-John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]