Skip to content

Commit d07cfcd

Browse files
committed
Fix Makefile to .elc byte-compiling
1 parent 277f0b4 commit d07cfcd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ ELS = phpstan.el flycheck-phpstan.el flymake-phpstan.el
44
AUTOLOADS = phpstan-autoloads.el
55
ELCS = $(ELS:.el=.elc)
66

7-
%.elc: .cask %.el
8-
$(EMACS) -Q -batch -L . -f package-initialize -f batch-byte-compile $<
7+
.el.elc: .cask
8+
$(EMACS) -Q -batch -L . --eval \
9+
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
10+
(require 'package) \
11+
(normal-top-level-add-subdirs-to-load-path))" \
12+
-f package-initialize -f batch-byte-compile $<
913

1014
.cask: Cask
1115
$(CASK)

0 commit comments

Comments
 (0)