Skip to content

Commit f33df90

Browse files
committed
Compile .el files at O(1) instead of O(n)
The older code was running Emacs separately for each .el file. Change the code so that all .el files are passed at once. This improves build time by x5: * before: 1.272 sec * after: 0.257 sec Also simplify the rule declaration.
1 parent 02c9748 commit f33df90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ AUTOLOADS = purescript-mode-autoloads.el
3333
PKG_DIST_FILES = $(ELFILES) logo.svg NEWS purescript-mode.info dir
3434
PKG_TAR = purescript-mode-$(VERSION).tar
3535

36-
%.elc: %.el
36+
.el.elc:
3737
@$(BATCH) \
38-
--eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $<
38+
--eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $(ELFILES)
3939

4040
.PHONY: all compile info clean test elpa package
4141

0 commit comments

Comments
 (0)