nonrec-make
nonrec-make copied to clipboard
Produce an error if SRCS contains an invalid path.
Hi Andrzej,
Previously, all wrong entries in SRCS
would be silently filtered out. This change aims to keep Rules.mk files accurate, and easier to debug.
Thanks!
Hello Alex
I would like to merge your changes however there is one thing that bothers me. What if the source which one gives to SRCS is being generated from some other file - like lex.c from lex.l or grammar.c from grammar.y. I haven't checked but it seems that your solution will raise an error before generating rules while we should be giving make chance to figure out how to produce it.
Maybe instead of raising an error we should be passing source unchanged or automatically replacing .c/.cpp into .o and letting make to signal an error.
Best regards Andrzej
Hi Andrzej
Yes, you are right! I'll think about it, and see if it is possible to delay the check till the target is built.
Perhaps using =
for lazy evaluation instead of :=
could help?
Regards, Alex.