diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-11-06 14:20:40 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-11-06 14:20:40 +0000 |
commit | 47db98efd203219f38b7545295a2b60c1802816a (patch) | |
tree | f5fde5a966b9eff8164390caacfa3739de5947c9 /Makefile | |
parent | 8e3c506c90c7c7b3569c41a52d940665e75e8af9 (diff) |
Makefile: add 'dist' target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -46,3 +46,12 @@ install: all uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/i3lock + +dist: clean + [ ! -d i3lock-${VERSION} ] || rm -rf i3lock-${VERSION} + [ ! -e i3lock-${VERSION}.tar.bz2 ] || rm i3lock-${VERSION}.tar.bz2 + mkdir i3lock-${VERSION} + cp *.c *.h i3lock.1 i3lock.pam Makefile LICENSE README i3lock-${VERSION} + sed -e 's/^GIT_VERSION:=\(.*\)/GIT_VERSION:=$(shell /bin/echo '${GIT_VERSION}' | sed 's/\\/\\\\/g')/g;s/^VERSION:=\(.*\)/VERSION:=${VERSION}/g' Makefile > i3lock-${VERSION}/Makefile + tar cfj i3lock-${VERSION}.tar.bz2 i3lock-${VERSION} + rm -rf i3lock-${VERSION} |