Skip to content

Commit

Permalink
Allow passing $NODE to Make.
Browse files Browse the repository at this point in the history
  • Loading branch information
moll committed Sep 1, 2015
1 parent 2a449a5 commit e10d564
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
NODE = node
NODE_OPTS =
TEST_OPTS =

love:
@echo "Feel like makin' love."

test:
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)

spec:
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
spec:
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)

autotest:
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)

autospec:
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
@$(NODE) $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)

pack:
@file=$$(npm pack); echo "$$file"; tar tf "$$file"
Expand All @@ -23,7 +24,7 @@ publish:
npm publish

tag:
git tag "v$$(node -e 'console.log(require("./package").version)')"
git tag "v$$($(NODE) -e 'console.log(require("./package").version)')"

clean:
rm -f *.tgz
Expand Down

0 comments on commit e10d564

Please sign in to comment.