Skip to content

Commit 793d1aa

Browse files
committed
Fix Makefile for moved lisp/*.el files
1 parent cc63080 commit 793d1aa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
EMACS ?= emacs
2-
ELS = php.el php-align.el php-face.el php-project.el php-mode.el php-mode-debug.el
2+
ELS = lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-mode.el lisp/php-mode-debug.el
33
AUTOLOADS = php-mode-autoloads.el
44
ELCS = $(ELS:.el=.elc)
55

66
%.elc: %.el
7-
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
7+
$(EMACS) -Q -batch -L lisp/ -f batch-byte-compile $<
88

99
all: autoloads $(ELCS) authors
1010

@@ -24,11 +24,11 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap
2424

2525
autoloads: $(AUTOLOADS)
2626

27-
$(AUTOLOADS): php.el php-align.el php-face.el php-project.el php-mode-debug.el php-mode.el
28-
$(EMACS) -Q -batch -L . --eval \
27+
$(AUTOLOADS): lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-mode-debug.el lisp/php-mode.el
28+
$(EMACS) -Q -batch -L lisp/ --eval \
2929
"(progn \
3030
(require 'package) \
31-
(package-generate-autoloads \"php-mode\" default-directory))"
31+
(package-generate-autoloads \"php-mode\" (expand-file-name \"lisp\")))"
3232

3333
clean:
3434
rm -f $(ELCS) $(AUTOLOADS)
@@ -52,6 +52,7 @@ dev:
5252
# command.
5353
test: clean all
5454
touch tests/project/1/.git
55-
$(EMACS) -Q -batch -L . -l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
55+
$(EMACS) -Q -batch -l lisp/php-mode-autoloads.el \
56+
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
5657

5758
.PHONY: all authors autoloads clean test

0 commit comments

Comments
 (0)