-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
30 lines (26 loc) · 1.21 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
SRC=src/popup.coffee src/ui.coffee src/passwdgen.coffee src/standalone.coffee src/popup.coffee
JSMIN=uglifyjs -c -m
all: bundle
bundle:
cake build
$(BROWSERIFY) build/popup.js -o Chrome/js/popup-bundle.js
$(BROWSERIFY) build/options.js -o options-bundle.js
cp options-bundle.js Chrome/js/
mv options-bundle.js mypass.safariextension/js/
$(BROWSERIFY) build/global.js -o mypass.safariextension/js/global-bundle.js
$(BROWSERIFY) build/popover.js -o mypass.safariextension/js/popover-bundle.js
$(BROWSERIFY) build/standalone.js -o html/js/standalone-bundle.js
$(BROWSERIFY) build/ios.js -o html/js/ios-bundle.js
production:
cake build
$(BROWSERIFY) build/popup.js | $(JSMIN) > Chrome/js/popup-bundle.js
$(BROWSERIFY) build/options.js | $(JSMIN) > options-bundle.js
cp options-bundle.js Chrome/js/
mv options-bundle.js mypass.safariextension/js/
$(BROWSERIFY) build/global.js | $(JSMIN) > mypass.safariextension/js/global-bundle.js
$(BROWSERIFY) build/popover.js | $(JSMIN) > mypass.safariextension/js/popover-bundle.js
$(BROWSERIFY) build/standalone.js | $(JSMIN) > html/js/standalone-bundle.js
$(BROWSERIFY) build/ios.js | $(JSMIN) > html/js/ios-bundle.js
clean:
rm -rf build