Skip to content

Commit 51430a3

Browse files
committed
Improve make autoload file for multiple .el files
1 parent 1d06c6e commit 51430a3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
EMACS ?= emacs
2-
ELS = php-mode.el php-mode-test.el
2+
ELS = php-project.el php-mode.el php-mode-test.el
3+
AUTOLOADS = php-project-autoloads.el php-mode-autoloads.el
34
ELCS = $(ELS:.el=.elc)
45

56
%.elc: %.el
67
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
78

89
all: autoloads $(ELCS)
910

10-
autoloads: php-mode-autoloads.el
11+
autoloads: $(AUTOLOADS)
1112

12-
php-mode-autoloads.el:
13+
$(AUTOLOADS): php-project.el php-mode.el
1314
$(EMACS) -Q -batch -L . --eval \
1415
"(progn \
15-
(require 'package) \
16-
(package-generate-autoloads \"php-mode\" default-directory))"
16+
(require 'package) \
17+
(package-generate-autoloads \"php-mode\" default-directory))"
1718

1819
clean:
19-
rm -f $(ELCS) php-mode-autoloads.el
20+
rm -f $(ELCS) $(AUTOLOADS)
2021

2122
# Runs all unit tests from php-mode-test.el and shows the results. The
2223
# script will exit with the status code zero if all tests pass. If any

0 commit comments

Comments
 (0)