Browse Source

* add -dREVINC even when REVSTR is already set, needed for cycle

git-svn-id: trunk@14077 -
pierre 15 years ago
parent
commit
2295a9f23b
2 changed files with 6 additions and 4 deletions
  1. 3 2
      compiler/Makefile
  2. 3 2
      compiler/Makefile.fpc

+ 3 - 2
compiler/Makefile

@@ -353,12 +353,13 @@ ifeq ($(REVSTR),)
 ifneq ($(SVNVERSION),)
 ifneq ($(SVNVERSION),)
 REVSTR:=$(shell $(SVNVERSION) -c .)
 REVSTR:=$(shell $(SVNVERSION) -c .)
 export REVSTR
 export REVSTR
-override LOCALOPT+=-dREVINC
 endif
 endif
 endif
 endif
 REVINC:=$(wildcard revision.inc)
 REVINC:=$(wildcard revision.inc)
 ifneq ($(REVINC),)
 ifneq ($(REVINC),)
-ifeq ($(REVSTR),)
+override LOCALOPT+=-dREVINC
+else
+ifneq ($(REVSTR),)
 override LOCALOPT+=-dREVINC
 override LOCALOPT+=-dREVINC
 endif
 endif
 endif
 endif

+ 3 - 2
compiler/Makefile.fpc

@@ -158,13 +158,14 @@ ifeq ($(REVSTR),)
 ifneq ($(SVNVERSION),)
 ifneq ($(SVNVERSION),)
 REVSTR:=$(shell $(SVNVERSION) -c .)
 REVSTR:=$(shell $(SVNVERSION) -c .)
 export REVSTR
 export REVSTR
-override LOCALOPT+=-dREVINC
 endif
 endif
 endif
 endif
 
 
 REVINC:=$(wildcard revision.inc)
 REVINC:=$(wildcard revision.inc)
 ifneq ($(REVINC),)
 ifneq ($(REVINC),)
-ifeq ($(REVSTR),)
+override LOCALOPT+=-dREVINC
+else
+ifneq ($(REVSTR),)
 override LOCALOPT+=-dREVINC
 override LOCALOPT+=-dREVINC
 endif
 endif
 endif
 endif