bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50062] Variable needed to check that Makefile is run by GNU make?


From: Paul D. Smith
Subject: [bug #50062] Variable needed to check that Makefile is run by GNU make?
Date: Tue, 17 Jan 2017 16:56:52 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #2, bug #50062 (project make):

Similarly, the $(error ...) function and indeed functions like this themselves
are features only found in GNU make... so even if you were using some other
implementation of make that happened to support "ifndef" the same way GNU make
did, it could very well simply treat that function call as a variable
reference, to a non-existent variable which expands to the empty string, and
just ignore the entire check and continue on its way.

Basically, you're trying to use GNU make-only constructs to test whether
you're running GNU make and fail if not.  That is a catch-22.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50062>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]