From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by sourceware.org (Postfix) with ESMTPS id CA3BA385840A for ; Mon, 24 Oct 2022 09:36:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA3BA385840A 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-oa1-x30.google.com with SMTP id 586e51a60fabf-13bd2aea61bso433918fac.0 for ; Mon, 24 Oct 2022 02:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bUAO5znRp8Kn6NTrWIuOT5AgDaKpDBQoIkL04lhMz+U=; b=JMZTVCUz6oO6ZMNKTcPBbzU/4uAUImPY3QtSrwSTZinj54r2KrQV+2+4jnOoIQfb7i kgu139tUrkPenEBRCSyF9qyl2DNMfCBL1zPBO8cfaLbFjn5wP5jr1P5Z1IVbrymqy9To 3C4eFt6PFsoIYUYm/pqZSJFMbeVLqcm9QIs6fF7VsO8S6jVbsgmL1gkfuOdrCx6c/rpL t3ACWE6Ue5S5DKYfM747ELKIlVxtC5iD92JIj8S+HYXXE7NdzRaLKHVvOpQ139gHn3eO 5+YdRK9/eI/w4AhTCviWKMbta/CiLVta+YrdBnCUW5w5Ft1mSmgnZNAK0kMiduVRzUNX +0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bUAO5znRp8Kn6NTrWIuOT5AgDaKpDBQoIkL04lhMz+U=; b=qsxrpK4XHe7ojuXF7wbHYKG7RGnOc5QEnuOJZ4R4D+L0hb2c11dmiUcGWU7OZ39FuF Obcra8BpidCY0d3U5A41cAXnot+oa1/qPr5xLpN3NOVU+mAUTQrDI29N44sYXsG8Ptyz KfhSacUSMix3wkBnh1RJfkIwE1bzgtfPqcsDcZzp8ayiNAUnx60CLexAyWcDg9rzk/x4 dDrCQzbjA2xN49fBX65PhyZbnDU9v20wTOViU77oMnBfwHNQ00M0i52RNlL1YhY33sBU JPfgDItj6KpXml6ZsE4Yw5J46h2HN43Btapy02iIjFuwEd+xzwqNDgRYEkZ5Rv3moJGZ VOBg== X-Gm-Message-State: ACrzQf2jkyZuuk2NTgREKAz8vbvYQ3mMFWEoOhC7Zze1sHAiXwJfeyaB 9xxW2rxpuabgUjn/cmJDF/VjBdyAHTqqyawTekFfN2iW X-Google-Smtp-Source: AMsMyM5ShM95+5R/ip2Fa5NIzSulqezEE45q52IxqFKEu1Hr/kEWM7U5ijxdy7U/+DlMYLvH1RL29PM5z4GhSJ7y1r8= X-Received: by 2002:a05:6870:3488:b0:12c:19b0:f4bc with SMTP id n8-20020a056870348800b0012c19b0f4bcmr36098370oah.238.1666604205965; Mon, 24 Oct 2022 02:36:45 -0700 (PDT) MIME-Version: 1.0 References: <1b887e39-0f3c-9e8c-7baa-a0ed180b8307@gmail.com> In-Reply-To: <1b887e39-0f3c-9e8c-7baa-a0ed180b8307@gmail.com> From: marco atzeri Date: Mon, 24 Oct 2022 11:36:35 +0200 Message-ID: Subject: Re: Make: Issue with $(MAKE) in make includes, when make is not on the default path To: Ferenc Valenta Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: On Sun, Oct 23, 2022 at 7:27 PM Ferenc Valenta 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