Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (30 sloc) 815 Bytes
NODE = node
TEST = support/expresso/bin/expresso
TESTS ?= test/*.test.js
PREFIX = /usr/local
test:
@CONNECT_ENV=test ./$(TEST) -I lib $(TEST_FLAGS) $(TESTS)
test-cov:
@$(MAKE) test TEST_FLAGS="--cov"
install: docs
cp -f docs/api.1 $(PREFIX)/man/man1/connect.1
cp -f bin/connect $(PREFIX)/bin/connect
uninstall:
rm -f $(PREFIX)/man/man1/connect.1
rm -f $(PREFIX)/bin/connect
benchmark: benchmarks/run
@./benchmarks/run
graphs: benchmarks/graph
@./benchmarks/graph
docs: docs/api.1 docs/api.html
docs/api.1: docs/api.md
ronn -r $< > $@
docs/api.html: docs/api.md
ronn -5 --fragment $< \
| cat docs/api.head.html - docs/api.foot.html \
| sed 's/NAME/Connect/g' \
> $@
docclean:
rm -f docs/api.html
rm -f docs/api.1
.PHONY: install uninstall docs test test-cov benchmark graphs docclean
Something went wrong with that request. Please try again.