Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Makefile variable REASONER. #1140

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Add new Makefile variable REASONER. #1140

merged 1 commit into from
Nov 27, 2024

Conversation

gouttegd
Copy link
Contributor

Instead of hard-coding {{ project.reasoner }} at several places in the standard Makefile (whenever a reasoner is required), we add a new Make variable REASONER which is set to the value of {{ project.reasoner }}, and which is then used whenever a reasoner is required.

This allows:

(1) quickly changing the reasoner used by an entire project, without having to change the ODK configuration and re-generate the Makefile (e.g. for temporarily testing another reasoner);

(2) custom worklows in $(ONT).Makefile to automatically use the same reasoner as the standard workflows, by using the REASONER variable themselves instead of hard-coding a reasoner's name.

closes #1139

Instead of hard-coding `{{ project.reasoner }}` at several places in the
standard Makefile (whenever a reasoner is required), we add a new Make
variable REASONER which is set to the value of `{{ project.reasoner }}`,
and which is then used whenever a reasoner is required.

This allows:

(1) quickly changing the reasoner used by an entire project, without
having to change the ODK configuration and re-generate the Makefile
(e.g. for temporarily testing another reasoner);

(2) custom worklows in $(ONT).Makefile to automatically use the same
reasoner as the standard workflows, by using the REASONER variable
themselves instead of hard-coding a reasoner's name.

closes #1139
@gouttegd gouttegd self-assigned this Nov 27, 2024
@gouttegd gouttegd requested a review from matentzn November 27, 2024 16:34
@gouttegd gouttegd merged commit e65fd37 into master Nov 27, 2024
1 check passed
@gouttegd gouttegd deleted the add-reasoner-variable branch November 27, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard Makefile should define a REASONER variable
1 participant