Commits

Anonymous committed 9da2d2a

added development releases

Comments (0)

Files changed (5)

 \.beam$
 ^rel/earlybrew
 ^deps/.*
+^dev/.*
 ^apps/.*
 ^cappuccino/cappuccino/.*
 ^cappuccino/cappuccino-dist/.*
 distclean: clean relclean
 	@./rebar delete-deps
 
+test:
+	./rebar skip_deps=true eunit
+
 relclean:
 	rm -rf rel/earlybrew
 
 bootstrap: deps
 	@./cappuccino/bootstrap.sh
+
+##
+## Developer targets
+##
+stagedevrel: dev1 dev2 dev3
+        $(foreach dev,$^,\
+        $(foreach dep,$(wildcard deps/*), rm -rf dev/$(dev)/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) dev/$(dev)/lib;))
+
+devrel: dev1 dev2 dev3
+
+dev1 dev2 dev3:
+	mkdir -p dev
+	(cd rel && ../rebar generate target_dir=../dev/$@ overlay_vars=vars/$@_vars.config)
+
+devclean: clean
+	rm -rf dev
+
+stage : rel
+	$(foreach dep,$(wildcard deps/*), rm -rf rel/riak/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) rel/riak/lib;)

rel/vars/dev1_vars.config

 %%
 %% etc/vm.args
 %%
-{node,         "dev1@127.0.0.1"}.
+{node,         "ebdev1@127.0.0.1"}.
 
 %%
 %% bin/earlybrew

rel/vars/dev2_vars.config

 %%
 %% etc/vm.args
 %%
-{node,         "dev2@127.0.0.1"}.
+{node,         "endev2@127.0.0.1"}.
 
 %%
 %% bin/earlybrew

rel/vars/dev3_vars.config

 %%
 %% etc/vm.args
 %%
-{node,         "dev3@127.0.0.1"}.
+{node,         "ebdev3@127.0.0.1"}.
 
 %%
 %% bin/earlybrew