Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 40 lines (30 sloc) 0.849 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

NODE = node
TEST = support/expresso/bin/expresso
TESTS ?= test/*.test.js
PREFIX = /usr/local
LIB_PREFIX = $(HOME)/.node_libraries

test:
@NODE_ENV=test ./$(TEST) \
-I lib \
-I support/coffee-script/lib \
-I support/sass/lib \
-I support/less/lib \
$(TEST_FLAGS) $(TESTS)

test-cov:
@$(MAKE) test TEST_FLAGS="--cov"

install:
cp -fr lib/connect $(LIB_PREFIX)/connect

uninstall:
rm -f $(PREFIX)/share/man/man1/connect.1
rm -f $(PREFIX)/share/man/man1/connect-*.1
rm -fr $(LIB_PREFIX)/connect

benchmark: benchmarks/run
@./benchmarks/run

graphs: benchmarks/graph
@./benchmarks/graph

docs: docs/api.html

docs/api.html:
dox --title Connect \
--desc "High performance middleware for [node](http://nodejs.org)." \
$(shell find lib/connect/middleware/* -type f) > $@

.PHONY: install uninstall docs test test-cov benchmark graphs
Something went wrong with that request. Please try again.