about summary refs log tree commit diff
path: root/dist.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dist.mk')
-rw-r--r--dist.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/dist.mk b/dist.mk
new file mode 100644
index 000000000000..444c58b3fe23
--- /dev/null
+++ b/dist.mk
@@ -0,0 +1,14 @@
+ifdef PACKAGE_NAME
+
+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
+
+endif