forked from greybax/cordova-plugin-proguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 770 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
NODE_MODULES?=node_modules
help:
@echo ""
@echo "Usage: make <target>"
@echo ""
@echo "available targets:"
@echo " tests ............. Run all tests."
@echo " test-js ........... Test javascript files for errors."
@echo " test-install ...... Test plugin installation Android."
@echo ""
@echo ""
test-js: jshint
jshint: check-jshint
@echo "- JSHint"
@${NODE_MODULES}/.bin/jshint --config .jshintrc scripts/*.js
@echo " Done"
@echo ""
test-install:
@./test/run.sh com.graybax.progplugintest progplugintest
tests: jshint test-install
@echo 'ok'
check-jshint:
@test -e "${NODE_MODULES}/.bin/jshint" || ( echo "${NODE_MODULES} not found."; echo 'Please install dependencies: npm install'; exit 1 )
clean:
@find . -name '*~' -exec rm '{}' ';'