summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-01-07 05:34:05 (EST)
committer P. J. McDermott <pj@pehjota.net>2017-01-07 05:37:52 (EST)
commit7d52437ac01662984363f696e481aeff30aabae4 (patch)
tree1d3ec538ce3e9cebf4d6810ab11cfd528d3c3426 /Makefile
parenta0c1c1b2fc2a551508c72b09b4d3a29561931019 (diff)
downloaddecmath.js-7d52437ac01662984363f696e481aeff30aabae4.zip
decmath.js-7d52437ac01662984363f696e481aeff30aabae4.tar.gz
decmath.js-7d52437ac01662984363f696e481aeff30aabae4.tar.bz2
Makefile: Allow mocha reporter to be overridden
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 863114b..ca6e5d3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,12 @@
+V = 0
+REPORTER_0 = progress
+REPORTER_1 = spec
+REPORTER = $(REPORTER_$(V))
+
all: lib/decmath.min.js
test: FORCE
- mocha --reporter spec
+ mocha --reporter $(REPORTER)
lib/decmath.min.js: lib/decmath.js
uglifyjs --comments='/@licstart/' -o $@ $<