add a Makefile
[icedeb.git] / Makefile
1 #!/usr/bin/make -f
2 # vim: noet ts=8 ft=makefile
3
4 PKG := icedeb
5
6 ALL_FILES := README TODO install.rdf chrome.manifest \
7     $(shell find res -type f) $(shell find chrome -type f)
8
9 all: $(PKG).xpi
10 $(PKG).xpi: $(ALL_FILES)
11         rm -f $@
12         zip $@ $^
13
14 XCF := res/button-bts.xcf
15
16 chrome/content/icedeb-bts.png: $(XCF)
17         xcf2png -o "$@" "$<" "base" "bts small" "bts big"
18 chrome/content/icedeb-buildd.png: $(XCF)
19         xcf2png -o "$@" "$<" "base" "buildd small" "buildd big"
20 chrome/content/icedeb-ddpo.png: $(XCF)
21         xcf2png -o "$@" "$<" "base" "DD small" "DD big"
22 chrome/content/icedeb-deb.png: $(XCF)
23         xcf2png -o "$@" "$<" "base" "deb small" "deb big"
24 chrome/content/icedeb-ml.png: $(XCF)
25         xcf2png -o "$@" "$<" "base" "ML small" "ML big"
26 chrome/content/icedeb-pts.png: $(XCF)
27         xcf2png -o "$@" "$<" "base" "pts small" "pts big"
28 chrome/content/icedeb-security.png: $(XCF)
29         xcf2png -o "$@" "$<" "base" "security small" "security big"