Re: lex implicit rule chain is broken

2019-05-19 Thread Philip Guenther
On Sat, May 18, 2019 at 10:30 PM Mohamed Akram wrote: > Thanks for the tip. I'm not sure why it doesn't just fail immediately > then, instead of taking a few steps and stumbling on itself. > In order to fail early, make would have to assume it knows more than you do, but it's just a dumb program

Re: lex implicit rule chain is broken

2019-05-19 Thread Mohamed Akram
l > lang.c cc -O2 -pipe -ll lang.c -o lang From: Philip Guenther Sent: Sunday, May 19, 2019 11:11 AM To: Mohamed Akram Cc: bug-make@gnu.org Subject: Re: lex implicit rule chain is broken On Sat, May 18, 2019 at 9:07 PM Mohamed Akram mailto:mohd.ak...@outloo

Re: lex implicit rule chain is broken

2019-05-19 Thread Philip Guenther
On Sat, May 18, 2019 at 9:07 PM Mohamed Akram wrote: > echo "lang: lang.l" > Makefile > This Makefile is incorrect, as it tells make that 'lang.l' is a *direct* dependency of lang. That's not true: lang.l has to be run through lex to get a .c file that can compiled to get lang. > It tries to