summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-07-14 12:52:25 +0200
committerHans de Goede <hdegoede@redhat.com>2011-07-14 14:59:44 +0200
commitf61b0b3af2a9e5cebf78a3530ea1a0688227e14c (patch)
treea4cabd8d3a3cdff12f1dcf04c15a5622711d7d89
parentc0ff79717b0d7fd3b57694663249e8354b952e81 (diff)
Add an archive target to the Makefile
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f2bfa5c..18600fb 100644
--- a/Makefile
+++ b/Makefile
@@ -5,4 +5,14 @@ all install clean::
$(MAKE) -C $$i $@ || exit 1; \
done
+tag:
+ @git tag -a -m "Tag as usbredir-$(USBREDIR_VERSION)" usbredir-$(USBREDIR_VERSION)
+ @echo "Tagged as usbredir-$(USBREDIR_VERSION)"
+
+archive-no-tag:
+ @git archive --format=tar --prefix=usbredir-$(USBREDIR_VERSION)/ usbredir-$(USBREDIR_VERSION) > usbredir-$(USBREDIR_VERSION).tar
+ @bzip2 -f usbredir-$(USBREDIR_VERSION).tar
+
+archive: clean tag archive-no-tag
+
include Make.rules