summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrea Richiardi <a.richiardi.work@gmail.com>2018-07-23 11:18:56 -0700
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-07-23 21:18:56 +0300
commitaef642f518992975f51b40e1f347f482a26e9ae6 (patch)
treedc2415657fac5647216a7bdb5a11a0d23b6a888e /Makefile
parent7e8b60d88d65194d2f65596aa5dd4d82d620a3a7 (diff)
Add autoloads target to Makefile (#2378)
Helper target to create cider-autoloads.el automatically. Doc updated as well.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5f95e4e9..1343586c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,12 @@ version:
test: version build
$(CASK) exec buttercup -L . -L ./test/utils/
+autoloads:
+ $(CASK) exec $(EMACS) -Q --batch \
+ -l autoload.el \
+ --eval "(let ((generated-autoload-file (expand-file-name \"cider-autoloads.el\"))) \
+ (update-directory-autoloads (expand-file-name \".\")))"
+
lint: version elpa
$(CASK) exec $(EMACS) -Q --batch \
--eval "(setq enable-local-variables :safe)" \
@@ -46,7 +52,7 @@ lint: version elpa
test-all: lint test
clean:
- rm -f .depend $(OBJECTS)
+ rm -f .depend $(OBJECTS) cider-autoloads.el
elpaclean: clean
rm -f elpa*