X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=CjkeWrP9fwRf6nrE fsOx7xR4x7Wbk64AYsrHKcKDSYsPmnQW0l+Bw5m1SCHJwt5uWZ945N4PRl1Ovcuy 9KHoMfxTV5fAkGk4FIBUzM+R8a953v2UdKvw559YsLKf4jSg3w77fpeu3tvhbCAq kDQyO5fh3H4bKXIGH6efQV8W8Pk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=sK3TL93ttKD56g4kS4y97m /Nxbc=; b=Yi6XB5f4DrXCxnpJTJcqvDr35AT9eh3UJIQ4DBsJaQwTAa0YO8Ydn3 Zx5GW8gYw2P5X+jrr9zznGuUXN57k/585iYwmidZQV0IzB6p0xjZzhj0WwG1nvZR LA8ISEOJIXkiTTN/8XW2d4GrJTfgGiSaec7enwjiF9QWrh7X7HVJ8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*M:online, H*r:encrypted X-HELO: mailout08.t-online.de Subject: Re: Standard LEX variable doesn't work in Make. To: cygwin AT cygwin DOT com References: <d06883e8208624afb5d094ebd3e78375 AT mail DOT kylheku DOT com> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de> Message-ID: <11448207-52c8-6745-999f-48a4534bbc41@t-online.de> Date: Mon, 21 Nov 2016 20:09:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <d06883e8208624afb5d094ebd3e78375@mail.kylheku.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Am 21.11.2016 um 17:57 schrieb Kaz Kylheku: > I'm changing a FOSS project to rely more on standard Make > vars such as CC and CFLAGS and such: use $(CC) for > the compiler unless told otherwise, incorporate $(CFLAGS) > if it is defined, and so forth. This is friendly toward > distro package maintainers. Not really. Package maintainers will almost universally expect your source to have some kind of 'configure' script, which would take of this and most other such properties for you. > Anyway, even though my Cygwin installation has GNU Flex, > the lex command is nonexistent; thus the $(LEX) Make > variable fails. It's not $(LEX) that's failing here; it's the way you form expectations about what $(LEX) is supposed to be. The value of $(LEX) is clearly documented to default to 'lex' (see "info make implicit implicit"). > If the installation has some sort of lex, the > predefined $(LEX) variable should resolve to it. No. LEX is a modifiable variable, for the express purpose that it be set to what the system actually needs. Yes, that means _you_ are supposed to do that (or to set up tools outside make to do it for you). Morale: Make is not autoconf, nor does it want to be. One final note: your report is in no way specific to Cygwin, so this is almost certainly the wrong mailing list to send it to. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple