You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
477 B
Makefile
27 lines
477 B
Makefile
ifeq "" "$(shell which npm)"
|
|
default:
|
|
@echo "Please install node.js"
|
|
@echo "Visit http://nodejs.org/ for more details"
|
|
exit 1
|
|
else
|
|
default: run
|
|
endif
|
|
|
|
NODE_MODULES=.npm-updated
|
|
$(NODE_MODULES): package.json
|
|
npm install
|
|
@touch $@
|
|
|
|
node_modules: $(NODE_MODULES)
|
|
|
|
clean:
|
|
rm -rf node_modules
|
|
.PHONY: clean run
|
|
|
|
run: node_modules
|
|
./node_modules/.bin/supervisor ./app.js
|
|
|
|
run-amazon: node_modules
|
|
$(MAKE) -C c-preload
|
|
./node_modules/.bin/supervisor -- ./app.js --env amazon
|