25 lines
820 B
Makefile
25 lines
820 B
Makefile
EMACS = /usr/bin/emacs
|
|
|
|
AUTOLOADS_FILE = site-lisp/site-autoloads.el
|
|
UNWANTED = $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-%
|
|
SITE_LISPS = $(addsuffix c,$(filter-out $(UNWANTED),$(wildcard site-lisp/*.el)))
|
|
|
|
all: init.elc $(AUTOLOADS_FILE) $(SITE_LISPS)
|
|
|
|
%.el: %.org
|
|
$(EMACS) -batch -eval "(progn \
|
|
(package-initialize) \
|
|
(require 'ob-tangle) \
|
|
(org-babel-tangle-file \"$<\" \"$@\" \"emacs-lisp\"))"
|
|
|
|
%.elc: %.el
|
|
$(EMACS) -batch \
|
|
-eval "(package-initialize)" \
|
|
-eval "(byte-compile-file \"$<\")"
|
|
|
|
### Site Lisp
|
|
|
|
$(AUTOLOADS_FILE): $(SITE_LISPS)
|
|
$(EMACS) -batch \
|
|
-eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \
|
|
-eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"
|