-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (24 loc) · 844 Bytes
/
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
all: firefox chrome
clean:
rm -f metric-cooking.xpi
test:
@./test.js
ICONS = \
icons/measuring-cup-pressed-19.png \
icons/measuring-cup-pressed-38.png \
icons/measuring-cup-pressed-48.png \
icons/measuring-cup-pressed-128.png \
icons/measuring-cup-19.png \
icons/measuring-cup-38.png
JS = \
metric-cooking.js
firefox: $(ICONS) manifest.json.firefox background.js.firefox $(JS)
rm -f metric-cooking-firefox.xpi
cp manifest.json.firefox manifest.json
cp background.js.firefox background.js
zip -9 metric-cooking-firefox.xpi $(ICONS) manifest.json background.js $(JS)
chrome: $(ICONS) manifest.json.chrome background.js.chrome $(JS)
rm -f metric-cooking-chrome.zip
cp manifest.json.chrome manifest.json
cp background.js.chrome background.js
zip -9 metric-cooking-chrome.zip $(ICONS) manifest.json background.js $(JS)