ref: ced38bc6ee1cacf6aea23d114ca45d4a48fbb5a5
parent: 4e96cf98759de41c118cbeb4e5d7765737b95982
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat Apr 4 10:23:28 EDT 2020
Add new Makefile target for release tarballs
--- a/Makefile
+++ b/Makefile
@@ -247,3 +247,11 @@
$Qln -s rgbshim.sh rgblink
$Qln -s rgbshim.sh rgbfix
$Qln -s rgbshim.sh rgbgfx
+
+# Target for the project maintainer to produce distributable release tarballs
+# of the source code.
+
+RELEASE_ARCHIVE := rgbds-`git describe --tags --always 2>/dev/null`.tar.gz
+dist:
+ $Qgit ls-files -z | sed -z s~^~$${PWD##*/}/~ \
+ | xargs -0 -- tar czf ${RELEASE_ARCHIVE} -C ..