From 4a89608506f8ac941a585f28a2125bca665e0718 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 15 May 2020 22:32:07 -0400 Subject: Makefile: Use package.el to generate single autoloads file The pattern rule creates an autoload file for each .el, which isn't very useful in the context of a multi-file package. Replace that with a rule that creates a single autoloads file. Instead of calling update-directory-autoloads directly use package.el, letting it worry about setting the appropriate variables. --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 196969e..8285e84 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,10 @@ all: loadpath piem.info piem.elc \ piem-b4.elc piem-elfeed.elc piem-eww.elc \ piem-gnus.elc piem-notmuch.elc +piem-autoloads.el: + $(BATCH) -l package --eval \ + '(package-generate-autoloads "piem" default-directory)' + .PHONY: clean clean: $(RM) *.elc *-autoloads.el *.info @@ -21,8 +25,3 @@ loadpath: %.elc: %.el $(BATCH) -f batch-byte-compile $< - -%-autoloads.el: %.el - $(BATCH) --eval \ - "(let ((make-backup-files nil)) \ - (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))" -- cgit v1.2.3