2018-07-14 19:21:16 +01:00
|
|
|
DOOM = "bin/doom"
|
2018-03-12 13:26:34 -04:00
|
|
|
MODULES = $(patsubst modules/%/, %, $(sort $(dir $(wildcard modules/*/ modules/*/*/))))
|
2017-02-06 18:00:34 -05:00
|
|
|
|
2018-05-16 00:09:44 +02:00
|
|
|
all:
|
2018-05-24 16:05:52 +02:00
|
|
|
@$(DOOM) refresh
|
2016-05-29 00:40:13 -04:00
|
|
|
|
2017-11-05 17:16:13 +01:00
|
|
|
## Shortcuts
|
2017-09-15 14:34:43 +02:00
|
|
|
a: autoloads
|
|
|
|
i: install
|
|
|
|
u: update
|
2018-04-03 22:35:46 -04:00
|
|
|
U: upgrade
|
2017-09-15 14:34:43 +02:00
|
|
|
r: autoremove
|
|
|
|
c: compile
|
2017-09-22 21:39:31 +02:00
|
|
|
cc: compile-core
|
2018-05-24 16:05:52 +02:00
|
|
|
cp: compile-plugins
|
2018-05-09 08:38:57 +10:00
|
|
|
re: recompile
|
2018-03-12 13:26:34 -04:00
|
|
|
d: doctor
|
2017-09-15 14:34:43 +02:00
|
|
|
|
2018-05-20 12:21:13 +02:00
|
|
|
quickstart:
|
|
|
|
@$(DOOM) quickstart
|
2018-04-04 06:12:18 -04:00
|
|
|
|
2017-02-03 07:58:16 -05:00
|
|
|
|
2018-05-20 12:21:13 +02:00
|
|
|
## Package management
|
|
|
|
install:
|
|
|
|
@$(DOOM) install
|
|
|
|
update:
|
|
|
|
@$(DOOM) update
|
|
|
|
autoremove:
|
|
|
|
@$(DOOM) autoremove
|
2018-04-03 19:48:20 -04:00
|
|
|
autoloads:
|
2018-05-20 12:21:13 +02:00
|
|
|
@$(DOOM) autoloads
|
|
|
|
upgrade:
|
|
|
|
@$(DOOM) upgrade
|
2017-03-28 15:53:47 -04:00
|
|
|
|
2017-07-09 22:53:50 +02:00
|
|
|
## Byte compilation
|
2018-05-20 12:21:13 +02:00
|
|
|
compile:
|
|
|
|
@$(DOOM) compile
|
|
|
|
compile-core:
|
|
|
|
@$(DOOM) compile :core
|
|
|
|
compile-private:
|
|
|
|
@$(DOOM) compile :private
|
|
|
|
compile-plugins:
|
|
|
|
@$(DOOM) compile :plugins
|
|
|
|
recompile:
|
|
|
|
@$(DOOM) recompile
|
|
|
|
clean:
|
|
|
|
@$(DOOM) clean
|
2017-09-22 21:39:31 +02:00
|
|
|
# compile-module
|
|
|
|
# compile-module/submodule
|
2018-04-03 19:48:20 -04:00
|
|
|
$(patsubst %, compile-%, $(MODULES)): | .local/autoloads.el
|
2018-05-20 12:21:13 +02:00
|
|
|
@$(DOOM) $@ $(subst compile-, , $@)
|
2017-07-09 22:50:29 +02:00
|
|
|
|
2017-07-09 22:55:06 +02:00
|
|
|
|
|
|
|
## Unit tests
|
2018-05-20 12:21:13 +02:00
|
|
|
test:
|
|
|
|
@$(DOOM) test
|
|
|
|
test-core:
|
|
|
|
@$(DOOM) test :core
|
2017-09-22 21:39:31 +02:00
|
|
|
# test-module
|
|
|
|
# test-module/submodule
|
2018-05-20 12:21:13 +02:00
|
|
|
$(patsubst %, test-%, $(MODULES)):
|
|
|
|
@$(DOOM) test $(subst test-, , $@)
|
2017-04-04 22:18:38 -04:00
|
|
|
|
2017-07-09 22:55:06 +02:00
|
|
|
|
|
|
|
## Utility tasks
|
2018-03-02 17:45:15 -05:00
|
|
|
# Runs Emacs from a different folder than ~/.emacs.d; only use this for testing!
|
2017-06-14 20:26:17 +02:00
|
|
|
run:
|
2018-05-24 16:05:52 +02:00
|
|
|
@$(DOOM) run $(ARGS)
|
2018-02-10 17:27:15 -05:00
|
|
|
# Prints debug info about your current setup
|
|
|
|
info:
|
2018-05-20 12:21:13 +02:00
|
|
|
@$(DOOM) info
|
2018-02-10 17:27:15 -05:00
|
|
|
|
2018-05-20 12:21:13 +02:00
|
|
|
# Diagnoses potential OS/environment issues
|
|
|
|
doctor:
|
|
|
|
@$(DOOM) doctor
|
2017-04-05 21:43:02 -04:00
|
|
|
|
2017-11-05 01:23:36 +01:00
|
|
|
.PHONY: all compile test testi clean
|