forked from andrusha/tumblr-shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (15 loc) · 756 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Makefile for GNU make
RELEASE_DIR = ./release
all: dev
release: dev
echo "Optimizing with Closure compiler"
closure --js $(RELEASE_DIR)/tumblr_shortcuts.js --js_output_file $(RELEASE_DIR)/tumblr_shortcuts.compiled.js --compilation_level SIMPLE_OPTIMIZATIONS
mv $(RELEASE_DIR)/tumblr_shortcuts.compiled.js $(RELEASE_DIR)/tumblr_shortcuts.js
echo "Cleaning old version"
rm -f $(RELEASE_DIR)/tumblr_shortcuts.zip
echo "Compressing extension"
cd $(RELEASE_DIR) ; \
zip tumblr_shortcuts.zip tumblr_shortcuts.js tumblr_shortcuts.css manifest.json 48.png 128.png
dev:
echo "Compiling coffee script"
coffee --compile --lint --join $(RELEASE_DIR)/tumblr_shortcuts.js lib.coffee shortcuts.coffee tumblr.coffee help.coffee tumblr_shortcuts.coffee