arnaucube
arnaucube/socketioMEANseedPublic Self-hosted repository
socketioMEANseed/server/node_modules/debug/Makefile
server/node_modules/debug/MakefileRaw
 1
 2# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
 3THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
 4THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
 5
 6# BIN directory
 7BIN := $(THIS_DIR)/node_modules/.bin
 8
 9# applications
10NODE ?= $(shell which node)
11NPM ?= $(NODE) $(shell which npm)
12BROWSERIFY ?= $(NODE) $(BIN)/browserify
13
14all: dist/debug.js
15
16install: node_modules
17
18clean:
19	@rm -rf node_modules dist
20
21dist:
22	@mkdir -p $@
23
24dist/debug.js: node_modules browser.js debug.js dist
25	@$(BROWSERIFY) \
26		--standalone debug \
27		. > $@
28
29node_modules: package.json
30	@NODE_ENV= $(NPM) install
31	@touch node_modules
32
33.PHONY: all install clean