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
|
DOOM = bin/doom
|
||||||
EMACS = emacs -q $(ARGS) -l init.el
|
|
||||||
|
|
||||||
MODULES = $(patsubst modules/%/, %, $(sort $(dir $(wildcard modules/*/ modules/*/*/))))
|
MODULES = $(patsubst modules/%/, %, $(sort $(dir $(wildcard modules/*/ modules/*/*/))))
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@$(DOOM) reload
|
@$(DOOM) refresh
|
||||||
|
|
||||||
## Shortcuts
|
## Shortcuts
|
||||||
a: autoloads
|
a: autoloads
|
||||||
|
@ -15,7 +12,7 @@ U: upgrade
|
||||||
r: autoremove
|
r: autoremove
|
||||||
c: compile
|
c: compile
|
||||||
cc: compile-core
|
cc: compile-core
|
||||||
ce: compile-elpa
|
cp: compile-plugins
|
||||||
re: recompile
|
re: recompile
|
||||||
d: doctor
|
d: doctor
|
||||||
|
|
||||||
|
@ -63,15 +60,12 @@ test-core:
|
||||||
# test-module/submodule
|
# test-module/submodule
|
||||||
$(patsubst %, test-%, $(MODULES)):
|
$(patsubst %, test-%, $(MODULES)):
|
||||||
@$(DOOM) test $(subst test-, , $@)
|
@$(DOOM) test $(subst test-, , $@)
|
||||||
# run tests interactively
|
|
||||||
testi:
|
|
||||||
@$(EMACS) -l core/autoload/doom.el -f doom//run-tests
|
|
||||||
|
|
||||||
|
|
||||||
## Utility tasks
|
## Utility tasks
|
||||||
# Runs Emacs from a different folder than ~/.emacs.d; only use this for testing!
|
# Runs Emacs from a different folder than ~/.emacs.d; only use this for testing!
|
||||||
run:
|
run:
|
||||||
@$(EMACS)
|
@$(DOOM) run $(ARGS)
|
||||||
# Prints debug info about your current setup
|
# Prints debug info about your current setup
|
||||||
info:
|
info:
|
||||||
@$(DOOM) info
|
@$(DOOM) info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue