Browse Source

* initial support for INSTALL_BINDIR. If that option isn't used behaviour
should be the same as old. Mantis #27272

git-svn-id: trunk@31166 -

marco 10 years ago
parent
commit
c9ae6b34c6
7 changed files with 22 additions and 0 deletions
  1. 3 0
      ide/Makefile
  2. 4 0
      ide/Makefile.fpc
  3. 3 0
      packages/Makefile
  4. 3 0
      packages/Makefile.fpc
  5. 2 0
      packages/fpmkunit/src/fpmkunit.pp
  6. 3 0
      utils/Makefile
  7. 4 0
      utils/Makefile.fpc

+ 3 - 0
ide/Makefile

@@ -328,6 +328,9 @@ endif
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 endif
 endif

+ 4 - 0
ide/Makefile.fpc

@@ -16,6 +16,10 @@ fpcdir=..
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
+
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)

+ 3 - 0
packages/Makefile

@@ -328,6 +328,9 @@ endif
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 endif
 endif

+ 3 - 0
packages/Makefile.fpc

@@ -17,6 +17,9 @@ fpcdir=..
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)

+ 2 - 0
packages/fpmkunit/src/fpmkunit.pp

@@ -4700,6 +4700,8 @@ begin
 {$endif NO_THREADING}
 {$endif NO_THREADING}
     else if CheckOption(I,'B','baseinstalldir') then
     else if CheckOption(I,'B','baseinstalldir') then
       Defaults.BaseInstallDir:=OptionArg(I)
       Defaults.BaseInstallDir:=OptionArg(I)
+    else if CheckOption(I,'B','bininstalldir') then
+      Defaults.BinInstallDir:=OptionArg(I)
     else if CheckOption(I,'U','unitinstalldir') then
     else if CheckOption(I,'U','unitinstalldir') then
       Defaults.UnitInstallDir:=OptionArg(I)
       Defaults.UnitInstallDir:=OptionArg(I)
     else if CheckOption(I,'UL','localunitdir') then
     else if CheckOption(I,'UL','localunitdir') then

+ 3 - 0
utils/Makefile

@@ -328,6 +328,9 @@ endif
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 endif
 endif

+ 4 - 0
utils/Makefile.fpc

@@ -16,6 +16,10 @@ fpcdir=..
 ifdef INSTALL_UNITDIR
 ifdef INSTALL_UNITDIR
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 FPMAKE_INSTALL_OPT+=--unitinstalldir=$(INSTALL_UNITDIR)
 endif
 endif
+ifdef INSTALL_BINDIR
+FPMAKE_INSTALL_OPT+=--bininstalldir=$(INSTALL_BINDIR)
+endif
+
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 # Translate OS_TARGET and CPU_TARGET to fpmake's --os and --cpu parameters
 ifdef OS_TARGET
 ifdef OS_TARGET
 FPC_TARGETOPT+=--os=$(OS_TARGET)
 FPC_TARGETOPT+=--os=$(OS_TARGET)