aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-21 19:49:19 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-21 19:49:19 +0000
commitcc94aa68b577c5b79c124e616a63071bcaeed908 (patch)
treebdd541d46a35a080c4f7543dec1e5a9fd089b707 /makefile
parent3a7c7e0339417a7f9339fc7276ec92145c453006 (diff)
Move generated browser files to root
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/makefile b/makefile
index 9454fad..c544845 100644
--- a/makefile
+++ b/makefile
@@ -1,9 +1,9 @@
-.PHONY: test browser-demo/bundle.js
+.PHONY: test mammoth.browser.js
test:
npm test
-setup: static/bootstrap static/jszip browser-demo/bundle.min.js
+setup: static/bootstrap static/jszip mammoth.browser.min.js
static/bootstrap:
mkdir -p _build/bootstrap
@@ -17,8 +17,8 @@ static/jszip:
mkdir -p static/jszip
cp _build/jszip/*.js static/jszip
-browser-demo/bundle.js:
- rm $@
+mammoth.browser.js:
+ rm $@ -f
cat static/jszip/jszip.js >> $@
cat static/jszip/jszip-deflate.js >> $@
cat static/jszip/jszip-inflate.js >> $@
@@ -26,5 +26,5 @@ browser-demo/bundle.js:
node_modules/.bin/node-license-sniffer . --recurse --js-comment >> $@
node_modules/.bin/browserify lib/index.js --standalone mammoth >> $@
-browser-demo/bundle.min.js: browser-demo/bundle.js
- node_modules/.bin/uglifyjs browser-demo/bundle.js -c > $@
+mammoth.browser.min.js: mammoth.browser.js
+ node_modules/.bin/uglifyjs mammoth.browser.js -c > $@