summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-23 23:19:25 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-23 23:40:54 -0400
commit264cb29e3014acdece32f2e0167b060e22fc9060 (patch)
treeda13ba61314008eef97c53e6b17cca926725602d /Makefile
parenta70b91c1ba2101b8d8bb9141af13c50b362d6ba5 (diff)
no more rebar templates in configure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..d80f5fbe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+all: compile
+
+compile:
+ @echo "==> couchjs (compile)"
+ @cd couchjs && python scons/scons.py
+ @./rebar compile
+
+clean:
+ @echo "==> couchjs (clean)"
+ @cd couchjs && python scons/scons.py --clean
+ @./rebar clean
+
+check:
+ @./rebar eunit
+ @ERL_LIBS="`pwd`/apps" prove apps/couch/test/etap/*.t
+
+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
+
+include install.mk
+install: dist
+ @mkdir -p $(prefix)
+ @cp -R rel/dbcore/* $(prefix)
+ @mkdir -p $(data_dir)
+ @chown $(user) $(data_dir)
+ @mkdir -p $(view_dir)
+ @chown $(user) $(view_dir)