aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEric <[email protected]>2012-10-19 17:47:05 -0500
committerJordan Wilberding <[email protected]>2012-10-24 11:30:00 -0600
commitb8cd602020cd8c40a996b064339c48e9260fb785 (patch)
treed66fef60f5e1046e4573f1891df5f912a2e8b3e4 /Makefile
parent8a09a87f9437ccfc6ba3288da04c0870dac1f54b (diff)
downloadrelx-b8cd602020cd8c40a996b064339c48e9260fb785.tar.gz
relx-b8cd602020cd8c40a996b064339c48e9260fb785.tar.bz2
relx-b8cd602020cd8c40a996b064339c48e9260fb785.zip
make the makefile a bit more generic
Signed-off-by: Jordan Wilberding <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 371e390..5cc166d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/deps/*/ebin
-RELCOOL_PLT=$(CURDIR)/.relcool_plt
+DEPS_PLT=$(CURDIR)/.deps_plt
# =============================================================================
# Verify that the programs we need to run are installed on this system
@@ -36,7 +36,7 @@ $(error "Rebar not available on this system")
endif
.PHONY: all compile doc clean test dialyzer typer shell distclean pdf \
- get-deps escript clean-common-test-data
+ get-deps escript clean-common-test-data rebuild
all: compile escript dialyzer test
@@ -74,18 +74,18 @@ ct: compile clean-common-test-data
test: compile eunit ct
-$(RELCOOL_PLT):
- @echo Building local plt at $(RELCOOL_PLT)
+$(DEPS_PLT):
+ @echo Building local plt at $(DEPS_PLT)
@echo
- dialyzer --output_plt $(RELCOOL_PLT) --build_plt \
+ dialyzer --output_plt $(DEPS_PLT) --build_plt \
--apps erts kernel stdlib -r deps
-dialyzer: $(RELCOOL_PLT)
- dialyzer --plt $(RELCOOL_PLT) --fullpath -Wrace_conditions \
+dialyzer: $(DEPS_PLT)
+ dialyzer --plt $(DEPS_PLT) --fullpath -Wrace_conditions \
-I include -pa $(CURDIR)/ebin --src src
typer:
- typer --plt $(RELCOOL_PLT) -r ./src
+ typer --plt $(DEPS_PLT) -r ./src
shell: get-deps compile
# You often want *rebuilt* rebar tests to be available to the
@@ -110,5 +110,7 @@ clean: clean-common-test-data
$(REBAR) skip_deps=true clean
distclean: clean
- - rm -rf $(RELCOOL_PLT)
+ - rm -rf $(DEPS_PLT)
- rm -rvf $(CURDIR)/deps/*
+
+rebuild: distclean get-deps compile dialyzer test