diff options
author | Nick White <git@njw.me.uk> | 2011-06-16 22:52:54 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-06-16 22:52:54 +0100 |
commit | 3664b7442d97cd6c9325c967a14b167fbb99b796 (patch) | |
tree | 3db9d134a23eceef186c9bbf73cb22de93ff5959 /Makefile | |
parent | 2b76a1dcb056720641b0a1b2002c7c63329dfa92 (diff) |
Make sign rule only signs existing builds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -14,12 +14,15 @@ all: xpi crx web: web/index.html web/gecko-updates.rdf web/chromium-updates.xml sign: - gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig - echo $(NAME)-$(VERSION).tar.bz2.sig - gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig - echo $(NAME)-$(VERSION).tar.xpi.sig - gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig - echo $(NAME)-$(VERSION).tar.crx.sig + if test -f $(NAME)-$(VERSION).tar.bz2; then \ + gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig; \ + echo $(NAME)-$(VERSION).tar.bz2.sig; fi + if test -f $(NAME)-$(VERSION).xpi; then \ + gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig; \ + echo $(NAME)-$(VERSION).tar.xpi.sig; fi + if test -f $(NAME)-$(VERSION).crx; then \ + gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig; \ + echo $(NAME)-$(VERSION).tar.crx.sig; fi # TODO: test makefile dependency is portable (and correct) web/gecko-updates.rdf: $(NAME)-$(VERSION).xpi |