-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 786 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 786 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
PROJECT := cxchecker-extension
all: icon_16.png icon_19.png icon_48.png 3rdparty/jquery.min.js 3rdparty/jquery.xpath.js
icon_16.png: icon_128.png
convert -resize 16x16 $< $@
icon_19.png: icon_128.png
convert -resize 19x19 $< $@
icon_48.png: icon_128.png
convert -resize 48x48 $< $@
icon_128.png: icon_128.xcf
xcf2png $< > $@
3rdparty/jquery.min.js:
wget -P 3rdparty \
http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
3rdparty/jquery.xpath.js:
wget -P 3rdparty \
https://raw.github.com/jfirebaugh/jquery-xpath/master/jquery.xpath.js
dist: all
rm -rf $(PROJECT) $(PROJECT).zip
mkdir $(PROJECT)
cp -a *.png popup.* *.js manifest.json COPYRIGHT Makefile 3rdparty $(PROJECT)
zip -r $(PROJECT).zip $(PROJECT)
rm -rf $(PROJECT)
.DEFAULT: all
.PHONY: all dist