Re: Targets directory name concatenation strangeness

2017-08-03 Thread Kyle Rose
On Thu, Aug 3, 2017 at 12:53 PM, Martin Dorey wrote: > "It’s very important that you recognize the limited scope in which automatic > variable values are available: they only have values within the recipe. In > particular, you cannot use them anywhere within the target list of a rule; > they ha

Re: Targets directory name concatenation strangeness

2017-08-03 Thread Benjamin Cama
Hi Martin, Le jeudi 03 août 2017 à 16:53 +, Martin Dorey a écrit : > You're trying to use an automatic variable in a scope where it doesn't > have the value you want. make -p is how I'd debug such: > > martind@swiftboat:~/tmp/benjamin-cama-2017-08-03$ cat Makefile > SUBDIR = $(@D) > $(SUBDIR

RE: Targets directory name concatenation strangeness

2017-08-03 Thread Martin Dorey
ug-make [mailto:bug-make-bounces+martin.dorey=hds@gnu.org] On Behalf Of Benjamin Cama Sent: Thursday, August 03, 2017 08:37 To: Edward Welbourne Cc: bug-make@gnu.org Subject: Targets directory name concatenation strangeness OK, new subject as this specific behavior gets stranger. Le jeudi 03 a

Targets directory name concatenation strangeness

2017-08-03 Thread Benjamin Cama
OK, new subject as this specific behavior gets stranger. Le jeudi 03 août 2017 à 17:27 +0200, Benjamin Cama a écrit : > Le jeudi 03 août 2017 à 15:06 +, Edward Welbourne a écrit : > > Benjamin Cama (3 August 2017 17:00) > > > Well, I tried: > > > > > >SUBDIR = $(dir $@) > > >$(