about summary refs log tree commit diff
path: root/dist.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-09T15·12+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-09T15·12+0100
commit55c9a40613fefda6622aa9acd22cce4006fd1077 (patch)
treecd592d5836af42feeeca64ac3ebb77037b93a076 /dist.mk
parent259086de841d155f7951c2cc50f799a4631aa512 (diff)
Move stuff to top-level
This makes it easier to use with "git subtree".
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