Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / method-override / 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 YARN ?= $(shell which yarn)
12 PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13 BROWSERIFY ?= $(NODE) $(BIN)/browserify
14
15 all: dist/debug.js
16
17 install: node_modules
18
19 clean:
20         @rm -rf dist
21
22 dist:
23         @mkdir -p $@
24
25 dist/debug.js: node_modules browser.js debug.js dist
26         @$(BROWSERIFY) \
27                 --standalone debug \
28                 . > $@
29
30 distclean: clean
31         @rm -rf node_modules
32
33 node_modules: package.json
34         @NODE_ENV= $(PKG) install
35         @touch node_modules
36
37 .PHONY: all install clean distclean