Linux version can display SVN revision number in help screen, ONLY IF svn is installed. Otherwise, the normal version number shows.
This commit is contained in:
parent
b8379a99bc
commit
c545911374
18
Makefile
18
Makefile
|
@ -11,6 +11,7 @@ STRIP=strip -s
|
||||||
DEL=rm -f
|
DEL=rm -f
|
||||||
OE=.o
|
OE=.o
|
||||||
OUT=vbam
|
OUT=vbam
|
||||||
|
BASEVERSION=1.8.0
|
||||||
|
|
||||||
ifeq ($(MACHINE),Darwin)
|
ifeq ($(MACHINE),Darwin)
|
||||||
LFLAGS=-lz -lpng -framework OpenGL `sdl-config --libs`
|
LFLAGS=-lz -lpng -framework OpenGL `sdl-config --libs`
|
||||||
|
@ -38,6 +39,23 @@ ifndef $(PREFIX)
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef VERSION
|
||||||
|
SVNVERSION=$(shell test -d .svn && svnversion -n .)
|
||||||
|
BADCHARS=$(findstring :,$(SVNVERSION))$(findstring S,$(SVNVERSION))
|
||||||
|
ifeq ($(BADCHARS),)
|
||||||
|
ifneq ($(SVNVERSION),)
|
||||||
|
ifneq ($(SVNVERSION),exported)
|
||||||
|
VERSION=$(BASEVERSION)-r$(subst M,,$(SVNVERSION))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef VERSION
|
||||||
|
CXXFLAGS+=-DVERSION=\"$(VERSION)\"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
MAINDIR=src
|
MAINDIR=src
|
||||||
SDLDIR=src/sdl
|
SDLDIR=src/sdl
|
||||||
DMGDIR=src/gb
|
DMGDIR=src/gb
|
||||||
|
|
Loading…
Reference in New Issue