Ver código fonte

* allow overriding the FPCMAKE used for installing by specifying FPCMAKE
on the make command line

git-svn-id: trunk@22505 -

Jonas Maebe 13 anos atrás
pai
commit
91e1bdb08c
2 arquivos alterados com 8 adições e 0 exclusões
  1. 4 0
      Makefile
  2. 4 0
      Makefile.fpc

+ 4 - 0
Makefile

@@ -406,11 +406,15 @@ ifndef DIST_DESTDIR
 export DIST_DESTDIR:=$(BASEDIR)
 endif
 BASEPACKDIR=$(BASEDIR)/basepack
+ifndef FPCMAKE
 ifeq ($(FULL_SOURCE),$(FULL_TARGET))
 FPCMAKENEW=$(BASEDIR)/utils/fpcm/fpcmake$(EXEEXT)
 else
 FPCMAKENEW=fpcmake
 endif
+else
+FPCMAKENEW=$(FPCMAKE)
+endif
 CLEANOPTS=FPC=$(PPNEW)
 BUILDOPTS=FPC=$(PPNEW) RELEASE=1
 INSTALLOPTS=FPC=$(PPNEW) ZIPDESTDIR=$(BASEDIR) FPCMAKE=$(FPCMAKENEW)

+ 4 - 0
Makefile.fpc

@@ -149,11 +149,15 @@ endif
 BASEPACKDIR=$(BASEDIR)/basepack
 
 # Newly created fpcmake
+ifndef FPCMAKE
 ifeq ($(FULL_SOURCE),$(FULL_TARGET))
 FPCMAKENEW=$(BASEDIR)/utils/fpcm/fpcmake$(EXEEXT)
 else
 FPCMAKENEW=fpcmake
 endif
+else
+FPCMAKENEW=$(FPCMAKE)
+endif
 
 # Build/install options
 CLEANOPTS=FPC=$(PPNEW)