doomemacs/Makefile

34 lines
842 B
Makefile
Raw Normal View History

2015-06-12 17:22:33 +02:00
EMACS=emacs
2016-03-25 13:37:48 -04:00
2017-01-16 23:30:37 -05:00
all: install update
2016-05-29 00:40:13 -04:00
install: init.el clean-elc
2017-01-31 04:31:14 -05:00
@$(EMACS) --batch \
2017-02-01 00:29:39 -05:00
--eval '(setq doom--auto-install-p t)' \
2017-01-31 04:31:14 -05:00
-l init.el \
--eval '(message "%s" (if doom--packages "All done!" "Nothing to install"))'
update: init.el clean-elc
2017-01-31 04:31:14 -05:00
@$(EMACS) --batch -l init.el -f 'doom/packages-update'
2016-03-25 13:37:48 -04:00
clean: init.el clean-elc
@$(EMACS) --batch -l init.el -f 'doom/packages-clean'
2016-03-25 13:37:48 -04:00
compile: init.el clean-elc
2017-01-31 04:31:14 -05:00
@$(EMACS) --batch -l init.el -f 'doom/byte-compile'
2016-03-25 13:37:48 -04:00
autoloads: init.el
@$(EMACS) --batch -l init.el -f 'doom/refresh-autoloads'
2017-01-31 04:31:14 -05:00
clean-cache:
@$(EMACS) --batch -l core/core.el --eval '(delete-directory doom-cache-dir t)'
2016-03-25 13:37:48 -04:00
2017-01-16 23:30:37 -05:00
clean-elc:
@rm -fv init.elc
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
2016-04-08 01:44:10 -04:00
2017-01-31 04:31:14 -05:00
init.el:
@[ -f init.el ] || $(error No init.el file, please create one or copy init.example.el)
2017-01-16 23:30:37 -05:00
.PHONY: all