-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build system: Mamfiles: move all attributes to 'make'
Since they were originally generated, the Mamfiles have attributes (such as 'dontcare', 'generated', 'virtual') appended to either 'make', or 'done', or both! They have the same effect either way because they apply to the make...done block as a whole. So it doesn't really matter, but it does hinder legibility. Especially for large make...done blocks, this is a bit of a maintenance pain. src/cmd/INIT/mamake.c: - If MAMAKE_STRICT is set, produce a deprecation warning upon encountering attributes to 'done'. - Make the strict() function more efficient by caching the MAMAKE_STRICT search result in a static int variable. This assumes 'setv MAMAKE_STRICT' is executed early, as even a not-found result is cached. (re: 45feaa5) - For the 'done' command, I backported a minor change from 93v-; it suppresses the 'improper done command' error if the operand word starts with a '$'. I've no idea what that was for, but it smells like a workaround for some bug in nmake. There does not seem to be a corresponding RELEASE entry. We don't need this, so let's disable this in strict mode. (re: abbd9ff) **/Mamfile: - Move all 'done' attributes to the 'make' commands. - Remove all 'archive' attributes; mamake ignores them. - Remove all 'generated' attributes; they are automatically assigned by the 'exec' command. src/lib/libast/Mamfile: - Remove two unused joint.* virtual rules and incorporate their dependencies in place of 'prev' commands elsewhere.
- Loading branch information
Showing
10 changed files
with
1,189 additions
and
1,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.