diff options
Diffstat (limited to 'etc/couchdb/Makefile.am')
-rw-r--r-- | etc/couchdb/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/couchdb/Makefile.am b/etc/couchdb/Makefile.am index f66a1906..90925465 100644 --- a/etc/couchdb/Makefile.am +++ b/etc/couchdb/Makefile.am @@ -14,9 +14,9 @@ couchprivlibdir = $(localerlanglibdir)/couch-$(version)/priv/lib devcouchprivlibdir = $(abs_top_srcdir)/src/couchdb/.libs localconf_DATA = default.ini -noinst_DATA = default_dev.ini +noinst_DATA = default_dev.ini local_dev.ini -EXTRA_DIST = local.ini local_dev.ini +EXTRA_DIST = local.ini CLEANFILES = $(localconf_DATA) $(noinst_DATA) @@ -44,6 +44,11 @@ default_dev.ini: default.ini.tpl -e "s|%couchjs_command_name%|$(couchjs_dev_command_name)|g" \ < $< > $@ +local_dev.ini: local.ini + if test ! -f "$@"; then \ + cp $< $@; \ + fi + install-data-hook: if test ! -f "$(DESTDIR)/$(localconfdir)/local.ini"; then \ cp $(srcdir)/local.ini "$(DESTDIR)/$(localconfdir)/local.ini"; \ |