summaryrefslogtreecommitdiff
path: root/Makefile
blob: b4b937ab093e7c9ca90c0d67510cbeb81785a6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
BATCH = emacs -Q --batch

LOADDEFS_FNAME = km-emacs-autoloads.el
LOADDEFS = lisp/$(LOADDEFS_FNAME)

ELS = $(shell find lisp -maxdepth 1 \
	-type f \( -name "*.el" -and ! -name "$(LOADDEFS_FNAME)" \) -print)

$(LOADDEFS): $(ELS)
	@$(BATCH) --eval "\
	(let* ((make-backup-files nil) \
	       (default-directory \"$(CURDIR)\") \
	       (generated-autoload-file (expand-file-name \"$(LOADDEFS)\"))) \
	 (update-directory-autoloads \"lisp/\"))"