-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* elpa.el: Don't add default-directory to load-path; leave that to the Makefile harness. * Makefile (LOAD): Remove. (src-elcs, test-elcs): New explicit file lists. (all): Default to compilation not testing, as per GNU conventions. (deps): Call Emacs with -Q. (test): Byte-compile package and test sources and allow loading byte-compiled versions. (compile): Byte-compile each .el individually (#3038, #3039), with minimal dependencies. (plain): Specify '-L .' now that elpa.el no longer does it. (clean): Remove known .elc files, not wildcard. * ivy-test.el: (ivy-read-prompt, ivy-completing-read-handlers, ivy-partial-files): Refactor for clean byte-compilation.
- Loading branch information
1 parent
e0b1a6c
commit a38bc60
Showing
3 changed files
with
99 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,53 @@ | ||
emacs ?= emacs | ||
|
||
LOAD = -l elpa.el -l colir.el -l ivy-overlay.el -l ivy.el -l swiper.el -l counsel.el | ||
RM ?= rm -f | ||
|
||
all: test | ||
src-elcs = \ | ||
colir.elc \ | ||
ivy-faces.elc \ | ||
ivy-overlay.elc \ | ||
ivy.elc \ | ||
ivy-avy.elc \ | ||
ivy-hydra.elc \ | ||
swiper.elc \ | ||
counsel.elc | ||
|
||
test-elcs = ivy-test.elc | ||
|
||
.PHONY: all | ||
all: compile | ||
|
||
.PHONY: deps | ||
deps: | ||
$(emacs) -batch -l targets/install-deps.el | ||
$(emacs) -Q -batch -l targets/install-deps.el | ||
|
||
test: | ||
$(emacs) -batch $(LOAD) -l ivy-test.el -f ivy-test-run-tests | ||
.PHONY: test | ||
test: compile $(test-elcs) | ||
$(emacs) -Q -batch -l elpa.el -L . -l ivy-test -f ivy-test-run-tests | ||
|
||
.PHONY: checkdoc | ||
checkdoc: | ||
$(emacs) -batch -l targets/checkdoc.el | ||
|
||
compile: | ||
$(emacs) -batch -l elpa.el -L . -f batch-byte-compile colir.el ivy-faces.el ivy-overlay.el ivy.el ivy-avy.el ivy-hydra.el swiper.el counsel.el | ||
.PHONY: compile | ||
compile: $(src-elcs) | ||
|
||
plain: | ||
$(emacs) --version | ||
$(emacs) -Q -l elpa.el -l targets/plain.el | ||
.PHONY: plain | ||
plain: compile | ||
$(emacs) -version | ||
$(emacs) -Q -l elpa.el -L . -l targets/plain.el | ||
|
||
.PHONY: obsolete | ||
obsolete: | ||
$(emacs) -batch -l targets/obsolete-config.el | ||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) *.elc | ||
$(RM) $(src-elcs) $(test-elcs) | ||
|
||
%.elc: %.el | ||
$(emacs) -Q -batch -L . -f batch-byte-compile $< | ||
|
||
.PHONY: all test checkdoc compile plain obsolete update-issues clean | ||
ivy-avy.elc: ivy-avy.el | ||
ivy-hydra.elc: ivy-hydra.el | ||
ivy-avy.elc ivy-hydra.elc: | ||
$(emacs) -Q -batch -l elpa.el -L . -f batch-byte-compile $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters