Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / dgbuilder / dgeflows / node_modules / debug / Makefile
1
2 # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3 THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4 THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5
6 # BIN directory
7 BIN := $(THIS_DIR)/node_modules/.bin
8
9 # applications
10 NODE ?= $(shell which node)
11 NPM ?= $(NODE) $(shell which npm)
12 BROWSERIFY ?= $(NODE) $(BIN)/browserify
13
14 all: dist/debug.js
15
16 install: node_modules
17
18 clean:
19         @rm -rf node_modules dist
20
21 dist:
22         @mkdir -p $@
23
24 dist/debug.js: node_modules browser.js debug.js dist
25         @$(BROWSERIFY) \
26                 --standalone debug \
27                 . > $@
28
29 node_modules: package.json
30         @NODE_ENV= $(NPM) install
31         @touch node_modules
32
33 .PHONY: all install clean