diff Makefile @ 18:7379cd513e6d

Exclude "." from tarballs
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Tue, 13 Sep 2016 19:57:08 +0200
parents 4df0dc4dcc3d
children 1421ea50aa5c
line wrap: on
line diff
--- a/Makefile	Fri Feb 27 23:28:06 2015 +0100
+++ b/Makefile	Tue Sep 13 19:57:08 2016 +0200
@@ -149,6 +149,7 @@
 
 dist: clobber
 	$(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
-	    -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz
+	    -s ',^\.$$,,' -s ',\./,$(DISTNAME)/,' . | \
+	    $(GZIP) > $(DISTNAME).tar.gz
 
 -include $(patsubst %.o,%.d,$(OBJS))