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
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)/target-%: martind@swiftboat:~/tmp/benjamin-cama-2017-08-03$ make -n -p 2>&1 | gre