|
|
|
|
|
by Joker_vD
109 days ago
|
|
> "The source code for a work means the preferred form of the work for making modifications to it." > For lex and yacc, that means the original .y and .l files. You don't have a choice if you want to be compliant with the terms. Okay? I don't say "drop .y and .l files", I say "throw in the .h and .c produced from them as well into the tarball distribution". > Also, shipping the .h and .c files in addition also ends up confusing the build systems of the time. How?! If it were true, then merely having them in the source directory after running "make" for the first time would also break the build which obviously is not something that ever happened. |
|
You also have to ensure that every time you update the .y file, you update another file in the source tree, when it’s really part of the build.
It’s annoying and would be similar to the maintainer mode builds that used to happen and confuse people.
It can be done, but the benefits are low. Most systems back in the day had lex and yacc available. Systems that didn’t, but also that needed a compiler were rare, and the vast majority of the time you just cross compiled in those situations.