summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-18 18:45:29 +0000
committerNick White <git@njw.me.uk>2010-11-18 18:45:29 +0000
commit4cdb10438dad3fd4b9ecc8ef96538f4219b42e5e (patch)
tree66f238c76fb1282132420650274b7703927235cd /Makefile
parenteb9bdae63cf0d69228772859ec3fccc426678448 (diff)
Make all now makes all, and make rules deploy to web/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 15 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 7a05f61..4d2ca16 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
NAME = simplyread
VERSION = 0.4
-chromium-updates.xml: chromium/updates.xml
+all: web/chromium-updates.xml web/index.html dist xpi crx
+
+web/chromium-updates.xml: chromium/updates.xml
sed "s/VERSION/$(VERSION)/g" < $< > $@
-index.html: doap.ttl README webheader.html
+web/index.html: web/doap.ttl README webheader.html
echo making webpage
cat < webheader.html > $@
smu < README >> $@
@@ -15,17 +17,17 @@ index.html: doap.ttl README webheader.html
echo '<h3><a href="$(NAME)-$(VERSION).crx">SimplyRead $(VERSION) for Chromium</a><br />' >> $@
echo '<a href="$(NAME)-$(VERSION).xpi.crx">GPG signature</a></h3>' >> $@
echo '<hr />' >> $@
- sh websummary.sh doap.ttl | smu >> $@
+ sh websummary.sh web/doap.ttl | smu >> $@
echo '</body></html>' >> $@
dist:
mkdir -p $(NAME)-$(VERSION)
cp simplyread.js keybind.js COPYING INSTALL README Makefile $(NAME)-$(VERSION)
cp -R gecko chromium tests $(NAME)-$(VERSION)
- tar -c $(NAME)-$(VERSION) | bzip2 -c > $(NAME)-$(VERSION).tar.bz2
- gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig
+ tar -c $(NAME)-$(VERSION) | bzip2 -c > web/$(NAME)-$(VERSION).tar.bz2
+ gpg -b < web/$(NAME)-$(VERSION).tar.bz2 > web/$(NAME)-$(VERSION).tar.bz2.sig
rm -rf $(NAME)-$(VERSION)
- echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
+ echo web/$(NAME)-$(VERSION).tar.bz2 web/$(NAME)-$(VERSION).tar.bz2.sig
xpi:
rm -rf $(NAME)-$(VERSION).xpi gecko-build
@@ -35,10 +37,10 @@ xpi:
cp simplyread.js gecko-build/chrome/content/
rsvg gecko/chrome/content/icon.svg gecko-build/chrome/content/icon.png
sed "s/VERSION/$(VERSION)/g" < gecko/install.ttl | rapper -i turtle -o rdfxml /dev/stdin 2>/dev/null > gecko-build/install.rdf
- cd gecko-build; zip -r ../$(NAME)-$(VERSION).xpi . 1>/dev/null
- gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig
+ cd gecko-build; zip -r ../web/$(NAME)-$(VERSION).xpi . 1>/dev/null
+ gpg -b < web/$(NAME)-$(VERSION).xpi > web/$(NAME)-$(VERSION).xpi.sig
rm -rf gecko-build
- echo $(NAME)-$(VERSION).xpi $(NAME)-$(VERSION).xpi.sig
+ echo web/$(NAME)-$(VERSION).xpi web/$(NAME)-$(VERSION).xpi.sig
crx:
rm -rf chromium-build
@@ -46,10 +48,10 @@ crx:
cp COPYING simplyread.js keybind.js chromium/background.html chromium-build/
rsvg chromium/icon.svg chromium-build/icon.png
sed "s/VERSION/$(VERSION)/g" < chromium/manifest.json > chromium-build/manifest.json
- sh chromium/makecrx.sh chromium-build chromium/private.pem > $(NAME)-$(VERSION).crx
+ sh chromium/makecrx.sh chromium-build chromium/private.pem > web/$(NAME)-$(VERSION).crx
rm -r chromium-build
- gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig
- echo $(NAME)-$(VERSION).crx $(NAME)-$(VERSION).crx.sig
+ gpg -b < web/$(NAME)-$(VERSION).crx > web/$(NAME)-$(VERSION).crx.sig
+ echo web/$(NAME)-$(VERSION).crx web/$(NAME)-$(VERSION).crx.sig
# note that tests require a patched surf browser; see tests/runtest.sh
test:
@@ -60,6 +62,6 @@ test:
test ! -s $$i.diff && rm $$i.diff; \
done
-.PHONY: dist xpi crx test
+.PHONY: all dist xpi crx test
.SUFFIXES: ttl html png svg
.SILENT: