doomemacs/Makefile

38 lines
1 KiB
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-20 13:12:24 -05:00
install: init.el
@$(EMACS) -l core/core.el -f 'doom-initialize-autoloads' -f 'doom/packages-install'
2017-02-20 13:12:24 -05:00
update: init.el
@$(EMACS) -l core/core.el -f 'doom-initialize-autoloads' -f 'doom/packages-update'
2016-03-25 13:37:48 -04:00
2017-02-20 13:12:24 -05:00
autoremove: init.el
@$(EMACS) -l core/core.el -f 'doom-initialize-autoloads' -f 'doom/packages-autoremove'
autoloads: init.el
2017-02-11 00:46:42 -05:00
@$(EMACS) -l core/core.el -f 'doom/reload-autoloads'
2016-03-25 13:37:48 -04:00
2017-02-11 00:46:42 -05:00
compile: init.el clean
@$(EMACS) -l core/core.el -f 'doom/recompile'
2017-02-02 21:56:52 -05:00
clean:
@$(EMACS) -l core/core.el -f 'doom/clear-compiled'
2016-04-08 01:44:10 -04:00
clean-cache:
@$(EMACS) -l core/core.el -f 'doom/clear-cache'
2017-02-20 00:45:17 -05:00
# This is only useful if your emacs.d is somewhere other than ~/.emacs.d (for
# development purposes for instance).
run:
@emacs --eval "(setq user-emacs-directory default-directory)" -q -l init.el
2017-01-31 04:31:14 -05:00
init.el:
2017-02-20 13:12:24 -05:00
@[ -e init.el ] || $(error No init.el file; create one or copy init.example.el)
2017-02-03 19:17:09 -05:00
.PHONY: all test