about summary refs log tree commit diff
path: root/mk/dist.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-12-10T14·54+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-12-10T14·54+0100
commit49a385096e08b42277b7105d5d8d1e0e62b6b7a4 (patch)
tree91b5ca200905ecf88d827752ba8b5a14fe1c9be7 /mk/dist.mk
Initial commit (imported from the Nix repo)
Diffstat (limited to 'mk/dist.mk')
-rw-r--r--mk/dist.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
new file mode 100644
index 000000000000..3e89aec81fac
--- /dev/null
+++ b/mk/dist.mk
@@ -0,0 +1,10 @@
+dist_name = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+
+dist_files :=
+
+dist: $(dist_name).tar.bz2
+
+$(dist_name).tar.bz2: $(dist_files)
+	$(QUIET) tar cvfj $@ $(dist_files) --transform 's,^,$(dist_name)/,'
+
+clean_files += $(dist_name).tar.bz2