diff Makefile @ 29:58f3589982ea

Add dist target to makefile
author Guido Berhoerster <guido+booket@berhoerster.name>
date Mon, 17 Nov 2014 15:26:47 +0100
parents 8445c729ba97
children 06eba1bf219d
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