Mercurial > projects > booket
changeset 29:58f3589982ea
Add dist target to makefile
author | Guido Berhoerster <guido+booket@berhoerster.name> |
---|---|
date | Mon, 17 Nov 2014 15:26:47 +0100 |
parents | 2aa4527cef03 |
children | 1b56483fe0f2 |
files | Makefile |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Oct 06 13:55:08 2014 +0200 +++ b/Makefile Mon Nov 17 15:26:47 2014 +0100 @@ -21,9 +21,14 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +PACKAGE = booket +VERSION = 5 +DISTNAME := $(PACKAGE)-$(VERSION) RSVG_CONVERT := rsvg-convert SCOUR := scour XMLLINT := xmllint +PAX := pax +GZIP := gzip SVGIMAGES := missing-favicon.svg booket-logo.svg PNGIMAGES := booket-favicon.png @@ -47,3 +52,7 @@ rm -f $(SVGIMAGES) $(PNGIMAGES) clobber: clean + +dist: all + $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \ + -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz