Makefile (1166B)
1 -include ../config.mk 2 include ../default.mk 3 4 lisp: $(ELCS) loaddefs check-declare 5 6 loaddefs: $(PKG)-autoloads.el 7 8 %.elc: %.el 9 @printf "Compiling $<\n" 10 @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $< 11 12 check-declare: 13 @printf " Checking function declarations\n" 14 @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \ 15 --eval "(check-declare-directory default-directory)" 16 17 CLEAN = $(ELCS) $(PKG)-autoloads.el 18 19 clean: 20 @printf " Cleaning lisp/*...\n" 21 @rm -rf $(CLEAN) 22 23 $(PKG)-autoloads.el: $(ELS) 24 @printf " Creating $@\n" 25 @$(EMACS) -Q --batch -l autoload -l cl-lib --eval "\ 26 (let ((file (expand-file-name \"$@\"))\ 27 (autoload-timestamps nil) \ 28 (backup-inhibited t)\ 29 (version-control 'never)\ 30 (coding-system-for-write 'utf-8-emacs-unix))\ 31 (write-region (autoload-rubric file \"package\" nil) nil file nil 'silent)\ 32 (cl-letf (((symbol-function 'progress-reporter-do-update) (lambda (&rest _)))\ 33 ((symbol-function 'progress-reporter-done) (lambda (_))))\ 34 (let ((generated-autoload-file file))\ 35 (update-directory-autoloads default-directory))))" \ 36 2>&1 | sed "/^Package autoload is deprecated$$/d"