Skip to content

Instantly share code, notes, and snippets.

@jmar777
Created December 6, 2011 21:25
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 jmar777/1440075 to your computer and use it in GitHub Desktop.
Save jmar777/1440075 to your computer and use it in GitHub Desktop.
Broken Makefile
.PHONY: clean install test test-tap test-api
clean:
rm ./test/results.tap
install:
npm install
test:
mocha -R list
test-tap:
mocha -R tap > ./test/results.tap
test-api:
NODE_ENV='test-api' node app.js &
PID=$!
mocha -R list ./test-api/rest-api.js
kill $PID
$ make test-api
NODE_ENV='test-api' node app.js &
PID=
mocha -R list ./test-api/rest-api.js
kill ID
kill: illegal process id: ID
make: *** [test-api] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment