Browse Source

* allow to specify FPCSRCDIR and FPDOC

peter 22 years ago
parent
commit
dbf5fd90ca
1 changed files with 11 additions and 2 deletions
  1. 11 2
      docs/Makefile

+ 11 - 2
docs/Makefile

@@ -44,7 +44,13 @@ ifndef DOCINSTALLDIR
 DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell ppc386 -iV)
 DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell ppc386 -iV)
 endif
 endif
 
 
+ifndef FPDOC
 FPDOC=fpdoc
 FPDOC=fpdoc
+endif
+
+ifndef FPCSRCDIR
+FPCSRCDIR=..
+endif
 
 
 # Use Ascii mode ? (i.e. no pics in produced HTML ?)
 # Use Ascii mode ? (i.e. no pics in produced HTML ?)
 ifndef ASCIIMODE
 ifndef ASCIIMODE
@@ -312,7 +318,7 @@ endif
 #####################################################################
 #####################################################################
 # Tex from XML
 # Tex from XML
 #####################################################################
 #####################################################################
-FCLOPTS=--package=fcl --descr=classes.xml --input='../fcl/linux/classes.pp -Fi../fcl/inc'
+FCLOPTS=--package=fcl --descr=classes.xml --input='$(FPCSRCDIR)/fcl/linux/classes.pp -Fi$(FPCSRCDIR)/fcl/inc'
 
 
 fcl.inc: classes.xml
 fcl.inc: classes.xml
 	$(FPDOC) --output=fcl.inc $(FCLOPTS) --format=latex
 	$(FPDOC) --output=fcl.inc $(FCLOPTS) --format=latex
@@ -543,7 +549,10 @@ execute:
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.21  2003-03-18 21:25:23  michael
+# Revision 1.22  2003-05-29 10:25:51  peter
+#   * allow to specify FPCSRCDIR and FPDOC
+#
+# Revision 1.21  2003/03/18 21:25:23  michael
 # + Added fcl docs and fpdoc
 # + Added fcl docs and fpdoc
 #
 #
 # Revision 1.20  2003/03/18 00:14:51  michael
 # Revision 1.20  2003/03/18 00:14:51  michael