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.
This commit is contained in:
parent
38141c5c24
commit
38cd7a4d62
1 changed files with 7 additions and 5 deletions
12
Makefile
12
Makefile
|
@ -19,11 +19,13 @@ ERLWARE_COMMONS_PLT=$(CURDIR)/.erlware_commons_plt
|
||||||
|
|
||||||
all: compile doc test #dialyzer #fail on travis
|
all: compile doc test #dialyzer #fail on travis
|
||||||
|
|
||||||
get-deps:
|
deps:
|
||||||
$(REBAR) get-deps
|
$(REBAR) get-deps compile
|
||||||
$(REBAR) compile
|
|
||||||
|
|
||||||
compile:
|
get-deps:
|
||||||
|
$(REBAR) get-deps compile
|
||||||
|
|
||||||
|
compile: deps
|
||||||
$(REBAR) skip_deps=true compile
|
$(REBAR) skip_deps=true compile
|
||||||
|
|
||||||
doc: compile
|
doc: compile
|
||||||
|
@ -81,6 +83,6 @@ clean:
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -rf $(ERLWARE_COMMONS_PLT).$(ERL_VER)
|
rm -rf $(ERLWARE_COMMONS_PLT).$(ERL_VER)
|
||||||
rm -rvf $(CURDIR)/deps/*
|
rm -rvf $(CURDIR)/deps
|
||||||
|
|
||||||
rebuild: distclean get-deps all
|
rebuild: distclean get-deps all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue