NAME = simplyread VERSION = 0.5 KEYFILE = private.pem WEBSITE = http://njw.me.uk/software/$(NAME) REPOURL = http://git.njw.me.uk/$(NAME).git AUTHORFOAF = http://njw.me.uk/card#i AUTHORNAME = Nick White AUTHORHOME = http://njw.me.uk GECKOID = simplyread@njw.me.uk 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 # TODO: test makefile dependency is portable (and correct) web/gecko-updates.rdf: $(NAME)-$(VERSION).xpi uhura -o $@ -k $(KEYFILE) $(NAME)-$(VERSION).xpi $(WEBSITE)/$(NAME)-$(VERSION).xpi # gensig not working yet #web/gecko-updates.rdf: gecko/updates.ttl # sed -e "s/VERSION/$(VERSION)/g" \ # -e "s|WEBSITE|$(WEBSITE)|g" \ # -e "s|GECKOID|$(GECKOID)|g" \ # -e "s/HASH/`sha1sum $(NAME)-$(VERSION).xpi|awk '{print $$1}'`/g" \ # -e "s/SIG/`sh gecko/gensig.sh gecko/updates.ttl $(KEYFILE)`/g" \ # < $< | rapper -i turtle -o rdfxml /dev/stdin 2>/dev/null > $@ web/chromium-updates.xml: chromium/updates.xml sed -e "s/VERSION/$(VERSION)/g" -e "s|WEBSITE|$(WEBSITE)|g" < $< > $@ web/index.html: web/doap-src.ttl README webheader.html echo making webpage cat < webheader.html > $@ smu < README >> $@ echo '