From efe07f99d52d1c5979340e4f79a80abf19b1c710 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Thu, 23 Oct 2008 21:41:37 +0000 Subject: Add `make dev` target. Use `./utils/run` to launch CouchDB from the source tree and without `make install`. Useful for development. Patch my Hunter Morris, thanks! Closes COUCHDB-114. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@707480 13f79535-47bb-0310-9956-ffa450edef68 --- etc/couchdb/Makefile.am | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'etc/couchdb/Makefile.am') diff --git a/etc/couchdb/Makefile.am b/etc/couchdb/Makefile.am index baf588ea..2910fe2f 100644 --- a/etc/couchdb/Makefile.am +++ b/etc/couchdb/Makefile.am @@ -11,14 +11,17 @@ ## under the License. couchprivlibdir = $(localerlanglibdir)/couch-$(version)/priv/lib +devcouchprivlibdir = $(abs_top_srcdir)/src/couchdb/.libs localconf_DATA = default.ini EXTRA_DIST = local.ini +noinst_DATA = default_dev.ini -CLEANFILES = $(localconf_DATA) +CLEANFILES = $(localconf_DATA) $(noinst_DATA) transform = @program_transform_name@ couchjs_command_name = `echo couchjs | sed '$(transform)'` +couchjs_dev_command_name = `echo couchjs_dev | sed '$(transform)'` default.ini: default.ini.tpl sed -e "s|%bindir%|$(bindir)|g" \ @@ -30,6 +33,16 @@ default.ini: default.ini.tpl -e "s|%couchjs_command_name%|$(couchjs_command_name)|g" \ < $< > $@ +default_dev.ini: default.ini.tpl + sed -e "s|%bindir%|$(abs_top_srcdir)/bin|g" \ + -e "s|%localconfdir%|$(abs_top_srcdir)/etc/couchdb|g" \ + -e "s|%localdatadir%|$(abs_top_srcdir)/share|g" \ + -e "s|%localstatelibdir%|$(abs_top_srcdir)/tmp/lib|g" \ + -e "s|%localstatelogdir%|$(abs_top_srcdir)/tmp/log|g" \ + -e "s|%couchprivlibdir%|$(devcouchprivlibdir)|g" \ + -e "s|%couchjs_command_name%|$(couchjs_dev_command_name)|g" \ + < $< > $@ + install-data-hook: if test ! -f "$(DESTDIR)/$(localconfdir)/local.ini"; then \ cp local.ini "$(DESTDIR)/$(localconfdir)/local.ini"; \ -- cgit v1.2.3