arnaucube
arnaucube/comunicationLeapPublic Self-hosted repository
comunicationLeap/node_modules/debug/Makefile
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 dist
20
21dist:
22	@mkdir -p $@
23
24dist/debug.js: node_modules browser.js debug.js dist
25	@$(BROWSERIFY) \
26		--standalone debug \
27		. > $@
28
29distclean: clean
30	@rm -rf node_modules
31
32node_modules: package.json
33	@NODE_ENV= $(NPM) install
34	@touch node_modules
35
36.PHONY: all install clean distclean