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:
|
||||
@$(EMACS) -f doom/reset
|
||||
|
||||
|
||||
## Unit tests
|
||||
# test
|
||||
# test:core
|
||||
# test:module
|
||||
# test:module/submodule
|
||||
test: init.el .local/autoloads.el
|
||||
@$(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
|
||||
@$(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:
|
||||
@$(EMACSI) -l init.el
|
||||
|
||||
# Diagnoses potential OS/environment issues
|
||||
doctor:
|
||||
@./bin/doom-doctor
|
||||
|
||||
#
|
||||
## Internal tasks
|
||||
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:
|
||||
@$(EMACS) -f doom-initialize-autoloads
|
||||
|
@ -75,5 +84,4 @@ init.el:
|
|||
%.elc: %.el
|
||||
@$(EMACS) -f doom/compile -- $<
|
||||
|
||||
|
||||
.PHONY: all test $(MODULES)
|
||||
.PHONY: all compile test testi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue