diff options
author | Kali Kaneko <kali@futeisha.org> | 2013-10-11 13:26:03 -0300 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2013-10-11 13:26:03 -0300 |
commit | 82be59decc9fd3a03013f397b12b52a3101a51b0 (patch) | |
tree | 89e4e05d2e82950bd4fc3bb57d7ac2ad3de77a70 /Makefile | |
parent | bbe8242af641a91a0c8452c68fd5faa74ef1953d (diff) |
modify makefile to use template
Diffstat (limited to 'Makefile')
-rwxr-xr-x[-rw-r--r--] | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -5,7 +5,7 @@ RSA_FILE := META-INF/zigbert.rsa # the following variables are updated automatically COMMIT := $(shell git --no-pager log -1 --format=format:%h) -VERSION := $(shell grep \<em:version\> $(PREFIX)/install.rdf | sed -e s/[^\>]\\\+\>// -e s/\<[^\>]\\\+\>//) +VERSION = $(shell head -n1 Changelog | sed -e 's/^.*(//' -e 's/).*$$//') PKGNAME := $(EXTNAME)-$(VERSION)-$(COMMIT).xpi TARGET := $(CURDIR)/build/$(PKGNAME) TEMPDIR := $(shell mktemp -d -u) @@ -33,6 +33,7 @@ endif endif endif + # main rule all: clean $(TARGET) @@ -55,8 +56,15 @@ signed: clean clean: rm -f $(TARGET) build/* + rm -f install.rdf upload: scp build/* downloads.leap.se:~/public/thunderbird_extension/ +debian-package: + git buildpackage -us -uc + +install.rdf: install.rdf.template Changelog + sed 's/__VERSION__/$(VERSION)/' < $< > $@ + .PHONY: all clean signed |