2016-10-17 20:27:17 +00:00
|
|
|
HEAD_REVISION ?= $(shell git describe --tags --exact-match HEAD 2>/dev/null)
|
|
|
|
|
2012-01-11 00:21:39 +00:00
|
|
|
.PHONY: deps
|
|
|
|
|
2013-02-01 02:20:59 +00:00
|
|
|
APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
|
|
|
|
xmerl webtool eunit syntax_tools compiler hipe mnesia public_key \
|
2013-02-02 00:45:34 +00:00
|
|
|
observer wx gs
|
2013-02-01 02:20:59 +00:00
|
|
|
PLT = $(HOME)/.riak-test_dialyzer_plt
|
|
|
|
|
2012-01-11 00:21:39 +00:00
|
|
|
all: deps compile
|
|
|
|
./rebar skip_deps=true escriptize
|
2014-01-22 17:21:22 +00:00
|
|
|
SMOKE_TEST=1 ./rebar skip_deps=true escriptize
|
2012-01-11 00:21:39 +00:00
|
|
|
|
|
|
|
deps:
|
2016-10-17 20:27:17 +00:00
|
|
|
$(if $(HEAD_REVISION),$(warning "Warning: you have checked out a tag ($(HEAD_REVISION)) and should use the locked-deps target"))
|
2012-01-11 00:21:39 +00:00
|
|
|
./rebar get-deps
|
|
|
|
|
2012-10-05 15:58:19 +00:00
|
|
|
docsclean:
|
|
|
|
@rm -rf doc/*.png doc/*.html doc/*.css edoc-info
|
|
|
|
|
2012-01-11 00:21:39 +00:00
|
|
|
compile: deps
|
|
|
|
./rebar compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@./rebar clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
@rm -rf riak_test deps
|
2013-02-01 02:20:59 +00:00
|
|
|
|
2014-04-09 00:41:11 +00:00
|
|
|
quickbuild:
|
|
|
|
./rebar skip_deps=true compile
|
|
|
|
./rebar escriptize
|
|
|
|
|
2016-10-17 20:27:17 +00:00
|
|
|
##
|
|
|
|
## Lock Targets
|
|
|
|
##
|
|
|
|
## see https://github.com/seth/rebar_lock_deps_plugin
|
|
|
|
lock: deps compile
|
|
|
|
./rebar lock-deps
|
|
|
|
|
|
|
|
locked-all: locked-deps compile
|
|
|
|
|
|
|
|
locked-deps:
|
|
|
|
@echo "Using rebar.config.lock file to fetch dependencies"
|
|
|
|
./rebar -C rebar.config.lock get-deps
|
|
|
|
|
2013-02-01 02:20:59 +00:00
|
|
|
##################
|
|
|
|
# Dialyzer targets
|
|
|
|
##################
|
|
|
|
|
2014-12-19 23:04:21 +00:00
|
|
|
# Legacy target left for compatibility with any existing automation
|
|
|
|
# scripts ...
|
2013-02-01 02:20:59 +00:00
|
|
|
clean_plt:
|
2014-12-19 23:04:21 +00:00
|
|
|
cleanplt
|
|
|
|
|
|
|
|
include tools.mk
|