Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (37 sloc) 1.097 kB
NODE = node
TEST = support/expresso/bin/expresso
TESTS ?= test/*.test.js
PREFIX = /usr/local
test:
@CONNECT_ENV=test ./$(TEST) -I lib -I support/sass/lib $(TEST_FLAGS) $(TESTS)
test-cov:
@$(MAKE) test TEST_FLAGS="--cov"
install: install-docs
cp -f bin/connect $(PREFIX)/bin/connect
uninstall:
rm -f $(PREFIX)/share/man/man1/connect.1
rm -f $(PREFIX)/bin/connect
install-docs: docs/api.1
cp -f $< $(PREFIX)/share/man/man1/connect.1
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 --pipe --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
site:
cp docs/api.html /tmp/connect.index.html && \
git checkout gh-pages && \
cp /tmp/connect.index.html index.html && \
git commit -a -m 'Updated index.html' && \
git checkout master
.PHONY: install uninstall docs test test-cov benchmark graphs docclean site install-docs
Jump to Line
Something went wrong with that request. Please try again.