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

Emacs/del outdated files #1188

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Alidra
Copy link
Member

@Alidra Alidra commented Jan 31, 2025

This PR is is originated by @tarsius

The information in -pkg.el did not agree with the information in .el. This pull-requests addresses that be removing the outdated -pkg.el.

However, since -pkg.el is necessary to install the package locally for debugging, an entry is added to the make file to generate it and include it to the tar file for local testing only.

@Alidra Alidra requested review from gabrielhdt and fblanqui January 31, 2025 19:40
Copy link
Member

@fblanqui fblanqui left a comment

Choose a reason for hiding this comment

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

Thanks Abdelghani for your PR. There are several things that can be simplified. Could you please add a file editors/emacs/README.md explaining what to do to test the emacs package locally, and remove the install target in Makefile?

@@ -23,6 +23,14 @@ $(NAME)-$(VERSION).tar: $(SRC)
cp *.el "$(NAME)-$(VERSION)"
tar -cf "$(NAME)-$(VERSION)".tar "$(NAME)-$(VERSION)"

.PHONY: lambdapi-mode-pkg.el
Copy link
Member

Choose a reason for hiding this comment

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

Why do you make it phony?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could be useful if lambdapi-mode-pkg.el is accidentally altered between two generations. I can remove it if not really useful which would allow one to change the lambdapi-mode-pkg.el file manually before installation.

Copy link
Member

Choose a reason for hiding this comment

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

I do not understand. PHONY means that this is a target that do not correspond to an actual file, doesn't it?

editors/emacs/Makefile Outdated Show resolved Hide resolved
editors/emacs/Makefile Outdated Show resolved Hide resolved
editors/emacs/Makefile Outdated Show resolved Hide resolved
editors/emacs/Makefile Outdated Show resolved Hide resolved
editors/emacs/Makefile Outdated Show resolved Hide resolved
@@ -47,3 +44,4 @@ check: dist
clean:
rm -f "$(NAME)-$(VERSION)".tar
rm -rf "$(NAME)-$(VERSION)"
rm -f lambdapi-mode-pkg.el
Copy link
Member

Choose a reason for hiding this comment

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

remark: you can do it with only one call to rm:
rm -rf "$(NAME)-$(VERSION)" "$(NAME)-$(VERSION)".tar lambdapi-mode-pkg.el

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.

2 participants