2013-03-24 21:22:23 +00:00
|
|
|
## TESTS
|
2011-11-05 10:54:52 +00:00
|
|
|
|
2013-03-24 21:22:23 +00:00
|
|
|
TESTER = ./node_modules/.bin/mocha
|
2013-03-27 17:12:29 +00:00
|
|
|
OPTS = --require ./test/init.js --growl
|
2013-03-24 21:22:23 +00:00
|
|
|
TESTS = test/*.test.js
|
2011-11-05 10:54:52 +00:00
|
|
|
|
2013-03-24 21:22:23 +00:00
|
|
|
test:
|
|
|
|
$(TESTER) $(OPTS) $(TESTS)
|
2013-03-24 13:37:13 +00:00
|
|
|
test-verbose:
|
2013-03-24 21:22:23 +00:00
|
|
|
$(TESTER) $(OPTS) --reporter spec $(TESTS)
|
|
|
|
testing:
|
|
|
|
$(TESTER) $(OPTS) --watch $(TESTS)
|
|
|
|
|
|
|
|
## DOCS
|
2013-03-24 13:37:13 +00:00
|
|
|
|
2013-03-23 18:50:01 +00:00
|
|
|
MAN_DOCS = $(shell find docs -name '*.md' \
|
|
|
|
|sed 's|.md|.3|g' \
|
|
|
|
|sed 's|docs/|docs/man/|g' )
|
|
|
|
|
|
|
|
HTML_DOCS = $(shell find docs -name '*.md' \
|
|
|
|
|sed 's|.md|.3.html|g' \
|
|
|
|
|sed 's|docs/|docs/html/|g' ) \
|
|
|
|
docs/html/index.html
|
|
|
|
|
|
|
|
docs/man/%.3: docs/%.md scripts/doc.sh
|
|
|
|
scripts/doc.sh $< $@
|
|
|
|
|
2013-03-26 00:40:16 +00:00
|
|
|
docs/html/%.3.html: docs/%.md scripts/doc.sh docs/footer.html
|
2013-03-23 18:50:01 +00:00
|
|
|
scripts/doc.sh $< $@
|
|
|
|
|
2013-03-26 19:34:01 +00:00
|
|
|
docs/html/index.html: docs/jugglingdb.md scripts/doc.sh docs/footer.html
|
2013-03-23 18:50:01 +00:00
|
|
|
scripts/doc.sh $< $@
|
|
|
|
|
|
|
|
man: $(MAN_DOCS)
|
|
|
|
html: $(HTML_DOCS)
|
|
|
|
|
2013-03-25 11:42:39 +00:00
|
|
|
build: man
|
2013-03-23 18:50:01 +00:00
|
|
|
|
|
|
|
web: html
|
|
|
|
rsync ./docs/html/* jugglingdb.co:/var/www/apps/jugglingdb.co/public
|
|
|
|
|
|
|
|
.PHONY: test docs
|