-
Notifications
You must be signed in to change notification settings - Fork 36
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
base: master
Are you sure you want to change the base?
Emacs/del outdated files #1188
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@@ -47,3 +44,4 @@ check: dist | |||
clean: | |||
rm -f "$(NAME)-$(VERSION)".tar | |||
rm -rf "$(NAME)-$(VERSION)" | |||
rm -f lambdapi-mode-pkg.el |
There was a problem hiding this comment.
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
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.