summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-23 05:40:52 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-23 06:22:15 +0200
commit1dba61a67063fac2c6f02dc31ab84e61ff279617 (patch)
treefcf4469f5e9b3152c738849809b7d4dd441d7187 /Makefile
parentd3a1fa98f4e20ce707a7da54d381adf1e3d1eb87 (diff)
downloadmpv-1dba61a67063fac2c6f02dc31ab84e61ff279617.tar.bz2
mpv-1dba61a67063fac2c6f02dc31ab84e61ff279617.tar.xz
build: Generate version numbers for git
Update the version.sh script for git so it'll generate version numbers more useful than "UNKNOWN". At the moment it only generates the short SHA1 name, but adding a tag as a starting point should allow more useful output. Rather than update the Makefile logic that tried to guess whether the svn revision had changed since the last version.h update, just run the version.sh script from configure so the version is updated at least at that time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 0 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 005a721b48..b50448a1be 100644
--- a/Makefile
+++ b/Makefile
@@ -768,10 +768,6 @@ config.mak: configure
help_mp.h: help/help_mp-en.h $(HELP_FILE)
help/help_create.sh $(HELP_FILE) $(CHARSET)
-# rebuild version.h each time the working copy is updated
-ifeq ($(wildcard .svn/entries),.svn/entries)
-version.h: .svn/entries
-endif
version.h: version.sh
./$< `$(CC) -dumpversion`