bug-gnu-utils
[Top][All Lists]
Advanced

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

gmake doesn't produce err mesg when it should


From: Gabriel Zachmann
Subject: gmake doesn't produce err mesg when it should
Date: 1 Nov 2000 15:47:50 GMT
User-agent: slrn/0.9.5.4 (UNIX)

Why doesn't gmake produce an error message
when I write a $(call blub,...) of a "function" blub which doesn't exist?

And why doesn't gmake produce an error message
when I write $(wildacrd ...) which is a function which doesn't exist?

It just silently "ignores" these errors!

These things have caused me hours of searching for bugs ;-(

Note that it would be possible for gmake to detect these errors:
an expression $(something ..), where 'something' is followed by a space,
cannot be a make variable.

In the case of $(call blub,...) when 'blub' doesn't exist (yet),
it would be nice to have the option of having make produce a warning.
In the case of "built-in" functions like $(wildacrd ...),
it is always an error, I think.

Gab.

-- 
/---------------------------------------------------------------------\
| Paradigm is a word too often used by those                          |
| who would like to have a new idea                                   |
| but cannot think of one.                                            |
|                     (Mervyn King, Deputy Governor, Bank of England) |
|                                                                     |
| address@hidden          address@hidden        address@hidden |
| www.igd.fhg.de/~zach/    www.gab.cx        __@/'                    |
\---------------------------------------------------------------------/



reply via email to

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