diff options
author | Mark Hammond <mhammond@apache.org> | 2009-10-17 03:30:05 +0000 |
---|---|---|
committer | Mark Hammond <mhammond@apache.org> | 2009-10-17 03:30:05 +0000 |
commit | ad18ea644ee7650425320736b10a48a8cbd0d340 (patch) | |
tree | 4df70f314eee22dc3f7bb266c3f1b295143b0f45 /src/couchdb/Makefile.am | |
parent | 2df3fabfdc2039504295219c88e0d160f76c1afb (diff) |
have 'make dist' build a windows installer on windows
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826173 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/Makefile.am')
-rw-r--r-- | src/couchdb/Makefile.am | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/couchdb/Makefile.am b/src/couchdb/Makefile.am index 2fc2340a..2459ca8f 100644 --- a/src/couchdb/Makefile.am +++ b/src/couchdb/Makefile.am @@ -40,9 +40,6 @@ couchjs_LDADD = $(CURL_LDFLAGS) @JSLIB@ if WINDOWS couch_erl_driver_la_LDFLAGS += -no-undefined -# copy ICU dlls for the erlang driver -#dist_couch_erl_driver_la_DATA=$(ICU_LOCAL_BIN)/icuuc42.dll $(ICU_LOCAL_BIN)/icudt42.dll $(ICU_LOCAL_BIN)/icuin42.dll -couch_erl_driver_ladir=$(bindir) endif couchinclude_DATA = couch_db.hrl @@ -196,16 +193,28 @@ compiled_files = \ # couch_util.html \ # couch_view.html +if WINDOWS couch.app: couch.app.tpl modules=`find . -name "couch*.erl" -exec basename {} .erl \; | tr '\n' ',' | sed "s/,$$//"`; \ sed -e "s|%package_name%|@package_name@|g" \ -e "s|%version%|@version@|g" \ -e "s|@modules@|$$modules|g" \ + -e "s|%localconfdir%|../etc/couchdb|g" \ + -e "s|@defaultini@|default.ini|g" \ + -e "s|@localini@|local.ini|g" > \ + $@ < $< +else +couch.app: couch.app.tpl + modules=`find . -name "*.erl" -exec basename {} .erl \; | tr '\n' ',' | sed "s/,$$//"`; \ + sed -e "s|%package_name%|@package_name@|g" \ + -e "s|%version%|@version@|g" \ + -e "s|@modules@|$$modules|g" \ -e "s|%localconfdir%|@localconfdir@|g" \ -e "s|@defaultini@|default.ini|g" \ -e "s|@localini@|local.ini|g" > \ $@ < $< chmod +x $@ +endif # $(dist_devdoc_DATA): edoc-info @@ -220,6 +229,12 @@ install-data-hook: cd "$(DESTDIR)$(couchprivlibdir)" && \ $(LN_S) couch_erl_driver couch_erl_driver.so; \ fi +if WINDOWS + $(INSTALL) $(ICU_LOCAL_BIN)/icuuc42.dll $(bindir) + $(INSTALL) $(ICU_LOCAL_BIN)/icudt42.dll $(bindir) + $(INSTALL) $(ICU_LOCAL_BIN)/icuin42.dll $(bindir) + $(INSTALL) $(JS_LIB_BINARY) $(bindir) +endif uninstall-local: if test -f "$(DESTDIR)$(couchprivlibdir)/couch_erl_driver"; then \ |