|
@@ -151,6 +151,12 @@ NOCPUDEF=1
|
|
MSGFILE=msg/error$(FPCLANG).msg
|
|
MSGFILE=msg/error$(FPCLANG).msg
|
|
|
|
|
|
|
|
|
|
|
|
+# Check if revision.inc is present
|
|
|
|
+REVINC:=$(wildcard revision.inc)
|
|
|
|
+ifneq ($(REVINC),)
|
|
|
|
+# File revision.inc is present
|
|
|
|
+#Use it to compile version.pas unit
|
|
|
|
+override LOCALOPT+=-dREVINC
|
|
# Automatically update revision.inc if
|
|
# Automatically update revision.inc if
|
|
# svnversion executable is available
|
|
# svnversion executable is available
|
|
SVNVERSION:=$(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))
|
|
SVNVERSION:=$(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))
|
|
@@ -160,14 +166,6 @@ REVSTR:=$(shell $(SVNVERSION) -c .)
|
|
export REVSTR
|
|
export REVSTR
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
-
|
|
|
|
-REVINC:=$(wildcard revision.inc)
|
|
|
|
-ifneq ($(REVINC),)
|
|
|
|
-override LOCALOPT+=-dREVINC
|
|
|
|
-else
|
|
|
|
-ifneq ($(REVSTR),)
|
|
|
|
-override LOCALOPT+=-dREVINC
|
|
|
|
-endif
|
|
|
|
endif
|
|
endif
|
|
|
|
|
|
# set correct defines (-d$(CPU_TARGET) is automaticly added in makefile.fpc)
|
|
# set correct defines (-d$(CPU_TARGET) is automaticly added in makefile.fpc)
|