[Crosstoolchain-logs] [device-tree-compiler] 122/198: Makefile: add a make "dist" target

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:07:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit 4491ed9f875cbe39aaafa9c875bb3e39121e53e1
Author: Florian Fainelli <f.fainelli at gmail.com>
Date:   Mon Feb 3 12:46:28 2014 -0800

    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 at gmail.com>
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list