diff Makefile @ 17:48caa69c609d

Exclude "." from tarballs
author Guido Berhoerster <guido+xwrited@berhoerster.name>
date Tue, 13 Sep 2016 20:59:33 +0200
parents 129f316b99aa
children 4a5330979433
line wrap: on
line diff
--- a/Makefile	Tue Aug 11 19:21:38 2015 +0200
+++ b/Makefile	Tue Sep 13 20:59:33 2016 +0200
@@ -170,6 +170,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))