Skip to content

Commit 7b9e511

Browse files
committed
Add "make autoloads"
1 parent 3a73c96 commit 7b9e511

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ ELCS = $(ELS:.el=.elc)
55
%.elc: %.el
66
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
77

8-
all: $(ELCS)
8+
all: autoloads $(ELCS)
9+
10+
autoloads: php-mode-autoloads.el
11+
12+
php-mode-autoloads.el:
13+
$(EMACS) -Q -batch -L . --eval \
14+
"(progn \
15+
(require 'package) \
16+
(package-generate-autoloads 'php-mode default-directory))"
917

1018
clean:
11-
rm -f $(ELCS)
19+
rm -f $(ELCS) php-mode-autoloads.el
1220

1321
# Runs all unit tests from php-mode-test.el and shows the results. The
1422
# script will exit with the status code zero if all tests pass. If any
@@ -24,4 +32,4 @@ clean:
2432
test: clean all
2533
$(EMACS) -Q -batch -L . -l php-mode-test.el -f ert-run-tests-batch-and-exit
2634

27-
.PHONY: all clean test
35+
.PHONY: all autoloads clean test

0 commit comments

Comments
 (0)