about summary refs log tree commit diff
path: root/dist.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-01T13·22+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-01T13·22+0100
commit6f8aa145d43d0453d74e70d1d33cfa6e21fddf89 (patch)
tree2134bbc25098881141034143974f14c058cdd58d /dist.mk
parentec1738589a3aa1dd59e476de09ae2721d51b3e6e (diff)
Improve "make dist"
Diffstat (limited to 'dist.mk')
-rw-r--r--dist.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/dist.mk b/dist.mk
index 0ce4377ae4af..794b277713d4 100644
--- a/dist.mk
+++ b/dist.mk
@@ -2,14 +2,15 @@ ifdef PACKAGE_NAME
 
 dist-name = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
 
-dist-files :=
-
-dist: $(dist-name).tar.bz2
+dist: $(dist-name).tar.bz2 $(dist-name).tar.xz
 
 $(dist-name).tar.bz2: $(dist-files)
-	$(suppress) tar cvfj $@ $(dist-files) --transform 's,^,$(dist-name)/,'
+	$(trace-gen) tar cfj $@ $(sort $(dist-files)) --transform 's,^,$(dist-name)/,'
+
+$(dist-name).tar.xz: $(dist-files)
+	$(trace-gen) tar cfJ $@ $(sort $(dist-files)) --transform 's,^,$(dist-name)/,'
 
-clean-files += $(dist-name).tar.bz2
+clean-files += $(dist-name).tar.bz2 $(dist-name).tar.xz
 
 print-top-help += echo "  dist: Generate a source distribution";