Reorganize makefiles and roll out consistent debug structure to them
What does this MR do and why?
Continuing on creating consistent debug output, this MR:
- Reorganizes Makefiles so that there is a "common" file where we can put variables used in other places.
- Introduces the
supportdirectory, very much likegitlab-development-kit(https://gitlab.com/gitlab-org/gitlab-development-kit/-/tree/main/support) where non-core things can be placed to get them out of the root directory. I think we'd movescriptsin there too. - Make
printfdebug output look indistinguishable fromgumdebug output for places where we can't be sure we havegum. - Make sure that all Make targets have consistent debug output.
How to set up and validate locally
- Configure a local GitLab Docs environment.
- Check out this branch.
- Run
make setupand see thatprintfMake targets lookgum-like. - Run
make testand see where some lines are completely colorized (like a "heading") and other lines only have the debug level colorized. This is similar to howmake update-all-projectslooks.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.