Skip to content

Commit 954afdc

Browse files
authored
Merge pull request #705 from emacs-php/fix/makefile-package
Fix Makefile for avoid dependencies on user-installed packages
2 parents 6b24392 + 52f2f2d commit 954afdc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AUTOLOADS = php-mode-autoloads.el
55
ELCS = $(ELS:.el=.elc)
66

77
%.elc: %.el
8-
$(EMACS) -Q -batch -L lisp/ -f batch-byte-compile $<
8+
$(EMACS) --batch -L lisp/ -f batch-byte-compile $<
99

1010
all: autoloads $(ELCS) authors
1111

@@ -25,8 +25,8 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap
2525
autoloads: $(AUTOLOADS)
2626

2727
$(AUTOLOADS): lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-local-manual.el lisp/php-mode-debug.el lisp/php-mode.el
28-
$(EMACS) -Q -batch -L lisp/ --eval \
29-
"(progn \
28+
$(EMACS) --batch -L lisp/ --eval \
29+
"(let ((user-emacs-directory default-directory)) \
3030
(require 'package) \
3131
(package-generate-autoloads \"php-mode\" (expand-file-name \"lisp\")))"
3232

@@ -55,11 +55,9 @@ dev:
5555
# command.
5656
test: clean all
5757
touch tests/project/1/.git
58-
$(EMACS) -Q -batch -L lisp/ --eval \
58+
$(EMACS) --batch -l lisp/php-mode-autoloads.el --eval \
5959
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
60-
(require 'package) \
6160
(normal-top-level-add-subdirs-to-load-path))" \
62-
-f package-initialize \
6361
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
6462

6563
.PHONY: all authors autoloads clean test

0 commit comments

Comments
 (0)