blob: 62797111cc50a59c51ebace6dd44a6ab7f6c0660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
all: compile
compile:
@ERL_LIBS="`pwd`/apps" ./rebar compile
@echo "==> couchjs (compile)"
@cd couchjs && python scons/scons.py
clean:
@./rebar clean
check: compile
@ERL_LIBS="`pwd`/apps" ./rebar eunit
@ERL_LIBS="`pwd`/apps" prove apps/couch/test/etap/*.t
compilenative:
@./rebar compile erl_opts=native
dist: compile
@rm -rf rel/dbcore
@./rebar generate
@mkdir -p rel/dbcore/var/share/server
@cp couchjs/build/main.js rel/dbcore/var/share/server/
@cp couchjs/build/couchjs rel/dbcore/bin/
distclean: clean
@rm -rf rel/dbcore
@rm -f rel/overlay/etc/default.ini
@rm -f rel/overlay/erts-vsn/bin/erl_call
install: dist
@mkdir -p {{prefix}}/dbcore/
@cp -R rel/dbcore/* {{prefix}}/dbcore/
@mkdir -p {{data}}
@chown {{user}} {{data}}
@mkdir -p {{view}}
@chown {{user}} {{view}}
|