| 1 | INSTALL_STAMP=.install.stamp |
| 2 | |
| 3 | all: install |
| 4 | install: $(INSTALL_STAMP) |
| 5 | |
| 6 | $(INSTALL_STAMP): |
| 7 | npm install |
| 8 | touch $(INSTALL_STAMP) |
| 9 | |
| 10 | test: install |
| 11 | @./node_modules/mocha-phantomjs/bin/mocha-phantomjs test/index.html |
| 12 | |
| 13 | docs: install |
| 14 | @./node_modules/jsdoc/jsdoc -d ./docs/ dist/ README.md |
| 15 | |
| 16 | clean: |
| 17 | rm -rf node_modules/ $(INSTALL_STAMP) |
| 18 | |
| 19 | .PHONY: test docs |