summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Laska <jlaska@ansible.com>2015-09-11 01:03:41 +0200
committerJames Laska <jlaska@ansible.com>2015-09-11 01:03:41 +0200
commit32cf468059aadd976dc6a23114b695ad3da18a32 (patch)
tree80a77ddaff64fb96b461b25fd9ad3c9660a1b6b1 /Makefile
parentSimplify GPG keys (diff)
downloadawx-32cf468059aadd976dc6a23114b695ad3da18a32.tar.xz
awx-32cf468059aadd976dc6a23114b695ad3da18a32.zip
Allow customizing npm path
So jenkins can use `npm --no-color`
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38f105a31f..9310c4db34 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ PACKER ?= packer
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
BROCCOLI ?= ./node_modules/.bin/broccoli
NODE ?= node
+NPM_BIN ?= npm
DEPS_SCRIPT ?= packaging/bundle/deps.py
AW_REPO_URL ?= "http://releases.ansible.com/ansible-tower"
@@ -193,7 +194,7 @@ real-requirements_dev:
# Install third-party requirements needed for running unittests in jenkins
real-requirements_jenkins:
pip install -r requirements/requirements_jenkins.txt
- npm install csslint jshint
+ $(NPM_BIN) install csslint jshint
# "Install" ansible-tower package in development mode.
develop:
@@ -345,7 +346,7 @@ sync_ui: node_modules Brocfile.js
# Update local npm install
node_modules: package.json
- npm install
+ $(NPM_BIN) install
touch $@
devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js