From: Damyan Ivanov Date: Fri, 20 Jan 2012 20:53:22 +0000 (+0200) Subject: add a Makefile X-Git-Tag: 1.7~2 X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=commitdiff_plain;h=433b0a205af2940edf5b253fb5846418088b1198 add a Makefile 'sh build' is still here, but having a makefile for on-demand building seems nice --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..61187fe --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# vim: noet ts=8 ft=makefile + +PKG := icedeb + +ALL_FILES := README TODO install.rdf chrome.manifest \ + $(shell find res -type f) $(shell find chrome -type f) + +all: $(PKG).xpi +$(PKG).xpi: $(ALL_FILES) + rm -f $@ + zip $@ $^ + +XCF := res/button-bts.xcf + +chrome/content/icedeb-bts.png: $(XCF) + xcf2png -o "$@" "$<" "base" "bts small" "bts big" +chrome/content/icedeb-buildd.png: $(XCF) + xcf2png -o "$@" "$<" "base" "buildd small" "buildd big" +chrome/content/icedeb-ddpo.png: $(XCF) + xcf2png -o "$@" "$<" "base" "DD small" "DD big" +chrome/content/icedeb-deb.png: $(XCF) + xcf2png -o "$@" "$<" "base" "deb small" "deb big" +chrome/content/icedeb-ml.png: $(XCF) + xcf2png -o "$@" "$<" "base" "ML small" "ML big" +chrome/content/icedeb-pts.png: $(XCF) + xcf2png -o "$@" "$<" "base" "pts small" "pts big" +chrome/content/icedeb-security.png: $(XCF) + xcf2png -o "$@" "$<" "base" "security small" "security big"