Permalink
Browse files

Clean up & add new targets for project Makefile.

Add new Makefile targets for:
* build-plt
* check-plt

Add new Makefile target dependencies for:
* deps
* analyze

Update rebar subcommand for analyze target from analyze to dialyze.
  • Loading branch information...
1 parent 4f6aaee commit 5572e376e0a547db652948285ea2c4fee21a5a0c @mbbx6spp committed Feb 9, 2011
Showing with 18 additions and 11 deletions.
  1. +18 −11 project_Makefile
View
29 project_Makefile
@@ -7,32 +7,39 @@ APPS := $(shell dir apps)
all: deps compile
-compile:
- rebar compile
+compile: deps
+ @rebar compile
deps:
- rebar get-deps
+ @rebar get-deps
+ @rebar check-deps
clean:
- rebar clean
+ @rebar clean
realclean: clean
- rebar delete-deps
+ @rebar delete-deps
test:
- rebar skip_deps=true eunit
+ @rebar skip_deps=true ct
rel: deps
- rebar compile generate
+ @rebar compile generate
doc:
rebar skip_deps=true doc
for app in $(APPS); do \
cp -R apps/$${app}/doc doc/$${app}; \
done;
-analyze:
- rebar skip_deps=true analyze
-
console:
- erl -pa deps/*/ebin deps/*/include ebin include -boot start_sasl
+ @erl -pa deps/*/ebin deps/*/include ebin include -boot start_sasl
+
+analyze: checkplt
+ @rebar skip_deps=true dialyze
+
+buildplt:
+ @rebar skip_deps=true build-plt
+
+checkplt: buildplt
+ @rebar skip_deps=true check-plt

0 comments on commit 5572e37

Please sign in to comment.