]> granicus.if.org Git - xz/commitdiff
Build: Fix mydist rule when .git doesn't exist. v5.0.0
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 14:25:52 +0000 (17:25 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 14:25:52 +0000 (17:25 +0300)
Makefile.am

index 809197e8991d7f471704b5927d4b9bd7e32e8b5d..91c7c0851d21a666e0fcc65c9bb56b6551c75239 100644 (file)
@@ -79,6 +79,7 @@ dist-hook:
 
 # This works with GNU tar and gives cleaner package than normal 'make dist'.
 mydist:
+       VERSION=$(VERSION); \
        if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
                SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
                test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \