Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 119 lines (90 sloc) 2.742 kb
f788e94 Makefile targets to generate normalized release tarballs.
Ryan Tilder authored
1 RIAK_TAG = $(shell hg identify -t)
2
037275e @jonmeredith Added stagedevrel target to symlink the lib dir in the dev/* dirs.
jonmeredith authored
3 .PHONY: rel stagedevrel deps
db66c33 import
justin authored
4
e4306aa @argv0 have the "all" target depend on "deps"
argv0 authored
5 all: deps compile
db66c33 import
justin authored
6
adee1ef @dizzyd Removing Emakefile; reworking Makefile to use rebar (partially done)
dizzyd authored
7 compile:
8 ./rebar compile
db66c33 import
justin authored
9
e556fda @dizzyd Complete transition to deps
dizzyd authored
10 deps:
11 ./rebar get-deps
12
adee1ef @dizzyd Removing Emakefile; reworking Makefile to use rebar (partially done)
dizzyd authored
13 clean:
14 ./rebar clean
db66c33 import
justin authored
15
f788e94 Makefile targets to generate normalized release tarballs.
Ryan Tilder authored
16 distclean: clean devclean relclean ballclean
e556fda @dizzyd Complete transition to deps
dizzyd authored
17 ./rebar delete-deps
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
18
bc01509 @dizzyd Minor tweaks to take advantage of edoc support in rebar; skip_deps wh…
dizzyd authored
19 test:
20 ./rebar skip_deps=true eunit
7d2027d @dizzyd Removing test runner (rebar FTW)
dizzyd authored
21
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
22 ##
23 ## Release targets
24 ##
d327e1e rel target needs deps
Ryan Tilder authored
25 rel: deps
bc01509 @dizzyd Minor tweaks to take advantage of edoc support in rebar; skip_deps wh…
dizzyd authored
26 ./rebar compile generate
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
27
28 relclean:
29 rm -rf rel/riak
30
31 ##
32 ## Developer targets
33 ##
037275e @jonmeredith Added stagedevrel target to symlink the lib dir in the dev/* dirs.
jonmeredith authored
34 stagedevrel: dev1 dev2 dev3
35 $(foreach dev,$^,\
36 $(foreach dep,$(wildcard deps/*), rm -rf dev/$(dev)/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) dev/$(dev)/lib;))
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
37
38 devrel: dev1 dev2 dev3
39
b255f33 @dizzyd Refactoring makefile to use new overlay functionality for generating …
dizzyd authored
40 dev1 dev2 dev3:
41 mkdir -p dev
42 (cd rel && ../rebar generate target_dir=../dev/$@ overlay_vars=vars/$@_vars.config)
0a257c9 @dizzyd Update Makefile with targets for generating multi-node setup
dizzyd authored
43
44 devclean: clean
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
45 rm -rf dev
0a257c9 @dizzyd Update Makefile with targets for generating multi-node setup
dizzyd authored
46
db38938 @jonmeredith Added stage target for developers to symlink riak_core/kv app dirs to…
jonmeredith authored
47 stage : rel
9a58d07 @beerriot fix 'stage' make targets for lack of apps/ directory
beerriot authored
48 $(foreach dep,$(wildcard deps/*), rm -rf rel/riak/lib/$(shell basename $(dep))-* && ln -sf $(abspath $(dep)) rel/riak/lib;)
db38938 @jonmeredith Added stage target for developers to symlink riak_core/kv app dirs to…
jonmeredith authored
49
338e38a @dizzyd Reworking makefile to add devrel target w/ symlinked apps
dizzyd authored
50 ##
51 ## Doc targets
52 ##
90faf45 @dizzyd Get docs, reldocs and dialyzer targets working again
dizzyd authored
53 docs:
bc01509 @dizzyd Minor tweaks to take advantage of edoc support in rebar; skip_deps wh…
dizzyd authored
54 ./rebar skip_deps=true doc
5633136 @rajivr fix make docs target
rajivr authored
55 @cp -R apps/luke/doc doc/luke
56 @cp -R apps/riak_core/doc doc/riak_core
57 @cp -R apps/riak_kv/doc doc/riak_kv
91b1241 @argv0 include link to javadocs on programming.html
argv0 authored
58
722f895 @beerriot 'make orgs' to convert .org files to ascii/html
beerriot authored
59 orgs: orgs-doc orgs-README
60
61 orgs-doc:
62 @emacs -l orgbatch.el -batch --eval="(riak-export-doc-dir \"doc\" 'html)"
63
64 orgs-README:
65 @emacs -l orgbatch.el -batch --eval="(riak-export-doc-file \"README.org\" 'ascii)"
66 @mv README.txt README
db66c33 import
justin authored
67
a776c03 @slfritchie Bug 514: fix 'make dialyzer' target
slfritchie authored
68 APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
69 xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
70 COMBO_PLT = $(HOME)/.riak_combo_dialyzer_plt
71
72 check_plt: compile
73 dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS) \
74 deps/*/ebin
75
76 build_plt: compile
77 dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS) \
78 deps/*/ebin
79
90faf45 @dizzyd Get docs, reldocs and dialyzer targets working again
dizzyd authored
80 dialyzer: compile
a776c03 @slfritchie Bug 514: fix 'make dialyzer' target
slfritchie authored
81 @echo
82 @echo Use "'make check_plt'" to check PLT prior to using this target.
83 @echo Use "'make build_plt'" to build PLT prior to using this target.
84 @echo
85 @sleep 1
86 dialyzer -Wno_return --plt $(COMBO_PLT) deps/*/ebin | \
87 fgrep -v -f ./dialyzer.ignore-warnings
88
89 cleanplt:
90 @echo
91 @echo "Are you sure? It takes about 1/2 hour to re-build."
92 @echo Deleting $(COMBO_PLT) in 5 seconds.
93 @echo
94 sleep 5
95 rm $(COMBO_PLT)
db66c33 import
justin authored
96
f788e94 Makefile targets to generate normalized release tarballs.
Ryan Tilder authored
97 # Release tarball creation
98 # Generates a tarball that includes all the deps sources so no checkouts are necessary
99
100 distdir:
9cf6421 Thinko repair
Ryan Tilder authored
101 $(if $(findstring tip,$(RIAK_TAG)),$(error "You can't generate a release tarball from tip"))
f788e94 Makefile targets to generate normalized release tarballs.
Ryan Tilder authored
102 mkdir distdir
02adc4e Make sure the dist target works with slightly older revisions of Merc…
Ryan Tilder authored
103 hg clone . distdir/riak-clone
104 cd distdir/riak-clone; \
105 hg update -r $(RIAK_TAG)
f788e94 Makefile targets to generate normalized release tarballs.
Ryan Tilder authored
106 cd distdir/riak-clone; \
107 hg archive ../$(RIAK_TAG); \
108 mkdir ../$(RIAK_TAG)/deps; \
109 make deps; \
110 for dep in deps/*; do cd $${dep} && hg archive ../../../$(RIAK_TAG)/$${dep}; cd ../..; done
111
112 dist $(RIAK_TAG).tar.gz: distdir
113 cd distdir; \
114 tar czf ../$(RIAK_TAG).tar.gz $(RIAK_TAG)
115
116 ballclean:
117 rm -rf $(RIAK_TAG).tar.gz distdir
37097ce @beerriot "test" make target, runs eunit on all modules named in riak.app
beerriot authored
118
Something went wrong with that request. Please try again.