Allow customizing grunt cli options

Automation can now set GRUNT to provide a path to a specific grunt binary, or
to add grunt parameters.  For example, to disable color output during a Jenkins
build:

    GRUNT="grunt --no-color" make lintjs
This commit is contained in:
James Laska 2014-03-06 08:56:02 -05:00
parent 93bd1d859a
commit 4dcc6938dd

View File

@ -1,6 +1,7 @@
PYTHON=python
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
PACKER ?= packer
GRUNT ?= grunt
# Get the branch information from git
GIT_DATE := $(shell git log -n 1 --format="%ai")
@ -152,11 +153,11 @@ node_modules: package.json
# Build minified JS/CSS.
minjs: node_modules
grunt
$(GRUNT)
# Check .js files for errors and lint
lintjs: node_modules
grunt jshint
$(GRUNT) jshint
# Build a pip-installable package into dist/ with a timestamped version number.
dev_build: