Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 53 lines (38 sloc) 1.156 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

PREFIX ?= /usr/local
BIN = bin/expresso
JSCOV = deps/jscoverage/node-jscoverage
DOCS = docs/index.md
HTMLDOCS = $(DOCS:.md=.html)

test: $(BIN)
@./$(BIN) --growl $(TEST_FLAGS)

test-cov:
@./$(BIN) -I lib --cov $(TEST_FLAGS)

test-serial:
@./$(BIN) --serial $(TEST_FLAGS) test/serial/*.test.js

install: install-jscov install-expresso

uninstall:
rm -f $(PREFIX)/bin/expresso
rm -f $(PREFIX)/bin/node-jscoverage

install-jscov: $(JSCOV)
install $(JSCOV) $(PREFIX)/bin

install-expresso:
install $(BIN) $(PREFIX)/bin

$(JSCOV):
cd deps/jscoverage && ./configure && make && mv jscoverage node-jscoverage

clean:
@cd deps/jscoverage && git clean -fd

docs: docs/api.html $(HTMLDOCS)

%.html: %.md
@echo "... $< > $@"
@ronn --html $< \
| cat docs/layout/head.html - docs/layout/foot.html \
> $@

docs/api.html: bin/expresso
dox \
--title "Expresso" \
--ribbon "http://github.com/visionmedia/expresso" \
--desc "Insanely fast TDD framework for [node](http://nodejs.org) featuring code coverage reporting." \
$< > $@

docclean:
rm -f docs/*.html

.PHONY: test test-cov install uninstall install-expresso install-jscov clean docs docclean
Something went wrong with that request. Please try again.