2011-12-07 06:10:15 +00:00
|
|
|
|
2011-12-15 10:28:16 +00:00
|
|
|
TESTS = test/*.js
|
|
|
|
REPORTER = dot
|
2011-12-07 06:10:15 +00:00
|
|
|
SRC = $(shell find lib -name "*.js" -type f)
|
|
|
|
|
|
|
|
all: chai.js
|
|
|
|
|
|
|
|
chai.js: $(SRC)
|
|
|
|
@node support/compile $^
|
|
|
|
|
|
|
|
clean:
|
2011-12-15 10:28:16 +00:00
|
|
|
rm -f chai.js
|
|
|
|
|
2011-12-15 22:49:13 +00:00
|
|
|
docs: clean-docs
|
|
|
|
@./node_modules/.bin/codex build docs \
|
|
|
|
--out docs/out
|
|
|
|
@./node_modules/.bin/codex serve \
|
2011-12-16 11:15:00 +00:00
|
|
|
--out docs/out
|
2011-12-15 22:49:13 +00:00
|
|
|
|
|
|
|
clean-docs:
|
|
|
|
@rm -rf docs/out
|
|
|
|
|
2011-12-15 10:28:16 +00:00
|
|
|
test:
|
|
|
|
@NODE_ENV=test ./node_modules/.bin/mocha \
|
|
|
|
--reporter $(REPORTER) \
|
|
|
|
--ui exports \
|
|
|
|
$(TESTS)
|
|
|
|
|
2011-12-15 22:49:13 +00:00
|
|
|
.PHONY: clean test docs clean-docs
|