You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/02/03 14:00:00 UTC

[21/27] couchdb commit: updated refs/heads/1843-feature-bigcouch to 465d1ad

add install target to Makefile


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/633726a5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/633726a5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/633726a5

Branch: refs/heads/1843-feature-bigcouch
Commit: 633726a589cc76a26f8e99e3359b7a24e77fda5f
Parents: 06a07d2
Author: Robert Newson <rn...@apache.org>
Authored: Mon Dec 23 18:18:03 2013 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Feb 3 12:54:10 2014 +0000

----------------------------------------------------------------------
 Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/633726a5/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index b90d957..69ae8cf 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,17 @@ dist: compile
 distclean: clean
 	@rm -rf rel/couchdb
 
+include install.mk
+install: dist
+	@mkdir -p $(prefix)
+	@cp -R rel/couchdb/* $(prefix)
+	@mkdir -p $(data_dir)
+	@chown $(user) $(data_dir)
+	@mkdir -p $(view_dir)
+	@chown $(user) $(view_dir)
+	@touch $(prefix)/var/log/couchdb.log
+	@chown $(user) $(prefix)/var/log/couchdb.log
+
 dev: compile
 	@rm -rf rel/dev1 rel/dev2 rel/dev3
 	@echo "==> Building development node #1 (ports 15984/15986)"