summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-21 23:59:42 +0100
committerNick White <git@njw.me.uk>2011-06-21 23:59:42 +0100
commita2a6986c2719849d4e794261f29c8689701445e3 (patch)
treeade600fc82116d575a44ef9e402ecd2489e06038 /Makefile
parentcae7026cb13c3f7f07a5336f8c19a7a6bbb87f3d (diff)
Make keyfile dependency in makefile explicit, update TODO
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 0ef8372..46a0b83 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,9 @@ all: xpi crx
web: web/index.html web/gecko-updates.rdf web/chromium-updates.xml
+$(KEYFILE):
+ openssl genrsa 1024 > $@
+
sign:
if test -f $(NAME)-$(VERSION).tar.bz2; then \
gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig; \
@@ -25,7 +28,7 @@ sign:
echo $(NAME)-$(VERSION).tar.crx.sig; fi
# TODO: test makefile dependency is portable (and correct)
-web/gecko-updates.rdf: $(NAME)-$(VERSION).xpi
+web/gecko-updates.rdf: $(NAME)-$(VERSION).xpi $(KEYFILE)
uhura -o $@ -k $(KEYFILE) $(NAME)-$(VERSION).xpi $(WEBSITE)/$(NAME)-$(VERSION).xpi
# gensig not working yet
@@ -55,11 +58,11 @@ web/index.html: web/doap.ttl README
echo "a {text-decoration:none; border-bottom-width:thin; border-bottom-style:dotted;}" >> $@
echo "</style></head><body>" >> $@
smu < README >> $@
- echo "[$(NAME) $(VERSION) source]($(NAME)-$(VERSION).tar.bz2) ([sig]($(NAME)-$(VERSION).tar.bz2.sig))" | smu >> $@
+ echo "[SimplyRead $(VERSION) source]($(NAME)-$(VERSION).tar.bz2) ([sig]($(NAME)-$(VERSION).tar.bz2.sig))" | smu >> $@
- echo "[$(NAME) $(VERSION) for Firefox]($(NAME)-$(VERSION).xpi) ([sig]($(NAME)-$(VERSION).xpi.sig))" | smu >> $@
+ echo "[SimplyRead $(VERSION) for Firefox]($(NAME)-$(VERSION).xpi) ([sig]($(NAME)-$(VERSION).xpi.sig))" | smu >> $@
- echo "[$(NAME) $(VERSION) for Chromium]($(NAME)-$(VERSION).crx) ([sig]($(NAME)-$(VERSION).crx.sig))" | smu >> $@
+ echo "[SimplyRead $(VERSION) for Chromium]($(NAME)-$(VERSION).crx) ([sig]($(NAME)-$(VERSION).crx.sig))" | smu >> $@
echo '<hr />' >> $@
sh web/websummary.sh web/doap.ttl | smu >> $@
@@ -73,9 +76,8 @@ dist:
rm -rf $(NAME)-$(VERSION)
echo $(NAME)-$(VERSION).tar.bz2
-xpi:
+xpi: $(KEYFILE)
rm -rf $(NAME)-$(VERSION).xpi gecko-build
- test -f $(KEYFILE) || openssl genrsa 1024 > $(KEYFILE)
mkdir -p gecko-build/chrome/content
sed 2q < COPYING > gecko-build/COPYING
cp gecko/chrome.manifest gecko-build/
@@ -89,9 +91,8 @@ xpi:
rm -rf gecko-build
echo $(NAME)-$(VERSION).xpi
-crx:
+crx: $(KEYFILE)
rm -rf chromium-build
- test -f $(KEYFILE) || openssl genrsa 1024 > $(KEYFILE)
mkdir chromium-build
sed 2q < COPYING > chromium-build/COPYING
cp simplyread.js keybind.js chromium/viable.js chromium/background.html chromium-build/