Make grunt path a variable and make other vars overridable

This commit is contained in:
JC Brand 2015-01-18 19:10:22 +01:00
parent 9c0feea10a
commit 6aa38952ab

View File

@ -1,12 +1,13 @@
# You can set these variables from the command line. # You can set these variables from the command line.
BOWER ?= node_modules/.bin/bower BOWER ?= ./node_modules/.bin/bower
BUILDDIR = ./docs BUILDDIR = ./docs
PAPER = PAPER =
PHANTOMJS ?= node_modules/.bin/phantomjs PHANTOMJS ?= ./node_modules/.bin/phantomjs
SPHINXBUILD ?= ./bin/sphinx-build SPHINXBUILD ?= ./bin/sphinx-build
SPHINXOPTS = SPHINXOPTS =
PO2JSON ?= node_modules/.bin/po2json PO2JSON ?= ./node_modules/.bin/po2json
SASS ?= sass SASS ?= sass
GRUNT ?= ./node_modules/.bin/grunt
# Internal variables. # Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source
@ -52,7 +53,7 @@ jsmin:
./node_modules/requirejs/bin/r.js -o src/build.js && ./node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-website.js ./node_modules/requirejs/bin/r.js -o src/build.js && ./node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-website.js
cssmin: cssmin:
grunt cssmin $(GRUNT) cssmin
release: release:
sed -i s/Project-Id-Version:\ Converse\.js\ [0-9]\.[0-9]\.[0-9]/Project-Id-Version:\ Converse.js\ $(VERSION)/ locale/converse.pot sed -i s/Project-Id-Version:\ Converse\.js\ [0-9]\.[0-9]\.[0-9]/Project-Id-Version:\ Converse.js\ $(VERSION)/ locale/converse.pot
@ -95,8 +96,8 @@ css::
${SASS} sass/converse.scss > css/converse.css ${SASS} sass/converse.scss > css/converse.css
build:: build::
./node_modules/.bin/grunt jst $(GRUNT) jst
./node_modules/.bin/grunt minify $(GRUNT) minify
######################################################################## ########################################################################
## Tests ## Tests