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

Use pattern substitution to derive the elc files #291

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Conversation

matsl
Copy link
Collaborator

@matsl matsl commented Dec 17, 2022

What

Use pattern substitution to derive the elc files

Why

Makes the makefile cleaner and avoids the risk of an el-file not being compiled.

Note

There was one el-file that was not compiled. hui-em-but.el. That might have been because of historical reasons. I can't see there would be any reason not to compile it now. The package manager will not care about the Makefile anyways to compiling it will be more close to the users build. Or am I missing something here?

@matsl matsl requested a review from rswgnu December 17, 2022 23:52
kotl/kcell.elc kotl/kproperty.elc kotl/kview.elc kotl/kvspec.elc
ELC_COMPILE = $(EL_COMPILE:.el=.elc)

ELC_KOTL = $(EL_KOTL:.el=.elc)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing the kotl/ prefix here.

Copy link
Collaborator Author

@matsl matsl Dec 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I don't think so. This should be a pattern substitution, so for all words in the string ET_KOTL a matching end is replaced.
See https://github.com/rswgnu/hyperbole/actions/runs/3722317980/jobs/6313030557#step:4:29
and https://www.gnu.org/software/make/manual/html_node/Substitution-Refs.html

@matsl matsl requested a review from rswgnu December 18, 2022 08:26
@rswgnu
Copy link
Owner

rswgnu commented Dec 18, 2022 via email

@matsl matsl merged commit 796b38e into master Dec 18, 2022
@matsl matsl deleted the define-elc-from-el branch December 18, 2022 16:07
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.

None yet

2 participants