loopback-datasource-juggler/Makefile

34 lines
811 B
Makefile
Raw Normal View History

2013-03-23 18:50:01 +00:00
# doc:
# makedoc lib/abstract-class.js lib/schema.js lib/validatable.js -t "JugglingDB API docs"
2011-11-05 10:54:52 +00:00
2011-11-05 11:04:53 +00:00
test:
2013-03-19 10:05:26 +00:00
@./node_modules/.bin/mocha --require should test/*.test.js
2011-11-05 10:54:52 +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 $< $@
docs/html/%.3.html: docs/%.md scripts/doc.sh
scripts/doc.sh $< $@
docs/html/index.html: docs/jugglingdb.md scripts/doc.sh
scripts/doc.sh $< $@
man: $(MAN_DOCS)
html: $(HTML_DOCS)
release: man
web: html
rsync ./docs/html/* jugglingdb.co:/var/www/apps/jugglingdb.co/public
.PHONY: test docs