You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/07/22 07:29:33 UTC

[16/50] couchdb commit: updated refs/heads/developer-preview-2.0 to 2a31bca

re-introduce DESTDIR


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

Branch: refs/heads/developer-preview-2.0
Commit: 3f30eeb9af93c0eecc487799e89f502fa032efc1
Parents: 9b2dfb4
Author: Jan Lehnardt <ja...@apache.org>
Authored: Wed Jun 3 21:56:19 2015 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Jun 24 23:06:56 2015 +0200

----------------------------------------------------------------------
 Makefile | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3f30eeb9/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 47e73a0..8815140 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,8 @@ IN_RELEASE = $(shell if [ ! -d .git ]; then echo true; fi)
 COUCHDB_VERSION_SUFFIX = $(shell if [ -d .git ]; then echo '-`git rev-parse --short --verify HEAD`'; fi)
 COUCHDB_VERSION = $(vsn_major).$(vsn_minor).$(vsn_patch)$(COUCHDB_VERSION_SUFFIX)
 
+DESTDIR=
+
 all: couch fauxton
 
 config.erl:
@@ -83,20 +85,22 @@ devclean:
 
 -include install.mk
 install: all
+	@echo "Installing CouchDB into $(DESTDIR)/$(install_dir)..." | sed -e 's,///,/,'
 	@rm -rf rel/couchdb
 	@rebar generate # make full erlang release
-	@mkdir -p $(install_dir)
-	@cp -R rel/couchdb/* $(install_dir)
-	@mkdir -p $(data_dir)
-	@chown $(user) $(data_dir)
-	@mkdir -p $(view_index_dir)
-	@chown $(user) $(view_index_dir)
-	@mkdir -p `dirname $(log_file)`
-	@touch $(log_file)
-	@chown $(user) $(log_file)
+	@mkdir -p $(DESTDIR)/$(install_dir)
+	@cp -R rel/couchdb/* $(DESTDIR)/$(install_dir)
+	@mkdir -p $(DESTDIR)/$(data_dir)
+	@chown $(user) $(DESTDIR)/$(data_dir)
+	@mkdir -p $(DESTDIR)/$(view_index_dir)
+	@chown $(user) $(DESTDIR)/$(view_index_dir)
+	@mkdir -p $(DESTDIR)/`dirname $(log_file)`
+	@touch $(DESTDIR)/$(log_file)
+	@chown $(user) $(DESTDIR)/$(log_file)
+	@echo "...done"
 
 uninstall:
-	@rm -rf $(install_dir)
+	@rm -rf $(DESTDIR)/$(install_dir)
 
 install.mk:
 # ignore install.mk missing if we are running