delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/10/23/13:27:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3FC013857030
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=subject:from:to:user-agent:mime-version:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=FXRg9FKW1P4kv3ifquSGQltfgmYQ6lsVhCb3u2Ag14A=;
b=P5swcrN6ktemzJkfAeOZfg6Jwa6R1SatSC0si8Jfs7aHlI3p+yCObdEbqPsBln+XSl
Q8gTxcDhHo/CV4Ac8vTIGEOFu/IBNx+/k4q1cL/9YyuAE6nnFKIxJ8QMkG70tE86bVdg
iWJg2oeU0halP+PAaCw4e5Lb+ZDJBC24Rtpg4BlyZvXK3InNIbnrd1Fkrv9Ri8K8Gnw8
UL4qaEac69/1wb7zAlv0r/OOuJHWca8GH1x3hqLSXUmQ1yNqQQmKXhoJH256arpLBezi
sWTcOIUwfPfzr2EOu8GPnfuvyrTfb2l6Vl20QBrrz9aQq7xDa3/W9jsfVyfdCZ58TldC
q7GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=subject:from:to:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=FXRg9FKW1P4kv3ifquSGQltfgmYQ6lsVhCb3u2Ag14A=;
b=C9x8zNNDn3SUVtE6Enj9WwIZ9I6vI2G5Kxk+3SwK0brFtR1obCdV9NwJALRq+9nA2K
L/DKFjztbrMYSnOf5VMahzf08DO1NnZYIVYET3qD7YI3uePBhI71cgR749YICluZGdIp
yxxaHiI3zaKj/Amk8glsfjgCwUkh2Md4q2Sw87FgX6nYGwDUioFIiEAcaeHAsy36fwjl
fg1PV3auCZot4MmJkvlMiZQlKADCLZOmcsD6t9tVtfzWVjCRsCjtMeH9VMO3cAtNLnT+
mudkLBcsQslV+ZwbKI7tygM/mPAFc5Cm+bdCj3/ZGpnDnZqjpV5UXjmZjAiEXpXymwf6
jAAw==
X-Gm-Message-State: ACrzQf3Ht+4zHotz+cNPudOeH08XkquaLOFq6zpGwTkAXl8cP+ujV/BH
IMemOmt2UsIwdzpUzWHQ28VuhI0NOc/abA==
X-Google-Smtp-Source: AMsMyM7F82fbV7NsjBu4ITZFOt1teYlmJlLGsWd4Mz0pKaKjN3reEvFGyoB+XJDgCBP6yQLJczD8KQ==
X-Received: by 2002:a17:907:25c1:b0:77b:9966:ccf1 with SMTP id
ae1-20020a17090725c100b0077b9966ccf1mr23998701ejc.763.1666546003771;
Sun, 23 Oct 2022 10:26:43 -0700 (PDT)
Message-ID: <1b887e39-0f3c-9e8c-7baa-a0ed180b8307@gmail.com>
Date: Sun, 23 Oct 2022 19:26:45 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.0
To: cygwin AT cygwin DOT com
From: Ferenc Valenta <ferenc DOT valenta AT gmail DOT com>
Subject: Make: Issue with $(MAKE) in make includes, when make is not on the
default path
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019