* Make: Issue with $(MAKE) in make includes, when make is not on the default path
@ 2022-10-23 17:26 Ferenc Valenta
2022-10-24 9:36 ` marco atzeri
0 siblings, 1 reply; 3+ messages in thread
From: Ferenc Valenta @ 2022-10-23 17:26 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 752 bytes --]
Hi,
Just found a possible issue with Cygwin:
If cygwin is not on the default path, and make is started by specyfing
the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the
top-level makefile, but it does not work in make includes.
To reproduce the issue, use these files:
makefile:
$(info $(shell $(MAKE) --version))
include test.mak
test.mak:
$(info $(shell $(MAKE) --version))
Make sure that Cygwin is not on the default path, e.g. type *path ;* to
erase the default path entirely.
Then start make by specifying the path to it: c:\cygwin64\bin\make
The first $(MAKE) call works, the second one does not.
If make is on the default path, both work.
Best regards,
--
Ferenc Valenta / System Architect / Mentor Graphics Deutschland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Make: Issue with $(MAKE) in make includes, when make is not on the default path
2022-10-23 17:26 Make: Issue with $(MAKE) in make includes, when make is not on the default path Ferenc Valenta
@ 2022-10-24 9:36 ` marco atzeri
2022-10-24 11:21 ` Thomas Wolff
0 siblings, 1 reply; 3+ messages in thread
From: marco atzeri @ 2022-10-24 9:36 UTC (permalink / raw)
To: Ferenc Valenta; +Cc: cygwin
On Sun, Oct 23, 2022 at 7:27 PM Ferenc Valenta <ferenc.valenta@gmail.com> wrote:
>
>
> Hi,
>
> Just found a possible issue with Cygwin:
> If cygwin is not on the default path, and make is started by specyfing
> the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the
> top-level makefile, but it does not work in make includes.
> To reproduce the issue, use these files:
>
> makefile:
> $(info $(shell $(MAKE) --version))
> include test.mak
>
> test.mak:
> $(info $(shell $(MAKE) --version))
>
> Make sure that Cygwin is not on the default path, e.g. type *path ;* to
> erase the default path entirely.
> Then start make by specifying the path to it: c:\cygwin64\bin\make
>
> The first $(MAKE) call works, the second one does not.
> If make is on the default path, both work.
>
> Best regards,
>
> --
> Ferenc Valenta / System Architect / Mentor Graphics Deutschland
>
Hi Ferenc,
I doubt this should be considered a specific Cygwin bug or a bug at all
Marco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Make: Issue with $(MAKE) in make includes, when make is not on the default path
2022-10-24 9:36 ` marco atzeri
@ 2022-10-24 11:21 ` Thomas Wolff
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Wolff @ 2022-10-24 11:21 UTC (permalink / raw)
To: cygwin
Am 24/10/2022 um 11:36 schrieb marco atzeri:
> On Sun, Oct 23, 2022 at 7:27 PM Ferenc Valenta <ferenc.valenta@gmail.com> wrote:
>>
>> Hi,
>>
>> Just found a possible issue with Cygwin:
>> If cygwin is not on the default path, and make is started by specyfing
>> the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the
>> top-level makefile, but it does not work in make includes.
>> To reproduce the issue, use these files:
>>
>> makefile:
>> $(info $(shell $(MAKE) --version))
>> include test.mak
>>
>> test.mak:
>> $(info $(shell $(MAKE) --version))
>>
>> Make sure that Cygwin is not on the default path, e.g. type *path ;* to
>> erase the default path entirely.
>> Then start make by specifying the path to it: c:\cygwin64\bin\make
>>
>> The first $(MAKE) call works, the second one does not.
>> If make is on the default path, both work.
>>
>> Best regards,
>>
>> --
>> Ferenc Valenta / System Architect / Mentor Graphics Deutschland
This works as expected when calling /bin/make or C:/cygwin64/bin/make ;
the problem is the backslash notation.
>
> Hi Ferenc,
>
> I doubt this should be considered a specific Cygwin bug or a bug at all
>
> Marco
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-24 11:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-23 17:26 Make: Issue with $(MAKE) in make includes, when make is not on the default path Ferenc Valenta
2022-10-24 9:36 ` marco atzeri
2022-10-24 11:21 ` Thomas Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).