-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (26 loc) · 1.26 KB
/
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
BROWSERIFY=./node_modules/.bin/browserify
clean:
rm -Rf build
mkdir build
build:
# hi
mkdir -p build/js build/css build/html build/images build/fonts
# ${BROWSERIFY} -r dexcom-uart -r serial-chromeify -o build/js/dexcom.js
${BROWSERIFY} -r browserify-jquery:jquery -r ./bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js:bootstrap-switch > build/js/jquery.js
# ${BROWSERIFY} -r adm-zip > build/js/adm-zip.js
# ${BROWSERIFY} -r buffer > build/js/buffer.js
# ${BROWSERIFY} -r browser-filesaver > build/js/filesaver.js
# ${BROWSERIFY} -r zip-stream > build/js/zip-stream.js
# ${BROWSERIFY} -r d3/d3.min.js:d3 > build/js/d3.js
${BROWSERIFY} ./src/js/background.js -o build/js/background.js
# ${BROWSERIFY} -r content:./src/js/content.js -o build/js/content.js
${BROWSERIFY} -x jquery -x bootstrap-switch ./src/js/app.js -o build/js/app.js
cp src/manifest.json build/manifest.json
cp src/html/* build/html/
cp src/css/* build/css/
cp bower_components/solarized/css/solarized.css build/css/
cp bower_components/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css build/css/
cp bower_components/font-awesome/css/font-awesome.min.css build/css/
cp bower_components/font-awesome/fonts/* build/fonts/
cp src/images/* build/images/
.PHONY: build