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 <[email protected]>
Authored: Mon Dec 23 18:18:03 2013 +0000
Committer: Robert Newson <[email protected]>
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)"

Reply via email to