Extract make clean/clean-cache into elisp; new doom-etc-dir for non-volatile temp files

This commit is contained in:
Henrik Lissner 2017-03-16 23:38:22 -04:00
parent 4ae0513020
commit 923d4585fa
7 changed files with 43 additions and 16 deletions

View file

@ -21,11 +21,10 @@ compile: init.el clean
@$(EMACS) -l core/core.el -f 'doom/recompile'
clean:
@rm -fv init.elc
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
@$(EMACS) -l core/core.el -f 'doom/clear-compiled'
clean-cache:
@$(EMACS) -l core/core.el --eval '(delete-directory doom-cache-dir t)'
@$(EMACS) -l core/core.el -f 'doom/clear-cache'
# This is only useful if your emacs.d is somewhere other than ~/.emacs.d (for
# development purposes for instance).