-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 940 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 940 Bytes
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
31
32
.PHONY: chrome firefox safari
all: chrome firefox safari
chrome: diff-highlighter.js
mkdir -p build/chrome
cp manifest.json diff-highlighter.* icon-128.png build/chrome/
rm -f build/chrome/extension.zip
cd build/chrome && zip extension.zip *
safari: diff-highlighter.js
mkdir -p build/safari.safariextension
cp Info.plist diff-highlighter.* icon-*.png build/safari.safariextension/
firefox: build/jetpack-sdk-latest.zip diff-highlighter.js
mkdir -p build/firefox
mkdir -p build/firefox/lib
mkdir -p build/firefox/data
cp package.json icon-64.png build/firefox/
cp diff-highlighter.* build/firefox/data/
cp main.js build/firefox/lib/
build/jetpack-sdk-latest.zip:
mkdir -p build
cd build && wget https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip
cd build && unzip -q jetpack-sdk-latest.zip
diff-highlighter.js: diff-highlighter.coffee
coffee -c -m diff-highlighter.coffee
clean:
rm -r build