Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 557 Bytes
ALL_TESTS = $(shell find tests -name '*.test.js')
ALL_SRC_FILES = $(shell find src -type f -name '*.h' -print -o -name '*.cc' -print | tr '\n' ' ')
REPORTER = spec
UI = bdd
all: build
lint-cpp:
@./tools/cpplint.py $(ALL_SRC_FILES)
test:
@./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--ui $(UI) \
--growl \
$(ALL_TESTS)
clean:
@node-gyp clean
build: clean
@node-gyp rebuild -r
build-debug: clean
@node-gyp rebuild -d
.PHONY: test clean