Clean up makefile & update it to match bin/doom
This commit is contained in:
parent
e1e47b9173
commit
bf3d35c287
1 changed files with 3 additions and 9 deletions
12
Makefile
12
Makefile
|
@ -1,11 +1,8 @@
|
|||
# Ensure emacs always runs from this makefile's PWD
|
||||
DOOM = bin/doom
|
||||
EMACS = emacs -q $(ARGS) -l init.el
|
||||
|
||||
MODULES = $(patsubst modules/%/, %, $(sort $(dir $(wildcard modules/*/ modules/*/*/))))
|
||||
|
||||
all:
|
||||
@$(DOOM) reload
|
||||
@$(DOOM) refresh
|
||||
|
||||
## Shortcuts
|
||||
a: autoloads
|
||||
|
@ -15,7 +12,7 @@ U: upgrade
|
|||
r: autoremove
|
||||
c: compile
|
||||
cc: compile-core
|
||||
ce: compile-elpa
|
||||
cp: compile-plugins
|
||||
re: recompile
|
||||
d: doctor
|
||||
|
||||
|
@ -63,15 +60,12 @@ test-core:
|
|||
# test-module/submodule
|
||||
$(patsubst %, test-%, $(MODULES)):
|
||||
@$(DOOM) test $(subst test-, , $@)
|
||||
# run tests interactively
|
||||
testi:
|
||||
@$(EMACS) -l core/autoload/doom.el -f doom//run-tests
|
||||
|
||||
|
||||
## Utility tasks
|
||||
# Runs Emacs from a different folder than ~/.emacs.d; only use this for testing!
|
||||
run:
|
||||
@$(EMACS)
|
||||
@$(DOOM) run $(ARGS)
|
||||
# Prints debug info about your current setup
|
||||
info:
|
||||
@$(DOOM) info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue