Skip to content

Generate config file tasks dynamically

What does this Merge Request do and why?

This adds a support/makefiles/Makefile.config.mk Rake task that:

  1. Dynamically creates Rake tasks for various config files (based on ERB templates under support/templates/)
  2. Dynamically creates a support/makefiles/Makefile.config.mk file which contains Make targets for all the Rake tasks generated in step 1. so we're sure we have a 1-1 mapping between the Rake tasks and the Make targets with the end-goal of moving away from Make (&1556).

This also adds a verify-makefile-config check that runs in Lefthook and on CI to ensure that the checked in version of support/makefiles/Makefile.config.mk is up-to-date.

Merge Request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.

Closes #1340 (closed).

Edited by Rémy Coutable

Merge request reports

Loading