diff options
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | config.mk | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -50,4 +50,7 @@ uninstall: @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 @rm -f ${DESTDIR}${MANPREFIX}/man1/vis.1 +release: + git archive --format=tar.xz --prefix=vis-$(RELEASE)/ $(RELEASE) > vis-$(RELEASE).tar.xz + .PHONY: all clean dist install uninstall debug @@ -3,6 +3,7 @@ HAVE_ACL=0 HAVE_SELINUX=0 # vis version +RELEASE = 0.0.0 # try to get a tag and hash first GITHASH = $(shell git log -1 --format='%h' 2>/dev/null) GITTAG = $(shell git describe --abbrev=0 --tags 2>/dev/null) @@ -16,7 +17,7 @@ else ifneq ($(GITHASH),) VERSION = 0.r${GITREVCOUNT}.g${GITHASH} else # this is used when no git is available, e.g. for release tarball - VERSION = 0.0.0 + VERSION = ${RELEASE} endif # Customize below to fit your system |
