From 5f79bace21f54b7a480b48dd6a6ad1d1bfa81414 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 2 May 2012 14:26:36 +0200 Subject: [PATCH] Add release target to Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index bd9d44d..3aeae02 100644 --- a/Makefile +++ b/Makefile @@ -41,3 +41,7 @@ install: ${PROG} install -m 755 cwm ${DESTDIR}${PREFIX}/bin install -m 644 cwm.1 ${DESTDIR}${MANPREFIX}/man1 install -m 644 cwmrc.5 ${DESTDIR}${MANPREFIX}/man5 + +release: + VERSION=$$(git describe --tags | sed 's/^v//;s/-[^.]*$$//') && \ + git archive --prefix=cwm-$$VERSION/ -o cwm-$$VERSION.tar.gz HEAD