From 38cd7a4d62fdc8952f85e6d24a14f61b395a48b2 Mon Sep 17 00:00:00 2001 From: Seth Falcon Date: Mon, 22 Apr 2013 12:57:09 -0700 Subject: [PATCH] Use deps directory to trigger get-deps A `make distclean` now removes the deps directory and all of its contents. The default target now looks for the presence of the deps directory to determine if `rebar get-deps compile` should be run. The main benefit being that one can now do: `make distclean && make` without a call to `make get-deps`. The get-deps target is left in place for convenince and back compat. The get-deps target was updated slightly to run get-deps and compile as part of a single command. This should be slightly more efficient. --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 714d70e..0871acf 100644 --- a/Makefile +++ b/Makefile @@ -19,11 +19,13 @@ ERLWARE_COMMONS_PLT=$(CURDIR)/.erlware_commons_plt all: compile doc test #dialyzer #fail on travis -get-deps: - $(REBAR) get-deps - $(REBAR) compile +deps: + $(REBAR) get-deps compile -compile: +get-deps: + $(REBAR) get-deps compile + +compile: deps $(REBAR) skip_deps=true compile doc: compile @@ -81,6 +83,6 @@ clean: distclean: clean rm -rf $(ERLWARE_COMMONS_PLT).$(ERL_VER) - rm -rvf $(CURDIR)/deps/* + rm -rvf $(CURDIR)/deps rebuild: distclean get-deps all