Rev 911 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)# BIN directoryBIN := $(THIS_DIR)/node_modules/.bin# applicationsNODE ?= $(shell which node)NPM ?= $(NODE) $(shell which npm)BROWSERIFY ?= $(NODE) $(BIN)/browserifyall: dist/debug.jsinstall: node_modulesclean:@rm -rf distdist:@mkdir -p $@dist/debug.js: node_modules browser.js debug.js dist@$(BROWSERIFY) \--standalone debug \. > $@distclean: clean@rm -rf node_modulesnode_modules: package.json@NODE_ENV= $(NPM) install@touch node_modules.PHONY: all install clean distclean