Skip to content

Commit

Permalink
update Makefile to download node
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Jenkinson committed Aug 15, 2017
1 parent 6e7a24d commit 4c43191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ sdk.js
node_modules
build
.tmp
/vendor/node
/*.worker.js
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dirs:
echo $(NPM_BIN)

clean:
rm -rf $(NODE_MODULES) $(BUILD_DIR)/* sdk.js
rm -rf $(NODE_MODULES) $(BUILD_DIR)/* sdk.js $(DEP)

vendor/audiomanager.js:
$(NPM_BIN) install @sc/audiomanager --registry=$(NPM_REGISTRY)
Expand All @@ -71,3 +71,7 @@ $(DESTDIR)/usr/lib/$(NODE)/bin/node: $(DEP)/node/$(OS)/$(NODE_VERSION).tar.gz
@mkdir -p $(@D)
tar xz -C $(DESTDIR)/usr/lib/$(NODE) --strip-components 1 -f $<
@touch $@

$(DEP)/node/$(OS)/$(NODE_VERSION).tar.gz:
http_proxy=$(PROXY) curl -q --create-dirs --fail --location https://nodejs.org/dist/v$(NODE_VERSION)/node-v$(NODE_VERSION)-linux-x64.tar.xz --output $@
@touch $@

0 comments on commit 4c43191

Please sign in to comment.