Skip to content

Instantly share code, notes, and snippets.

@rouge8
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rouge8/9491763 to your computer and use it in GitHub Desktop.
Save rouge8/9491763 to your computer and use it in GitHub Desktop.
Makefile path weirdness
node_modules
vagrant@precise64:/rouge8/tmp/makewtf$ make test
npm install --silent --no-color
echo /bin/sh
/bin/sh
which karma
node_modules/.bin/karma
karma --version
Karma version: 0.12.0
export PATH := node_modules/.bin:$(PATH)
export SHELL := /bin/bash
.PHONY: test install-deps
install-deps:
npm install --silent --no-color
test: install-deps
echo $(SHELL)
which karma
karma --version
$ make test
npm install --silent --no-color
echo /bin/sh
/bin/sh
which karma
node_modules/.bin/karma
karma --version
make: karma: No such file or directory
make: *** [test] Error 1
{
"name": "makewtf",
"version": "0.0.0",
"description": "",
"devDependencies": {
"karma-cli": "0.0.3",
"karma": "^0.12.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment