Browse Source

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>
main
Florian Fainelli 11 years ago committed by David Gibson
parent
commit
4491ed9f87
  1. 5
      Makefile

5
Makefile

@ -196,6 +196,11 @@ fdtget: $(FDTGET_OBJS) $(LIBFDT_archive) @@ -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

Loading…
Cancel
Save