Makefile: clean compiled files before install/update/clean/compile

This commit is contained in:
Henrik Lissner 2017-01-31 19:53:00 -05:00
parent 28a93fa180
commit ceaa03cca8

View file

@ -2,24 +2,24 @@ EMACS=emacs
all: install update
install: init.el
install: init.el clean-elc
@$(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
update: init.el clean-elc
@$(EMACS) --batch -l init.el -f 'doom/packages-update'
clean: init.el clean-elc
@$(EMACS) --batch -l init.el -f 'doom/packages-clean'
compile: init.el clean-elc
@$(EMACS) --batch -l init.el -f 'doom/byte-compile'
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)'