blob: 53d7ec699bb74be4a2eb1ea52989c98b69db3fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
NAME = readable
VERSION = 0.2
index.html: doap.ttl README
@echo making webpage
@cat < webheader.html > $@
@smu < README >> $@
@echo '<h3><a href="$(NAME)-$(VERSION).tar.bz2">Download Readable $(VERSION)</a><br />' >> $@
@echo '<a href="$(NAME)-$(VERSION).tar.bz2.sig">GPG signature</a></h3>' >> $@
@echo '<h3><a href="$(NAME)-$(VERSION).xpi">Readable $(VERSION) for Firefox</a><br />' >> $@
@echo '<a href="$(NAME)-$(VERSION).xpi.sig">GPG signature</a></h3>' >> $@
@echo '<hr />' >> $@
@sh summary.sh doap.ttl | smu >> $@
@echo '</body></html>' >> $@
dist:
@mkdir -p $(NAME)-$(VERSION)
@cp readable.js COPYING INSTALL README $(NAME)-$(VERSION)
@tar -c $(NAME)-$(VERSION) | bzip2 -c > $(NAME)-$(VERSION).tar.bz2
@gpg -b < $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).tar.bz2.sig
@rm -rf $(NAME)-$(VERSION)
@ln -sf $(NAME)-$(VERSION).tar.bz2 latest.tar.bz2
@ln -sf $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig
@echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul
@rm -rf $(NAME)-$(VERSION).xpi gecko-build
@mkdir -p gecko-build/chrome/content
@cp COPYING gecko/chrome.manifest gecko-build/
@cp gecko/chrome/content/readable.xul gecko-build/chrome/content/
@cp readable.js gecko-build/chrome/content/readable.js
@sed "s/VERSION/$(VERSION)/g" < gecko/install.rdf > gecko-build/install.rdf
@cd gecko-build; zip -r ../$(NAME)-$(VERSION).xpi . 1>/dev/null
@gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig
@rm -rf gecko-build
@echo $(NAME)-$(VERSION).xpi $(NAME)-$(VERSION).xpi.sig
.PHONY: dist xpi
.SUFFIXES: ttl html
|