doomemacs/Makefile

40 lines
961 B
Makefile
Raw Normal View History

# Ensure emacs always runs from this makefile's PWD
EMACS=emacs --batch --eval "(setq user-emacs-directory default-directory)"
2016-03-25 13:37:48 -04:00
# Tasks
2017-02-02 21:56:52 -05:00
all: install update autoloads
2016-05-29 00:40:13 -04:00
2017-02-02 21:56:52 -05:00
install: init.el
@$(EMACS) -l core/core.el -f 'doom/packages-install'
2017-02-02 21:56:52 -05:00
update: init.el
@$(EMACS) -l core/core.el -f 'doom/packages-update'
2016-03-25 13:37:48 -04:00
autoremove: init.el
@$(EMACS) -l core/core.el -f 'doom/packages-autoremove'
autoloads: init.el
@$(EMACS) -l init.el -f 'doom/refresh-autoloads'
2016-03-25 13:37:48 -04:00
compile: init.el clean-elc
@$(EMACS) -l init.el -f 'doom/byte-compile'
2017-02-02 21:56:52 -05:00
2017-02-06 01:24:37 -05:00
compile-lite: init.el clean-elc
@$(EMACS) -l core/core.el --eval '(doom/byte-compile t)'
2016-03-25 13:37:48 -04:00
clean:
2017-01-16 23:30:37 -05:00
@rm -fv init.elc
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
2016-04-08 01:44:10 -04:00
clean-cache:
@$(EMACS) -l core/core.el --eval '(delete-directory doom-cache-dir t)'
2017-02-03 19:17:09 -05:00
test:
@$(EMACS) -l test/init.el -f 'doom-run-tests'
2017-02-03 19:17:09 -05:00
2017-01-31 04:31:14 -05:00
init.el:
2017-02-08 02:02:51 -05:00
@[ -f init.el ] || $(error No init.el file; create one or copy init.example.el)
2017-01-31 04:31:14 -05:00
2017-02-03 19:17:09 -05:00
.PHONY: all test