corrade-nucleus-nucleons – Blame information for rev 36

Subversion Repositories:
Rev:
Rev Author Line No. Line
36 office 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 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 distclean: clean
30 @rm -rf node_modules
31  
32 node_modules: package.json
33 @NODE_ENV= $(NPM) install
34 @touch node_modules
35  
36 .PHONY: all install clean distclean