Win10/GNUmake4.1: paths in .INCLUDE_DIRS not searched

2016-05-06 Thread Jannick
Hi, '.INCLUDE_DIRS += C:\mypath' does not make GNUmake to look for included makefiles (using 'include') in C:\mypath. I checked that * C:\mypath is added to .INCLUDE_DIRS (with 'make -p') * GNUmake does not look for the includes (with 'make -d') This issue arises when

RE: Win10/GNUmake4.1: paths in .INCLUDE_DIRS not searched

2016-05-06 Thread Jannick
Hi Eli, Many thanks for the quick reply! I had a look around in the code and the default include paths are set in read.c (http://git.savannah.gnu.org/cgit/make.git/tree/read.c#n106). Given that I am working on a Windows machine, only the current directory ('.') comes through as default incl

RE: Win10/GNUmake4.1: paths in .INCLUDE_DIRS not searched

2016-05-09 Thread Jannick
> Would it be possible that the default include path is (1) an > environment or (2) a Make variable? If you want me to file a feature request somewhere, could you please pass on where to do that? Before we consider taking the value from an environment variable, IMO we should augment the default v

loaded objects example [tiny PATCH & Q]

2017-05-06 Thread Jannick
On the loaded objects example (https://www.gnu.org/software/make/manual/make.html#Example-Loaded-Object): 1 - attached really tiny patch on edits in the documentation to make things running and gcc less complaining. 2 - Living on Win10 (with Cygwin), I had to create libgnumake-1.dll.a myself whic

ignore specific file in VPATH/vpath

2018-05-09 Thread Jannick
Hey, I am having an issue with the make vpath/VPATH configuration where make should ignore a specific existing file in vpath/VPATH. Here my case for which any input from you is highly appreciated: Cd'ed to the folder 'build', the objective is to build prog with the source files prog.c and parse.y

RE: ignore specific file in VPATH/vpath

2018-05-10 Thread Jannick
etheless, I would be still interested in other sweet and short solutions. Thanks, J. On Wed, 9 May 2018 14:30:15 +0200, Jannick wrote: > Hey, > > I am having an issue with the make vpath/VPATH configuration where make > should ignore a specific existing file in vpath/VPATH. Here my case fo

RE: ignore specific file in VPATH/vpath

2018-05-10 Thread Jannick
Paul, Many thanks for the clarifications. After going through all that everything is just fine from my side as well! On Thu, 10 May 2018 07:07:54 -0400, Paul Smith wrote: > On Wed, 2018-05-09 at 14:30 +0200, Jannick wrote: > > Separately, an additional note: make's YACC b

RE: ignore specific file in VPATH/vpath

2018-05-10 Thread Jannick
On Thu, 10 May 2018 08:12:08 -0400, Paul Smith wrote: > On Thu, 2018-05-10 at 14:01 +0200, Jannick wrote: > > In my makefile YACC is overridden by 'bison' which ultimately does not > > see any '-y' flag (!) What I meant is that when running my makefile and the

RE: ignore specific file in VPATH/vpath

2018-05-12 Thread Jannick
Hi Paul, On Fri, 11 May 2018 12:46:57 -0400, Paul Smith wrote: > On Wed, 2018-05-09 at 14:30 +0200, Jannick wrote: > > +---build > > >makefile > > > > > > > \---src > > parse.c <<< disregard for a build in folder 'buil

RE: ignore specific file in VPATH/vpath

2018-05-19 Thread Jannick
On Tue, 15 May 2018 19:24:06 -0400, Paul Smith wrote: > My only suggestion other than what you've got (using pattern rules to ensure > that the build/ versions of the files have different names than the src/ > versions) is to force the right version by providing a pathname, so that it > won't match