Your message dated Tue, 05 Sep 2006 12:44:05 +0100
with message-id <[EMAIL PROTECTED]>
and subject line $(FLEX) variable does not seem to be recognised
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: make
Version: 3.81-2

Hello,

I've got a simple Makefile containing the following two lines for generating a C file from a flex file:
test.c: test.lex
        $(FLEX) -o test.c test.lex

It seems that the $(FLEX) variable does not work.

$ make
o test.c test.lex
make: o: Command not found
make: [test.c] Error 127 (ignored)


Using $(LEX) instead solves the problem ('lex' is a symlink to 'flex' anyway, at least on my system).

$ make
lex     -o test.c test.lex

This is an easy workaround, but this is confusing since the 'make' manual clearly mentions both $(FLEX) and $(LEX).
http://www.gnu.org/software/make/manual/html_node/Utilities-in-Makefiles.html#Utilities-in-Makefiles


Regards,

Bruno.


--- End Message ---
--- Begin Message ---
Apologies, but I had misunderstood the GNU make manual.
Indeed, Section 14.4.2 [1] talks about the variables that should be used by the utility programs, but it does not mention how they are or should be initialised. Section 10.3 [2] gives a list of which of these variables are implicitly defined with default values. LEX is one of them, FLEX is not.

Thus, I'm closing this bug report.

Regards,

Bruno.


[1] http://www.gnu.org/software/make/manual/html_node/Utilities-in-Makefiles.html#Utilities-in-Makefiles
[2]
http://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#Implicit-Variables

--- End Message ---

Reply via email to