aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-05-15 22:32:07 -0400
committerKyle Meyer <kyle@kyleam.com>2020-05-15 23:11:49 -0400
commit4a89608506f8ac941a585f28a2125bca665e0718 (patch)
tree3769124de14ed336619309cee759d6b737572ce8 /Makefile
parent9253b098425c4a58f96413b468b8aa2d68b99983 (diff)
downloadpiem-4a89608506f8ac941a585f28a2125bca665e0718.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
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)/$@\"))"