Description: Generalise Makefile
 Allow Makefile to use system-installed mocha
Author: Ximin Luo <infinity0@debian.org>
Forwarded: https://github.com/websockets/ws/pull/671
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 ALL_TESTS = $(shell find test/ -name '*.test.js')
 ALL_INTEGRATION = $(shell find test/ -name '*.integration.js')
+MOCHA = ./node_modules/.bin/mocha
 
 all:
 	node-gyp configure build
@@ -8,14 +9,14 @@
 	node-gyp clean
 
 run-tests:
-	@./node_modules/.bin/mocha \
+	@$(MOCHA) \
 		-t 5000 \
 		-s 2400 \
 		$(TESTFLAGS) \
 		$(TESTS)
 
 run-integrationtests:
-	@./node_modules/.bin/mocha \
+	@$(MOCHA) \
 		-t 5000 \
 		-s 6000 \
 		$(TESTFLAGS) \
