diff --git a/compiler/Makefile b/compiler/Makefile index 9c9a7213eb..c53f78ef00 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -353,12 +353,13 @@ ifeq ($(REVSTR),) ifneq ($(SVNVERSION),) REVSTR:=$(shell $(SVNVERSION) -c .) export REVSTR -override LOCALOPT+=-dREVINC endif endif REVINC:=$(wildcard revision.inc) ifneq ($(REVINC),) -ifeq ($(REVSTR),) +override LOCALOPT+=-dREVINC +else +ifneq ($(REVSTR),) override LOCALOPT+=-dREVINC endif endif diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 783dfad162..31f15fa9c5 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -158,13 +158,14 @@ ifeq ($(REVSTR),) ifneq ($(SVNVERSION),) REVSTR:=$(shell $(SVNVERSION) -c .) export REVSTR -override LOCALOPT+=-dREVINC endif endif REVINC:=$(wildcard revision.inc) ifneq ($(REVINC),) -ifeq ($(REVSTR),) +override LOCALOPT+=-dREVINC +else +ifneq ($(REVSTR),) override LOCALOPT+=-dREVINC endif endif