aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index c95ce77..aa71fe0 100644
--- a/makefile
+++ b/makefile
@@ -3,9 +3,19 @@
test:
node_modules/.bin/mocha tests
-setup:
+setup: static/bootstrap static/jszip
+
+static/bootstrap:
mkdir -p _build/bootstrap
curl -L https://github.com/twitter/bootstrap/archive/v2.3.1.tar.gz | tar xz --directory _build/bootstrap --strip-components 1
cd _build/bootstrap; npm install; make bootstrap
cp -rT _build/bootstrap/bootstrap static/bootstrap
+
+static/jszip:
+ mkdir -p _build/jszip
+ curl -L https://github.com/Stuk/jszip/archive/v1.0.1.tar.gz | tar xz --directory _build/jszip --strip-components 1
+ mkdir -p static/jszip
+ cp _build/jszip/*.js static/jszip
+bundle.js:
+ node_modules/.bin/browserify lib/browser.js --standalone MAMMOTH > bundle.js