-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
36 lines (26 loc) · 761 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
jshint = node_modules/.bin/jshint
mocha = node_modules/.bin/mocha
browserify = node_modules/.bin/browserify
bower = node_modules/.bin/bower
uglifyjs = node_modules/.bin/uglifyjs
test_min = ./test_min.sh
npm = npm
git = git
all: jshint mocha test_client/assert.js bower_components
min: rssi.min.js test_min
node_modules: package.json
@ $(npm) install
jshint: node_modules
@ $(jshint) rssi.js test/*.js usage/*.js
mocha: node_modules
@ $(mocha) -R spec
test_client/assert.js: node_modules
@ $(browserify) -r assert -s assert -o $@
bower_components: node_modules bower.json
@ $(bower) install
rssi.min.js: node_modules rssi.js
@ $(uglifyjs) rssi.js -c -m -o rssi.min.js
test_min: node_modules rssi.min.js
@ $(test_min)
clean:
@ $(git) clean -dfx