Re: VPATH question

2023-02-24 Thread Paul Smith
On Fri, 2023-02-24 at 17:40 +0100, Gisle Vanem wrote: > Paul Smith wrote: > > If you use "-d" you'll get the info you want: > > > > No implicit rule found for 'default'. > > Considering target file 'lib'. > > Finished prerequisites of target file 'lib'. > > No need to remake ta

Re: VPATH question

2023-02-24 Thread Gisle Vanem
Paul Smith wrote: If you use "-d" you'll get the info you want: No implicit rule found for 'default'. Considering target file 'lib'. Finished prerequisites of target file 'lib'. No need to remake target 'lib'; using VPATH name 'apps/lib'. Finished prerequisites of target file

Re: VPATH question

2023-02-24 Thread Paul Smith
On Fri, 2023-02-24 at 08:44 +0100, Gisle Vanem wrote: > So I want to create a './lib' directory in > 'Current Directory', but gnumake won't do it > since there is a 'lib' under 'apps'. Output: >    gnumake: Nothing to be done for 'default'. > > Why doesn't it understand the meaning of '.'? It doe

VPATH question

2023-02-23 Thread Gisle Vanem
Hello list. I sometimes have issues when a 'VPATH' doesn't do what I'd like. E.g. in this 'vpath-test.mak' file: # # there is a 'apps/lib' directory here: # VPATH = apps GEN_DIRS = ./lib default all: $(GEN_DIRS) $(GEN_DIRS): mkdir --verbose $@ --- So I want to cr