doomemacs/Makefile
2017-02-20 00:23:04 -05:00

33 lines
801 B
Makefile

EMACS=emacs
all: install update
install: init.el
@$(EMACS) --batch \
--eval '(setq doom-auto-install-p t)' \
-l init.el \
--eval '(message "%s" (if doom--packages "All done!" "Nothing to install"))'
update: init.el
@$(EMACS) --batch -l init.el -f 'doom/packages-update'
autoloads: init.el
@$(EMACS) --batch -l init.el -f 'doom/refresh-autoloads'
compile: init.el
@$(EMACS) --batch -l init.el -f 'doom/byte-compile'
clean: init.el
@$(EMACS) --batch -l init.el -f 'doom/packages-clean'
clean-cache:
@$(EMACS) --batch -l core/core.el --eval '(delete-directory doom-cache-dir t)'
clean-elc:
@rm -fv init.elc
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
init.el:
@[ -f init.el ] || $(error No init.el file, please create one or copy init.example.el)
.PHONY: all