2016-09-08 02:10:01 +02:00
|
|
|
include ../../dotfiles.mk
|
2016-08-05 01:42:39 +02:00
|
|
|
|
2016-09-07 14:31:14 +02:00
|
|
|
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)))
|
2016-10-13 00:16:32 +02:00
|
|
|
INIT_LISPS = $(addsuffix .elc,$(basename $(wildcard init/*.org)))
|
2016-09-07 14:31:14 +02:00
|
|
|
|
2016-10-13 00:16:32 +02:00
|
|
|
all: init.elc $(INIT_LISPS) $(AUTOLOADS_FILE) $(SITE_LISPS)
|
2016-08-05 01:42:39 +02:00
|
|
|
|
|
|
|
%.el: %.org
|
2016-09-08 02:10:01 +02:00
|
|
|
$(call tangle,emacs-lisp)
|
2016-08-05 01:42:39 +02:00
|
|
|
|
|
|
|
%.elc: %.el
|
2016-09-18 00:04:54 +02:00
|
|
|
@echo -e "\e[31mELC\e[0m $<"
|
|
|
|
@$(EMACS) -batch \
|
2016-09-07 14:31:14 +02:00
|
|
|
-eval "(package-initialize)" \
|
|
|
|
-eval "(byte-compile-file \"$<\")"
|
|
|
|
|
|
|
|
### Site Lisp
|
|
|
|
|
|
|
|
$(AUTOLOADS_FILE): $(SITE_LISPS)
|
2016-09-18 00:04:54 +02:00
|
|
|
@echo -e "\e[32mGEN\e[0m $@"
|
|
|
|
@$(EMACS) -batch \
|
2016-09-07 14:31:14 +02:00
|
|
|
-eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \
|
|
|
|
-eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"
|