aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-09 11:24:19 -0500
committerSean Allred <code@seanallred.com>2014-11-09 11:24:19 -0500
commit54cfa773584fe0d9828a58d9d09a19959515e21b (patch)
tree1807e2760ec93ab7f5073755da6ea523ed7a0151
parent558d34708b4b8db7aea84ea8dc0c353892fbf13c (diff)
Avoid .DEFAULT rule in Makefile
Instead, use a proper 'group' rule using the `VERSIONS' variable. Also, the use of `::' signals that the order doesn't matter at all; the recipes will be executed in the order they appear in the Makefile.
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b322342..1ca10c0 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,11 @@
# make all
#
-all: 24.1 24.2 24.3 24.4
+VERSIONS = 24.1 24.2 24.3 24.4
-.DEFAULT:
+all :: $(VERSIONS)
+
+$(VERSIONS) ::
evm install emacs-$@-bin || true
emacs --version
emacs --batch -L . -l ert -l test/tests.el -f ert-run-tests-batch-and-exit