]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Avoid git warning when building from tarball.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 20 Dec 2014 11:36:11 +0000 (12:36 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 15 Jan 2015 20:58:54 +0000 (21:58 +0100)
The "git describe" command which is removed by this commit caused the
following warning when running "make" on a tree without .git directory
(extracted tarball or gitweb snapshot):

fatal: Not a git repository (or any of the parent directories): .git

This commit avoids the warning. Of course "make tarball" still fails
in this case, but this is expected.

Makefile.real

index fb99679a0b1da2b62994be493b2d67f75a942d28..440220ce83e090aba486116320892ce9785af1ad 100644 (file)
@@ -51,7 +51,7 @@ play_objs := $(addprefix $(object_dir)/, $(play_objs))
 man_pages := $(patsubst %, $(man_dir)/%.1, $(prefixed_executables))
 
 autocrap := config.h.in configure
-tarball_pfx := $(PACKAGE_TARNAME)-$(shell git describe --dirty)
+tarball_pfx := $(PACKAGE_TARNAME)-$(GIT_VERSION)
 tarball_delete := $(addprefix $(tarball_pfx)/, web .gitignore)
 tarball := $(tarball_pfx).tar.bz2