-
Notifications
You must be signed in to change notification settings - Fork 73
/
Makefile
37 lines (30 loc) · 1.08 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
31
32
33
34
35
36
37
all: js css chrome-extension mozilla-extension
css:
node makecss.js
js:
node makejs.js
chrome-extension:
mkdir -p build/chrome/
cp LICENSE build/chrome/LICENSE
cp chrome/manifest.json build/chrome/manifest.json
cp chrome/background.js build/chrome/background.js
cp wide-github.css build/chrome/wide-github.css
cp wide-github-toggle.js build/chrome/wide-github-toggle.js
cp -rT icons build/chrome/icons/
cd build/chrome/ && zip -r wide-github.tmp.zip *
mv build/chrome/wide-github.tmp.zip build/wide-github-chrome.zip
mozilla-extension:
mkdir -p build/mozilla/
cp LICENSE build/mozilla/LICENSE
cp mozilla/manifest.json build/mozilla/manifest.json
cp mozilla/background.js build/mozilla/background.js
cp wide-github.css build/mozilla/wide-github.css
cp wide-github-toggle.js build/mozilla/wide-github-toggle.js
cp -rT icons build/mozilla/icons/
cd build/mozilla/ && zip -r wide-github.tmp.zip *
mv build/mozilla/wide-github.tmp.zip build/wide-github-mozilla.zip
clean:
rm -f build/wide-github.zip
clean-all: clean
rm -f build/wide-github.user.js
rm -f build/wide-github.user.css