Skip to content

Commit 8a39e89

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
1 parent 02c9748 commit 8a39e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PKG_TAR = purescript-mode-$(VERSION).tar
3535

3636
%.elc: %.el
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)