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$ c
have the generic
recipe to be able to build things in subdirectories.
Hope this helps to clarify my goal. Maybe I should go the automake
route, I don't know, but I wanted to try vanilia make first.
--
Benjamin Cama - Tél : 258
___
Bug-make mailing
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:
> > >
Le jeudi 03 août 2017 à 15:06 +, Edward Welbourne a écrit :
> Benjamin Cama (3 August 2017 17:00)
> > Well, I tried:
> >
> >SUBDIR = $(dir $@)
> >$(SUBDIR)/target-%:
> > …
> >
> > But it doesn't work. But without a
Le jeudi 03 août 2017 à 14:59 +0200, Benjamin Cama a écrit :
> To further enhance my understanding of the “right” usage of Makefiles,
> would you advise me to explicitly specify the subdirectory in the
> target
> definition? Because I feel that counting on pattern rules to match in
&g
Le jeudi 03 août 2017 à 09:20 -0400, Kyle Rose a écrit :
> On Aug 3, 2017 9:00 AM, "Benjamin Cama" wrote:
> Anyway, it seems that a global variable would solve my problem, and
> indeed it looks a bit more right this way: I can still get the stem in
>
Hi Paul,
Le mercredi 02 août 2017 à 15:16 -0400, Paul Smith a écrit :
> On Wed, 2017-08-02 at 20:03 +0100, Sven C. Dack wrote:
> > On 02/08/17 11:19, Benjamin Cama wrote:
> > > Hi,
> > >
> > > I may be doing something wrong, but the following Makefile gives
echo BAR
BAR
$ make subdir/test-stem
echo
What am I doing wrong?
PS: please Cc me, I'm not subscribed. Thanks.
--
Benjamin Cama - Tél : 258
___
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/ma