summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-02-03 12:46:28 -0800
committerDavid Gibson <david@gibson.dropbear.id.au>2014-02-04 11:26:19 +1100
commit4491ed9f875cbe39aaafa9c875bb3e39121e53e1 (patch)
tree2103983c35edd0bcb22306a9f33bce727e9770e6
parent24cb3d0681d9196d57176a0a94bfc6e610ef7b45 (diff)
downloaddevice-tree-compiler-4491ed9f875cbe39aaafa9c875bb3e39121e53e1.tar.gz
Makefile: add a make "dist" target
make dist can be used to produce tarballs directly from the git repository, which can be useful to automate the release process as well as shipping custom releases. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index afc0ce0..86f5ab3 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,11 @@ fdtget: $(FDTGET_OBJS) $(LIBFDT_archive)
fdtput: $(FDTPUT_OBJS) $(LIBFDT_archive)
+dist:
+ git archive --format=tar --prefix=dtc-v$(dtc_version)/ HEAD \
+ > ../dtc-v$(dtc_version).tar
+ cat ../dtc-v$(dtc_version).tar | \
+ gzip -9 > ../dtc-v$(dtc_version).tgz
#
# Testsuite rules