| ifeq "" "$(shell which npm)" |
| @echo "Please install node.js" |
| @echo "Visit http://nodejs.org/ for more details" |
| @echo "On Ubuntu/Debian try: sudo apt-get install nodejs npm" |
| NODE:= $(shell which node || which nodejs) |
| .PHONY: clean run test run-amazon c-preload optional-d-support prereqs |
| prereqs: optional-d-support node_modules c-preload |
| ifeq "" "$(shell which gdc)" |
| @echo "D language support disabled" |
| NODE_MODULES=.npm-updated |
| $(NODE_MODULES): package.json |
| node_modules: $(NODE_MODULES) |
| (cd test; $(NODE) test.js) |
| $(MAKE) -C c-preload test |
| rm -rf node_modules .npm-updated |
| run: node_modules optional-d-support c-preload |
| $(NODE) ./node_modules/.bin/supervisor -e 'js|node|properties' --exec $(NODE) -- ./app.js --language $(LANG) |