Skip to content

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

2 participants