projects/booket

changeset 29:58f3589982ea

Add dist target to makefile
author Guido Berhoerster <guido+booket@berhoerster.name>
date Mon Nov 17 15:26:47 2014 +0100 (2014-11-17)
parents 2aa4527cef03
children 1b56483fe0f2
files Makefile
line diff
     1.1 --- a/Makefile	Mon Oct 06 13:55:08 2014 +0200
     1.2 +++ b/Makefile	Mon Nov 17 15:26:47 2014 +0100
     1.3 @@ -21,9 +21,14 @@
     1.4  # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     1.5  #
     1.6  
     1.7 +PACKAGE =	booket
     1.8 +VERSION =	5
     1.9 +DISTNAME :=	$(PACKAGE)-$(VERSION)
    1.10  RSVG_CONVERT :=	rsvg-convert
    1.11  SCOUR :=	scour
    1.12  XMLLINT :=	xmllint
    1.13 +PAX :=		pax
    1.14 +GZIP :=		gzip
    1.15  
    1.16  SVGIMAGES :=	missing-favicon.svg booket-logo.svg
    1.17  PNGIMAGES :=	booket-favicon.png
    1.18 @@ -47,3 +52,7 @@
    1.19  	rm -f $(SVGIMAGES) $(PNGIMAGES)
    1.20  
    1.21  clobber: clean
    1.22 +
    1.23 +dist: all
    1.24 +	$(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
    1.25 +	    -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz