Browse Source

* x86 dependancy fixed, reported by Claviola

marco 21 years ago
parent
commit
6fcd7583c1
2 changed files with 47 additions and 4 deletions
  1. 26 3
      docs/Makefile
  2. 21 1
      install/doc/Makefile

+ 26 - 3
docs/Makefile

@@ -21,7 +21,27 @@
 # so a make html and make install goes quickly
 #INSTALLDEBUG=1
 
-HOSTOS=$(shell ppc386 -iSO)
+ifndef FPC
+ifdef PP
+FPC=$(PP)
+endif
+endif
+ifndef FPC
+FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
+ifneq ($(FPCPROG),)
+FPCPROG:=$(firstword $(FPCPROG))
+FPC:=$(shell $(FPCPROG) -PB)
+ifneq ($(findstring Error,$(FPC)),)
+override FPC=ppc386
+endif
+else
+override FPC=ppc386
+endif
+endif
+override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
+override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
+
+HOSTOS=$(shell $(FPC) -iSO)
 # Which docs are made when 'html' is specified
 HTML = user units ref prog fpdoc fcl chart
 
@@ -42,7 +62,7 @@ PREFIXINSTALLDIR=/usr
 endif
 
 ifndef DOCINSTALLDIR
-DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell ppc386 -iV)
+DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell $(FPC) -iV)
 endif
 
 ifndef FPDOC
@@ -558,7 +578,10 @@ execute:
 
 #
 # $Log$
-# Revision 1.26  2004-05-18 22:10:56  michael
+# Revision 1.27  2004-07-17 21:02:28  marco
+#  * x86 dependancy fixed, reported by Claviola
+#
+# Revision 1.26  2004/05/18 22:10:56  michael
 # + Updates for 1.9.4. Mostly MACPas related
 #
 # Revision 1.25  2004/03/19 17:39:03  peter

+ 21 - 1
install/doc/Makefile

@@ -2,12 +2,32 @@
 # Man page installation for linux
 #
 
+ifndef FPC
+ifdef PP
+FPC=$(PP)
+endif
+endif
+ifndef FPC
+FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
+ifneq ($(FPCPROG),)
+FPCPROG:=$(firstword $(FPCPROG))
+FPC:=$(shell $(FPCPROG) -PB)
+ifneq ($(findstring Error,$(FPC)),)
+override FPC=ppc386
+endif
+else
+override FPC=ppc386
+endif
+endif
+override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
+override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
+
 ifndef INSTALL_PREFIX
 INSTALL_PREFIX=/usr/local
 endif
 
 ifndef INSTALL_DOCDIR
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/fpc-$(shell ppc386 -iV)
+INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/fpc-$(shell $(FPC) -iV)
 endif 
 
 installdoc: