Refactor makefile
This commit is contained in:
parent
b0ef2569f3
commit
5ae8dd3159
1 changed files with 13 additions and 5 deletions
18
Makefile
18
Makefile
|
@ -48,6 +48,12 @@ clean-pcache:
|
||||||
reset:
|
reset:
|
||||||
@$(EMACS) -f doom/reset
|
@$(EMACS) -f doom/reset
|
||||||
|
|
||||||
|
|
||||||
|
## Unit tests
|
||||||
|
# test
|
||||||
|
# test:core
|
||||||
|
# test:module
|
||||||
|
# test:module/submodule
|
||||||
test: init.el .local/autoloads.el
|
test: init.el .local/autoloads.el
|
||||||
@$(EMACS) -f doom-run-tests
|
@$(EMACS) -f doom-run-tests
|
||||||
|
|
||||||
|
@ -58,16 +64,19 @@ test\:core $(patsubst %, test\:%, $(MODULES)): init.el .local/autoloads.el
|
||||||
testi: init.el .local/autoloads.el
|
testi: init.el .local/autoloads.el
|
||||||
@$(EMACSI) -f doom-run-tests -f ert
|
@$(EMACSI) -f doom-run-tests -f ert
|
||||||
|
|
||||||
# For running Emacs from a different folder than ~/.emacs.d
|
|
||||||
|
## Utility tasks
|
||||||
|
# Runs Emacs from a different folder than ~/.emacs.d
|
||||||
run:
|
run:
|
||||||
@$(EMACSI) -l init.el
|
@$(EMACSI) -l init.el
|
||||||
|
|
||||||
|
# Diagnoses potential OS/environment issues
|
||||||
doctor:
|
doctor:
|
||||||
@./bin/doom-doctor
|
@./bin/doom-doctor
|
||||||
|
|
||||||
#
|
## Internal tasks
|
||||||
init.el:
|
init.el:
|
||||||
@[ -e init.el ] || $(error No init.el file; create one or copy init.example.el)
|
@$(error No init.el file; create one or copy init.example.el)
|
||||||
|
|
||||||
.local/autoloads.el:
|
.local/autoloads.el:
|
||||||
@$(EMACS) -f doom-initialize-autoloads
|
@$(EMACS) -f doom-initialize-autoloads
|
||||||
|
@ -75,5 +84,4 @@ init.el:
|
||||||
%.elc: %.el
|
%.elc: %.el
|
||||||
@$(EMACS) -f doom/compile -- $<
|
@$(EMACS) -f doom/compile -- $<
|
||||||
|
|
||||||
|
.PHONY: all compile test testi
|
||||||
.PHONY: all test $(MODULES)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue