From 5ae8dd31599d19f7016ef0a7b333836cffc25f4c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 9 Jul 2017 22:55:06 +0200 Subject: [PATCH] Refactor makefile --- Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2179a8ca9..2869cd93e 100644 --- a/Makefile +++ b/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