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.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to