chai/Makefile
2011-12-26 13:19:22 -05:00

29 lines
No EOL
456 B
Makefile

TESTS = test/*.js
REPORTER = dot
SRC = $(shell find lib -name "*.js" -type f)
all: chai.js
chai.js: $(SRC)
@node support/compile $^
clean:
rm -f chai.js
docs: clean-docs
@./node_modules/.bin/codex build docs \
--out docs/out
@./node_modules/.bin/codex serve \
--out docs/out
clean-docs:
@rm -rf docs/out
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--ui tdd \
$(TESTS)
.PHONY: clean test docs clean-docs