Skip to content

Commit 952e9a1

Browse files
author
Etienne Laurin
committed
cherry-pick some of the windows2 branch into windows
1 parent a1a3ccc commit 952e9a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ js-dependencies: $(JS_PKG_DIR)/node_modules
5858

5959
BLUEBIRD_MODULE_DIR := $(SUPPORT_BUILD_DIR)/bluebird_$(bluebird_VERSION)/node_modules/packed-bluebird/node_modules/bluebird
6060

61-
$(BLUEBIRD_MODULE_DIR): $(SUPPORT_BUILD_DIR)/bluebird_$(bluebird_VERSION)/install.witness
61+
$(BLUEBIRD_MODULE_DIR): $(SUPPORT_BUILD_DIR)/bluebird_$(bluebird_VERSION)/$(INSTALL_WITNESS)
6262
touch $@
6363

6464
$(JS_PKG_DIR)/node_modules: $(BLUEBIRD_MODULE_DIR) $(JS_PKG_DIR) | $(NPM_BIN_DEP)
@@ -69,8 +69,13 @@ $(JS_PKG_DIR)/node_modules: $(BLUEBIRD_MODULE_DIR) $(JS_PKG_DIR) | $(NPM_BIN_DEP
6969

7070
$(JS_BUILD_DIR)/rethinkdb.js: $(JS_PKG_DIR) $(JS_PKG_DIR)/node_modules | $(BROWSERIFY_BIN_DEP)
7171
$P BROWSERIFY
72+
ifeq (Windows, $(OS))
73+
cd $(JS_PKG_DIR) && \
74+
$(abspath $(BROWSERIFY)) --require ./rethinkdb:rethinkdb --ignore tls --outfile "$(shell cygpath -w "$(abspath $@)")"
75+
else
7276
cd $(JS_PKG_DIR) && \
7377
$(abspath $(BROWSERIFY)) --require ./rethinkdb:rethinkdb --ignore tls --outfile $(abspath $@)
78+
endif
7479

7580
.PHONY: js-driver
7681
js-driver: $(JS_BUILD_DIR)/rethinkdb.js

0 commit comments

Comments
 (0)