From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id 3FC013857030 for ; Sun, 23 Oct 2022 17:26:45 +0000 (GMT) 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 Received: by mail-ed1-x52a.google.com with SMTP id m15so23448630edb.13 for ; Sun, 23 Oct 2022 10:26:45 -0700 (PDT) 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) Received: from ?IPV6:2a02:810d:ec0:ac78:4c69:b5f4:addc:8717? ([2a02:810d:ec0:ac78:4c69:b5f4:addc:8717]) by smtp.gmail.com with ESMTPSA id er19-20020a056402449300b00461a6997c5dsm1471378edb.83.2022.10.23.10.26.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Oct 2022 10:26:43 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------iZcaK00BQ0haEKc61wgswV8y" 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@cygwin.com From: Ferenc Valenta 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 List-Id: This is a multi-part message in MIME format. --------------iZcaK00BQ0haEKc61wgswV8y Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------iZcaK00BQ0haEKc61wgswV8y--