[patch 37/39] dont build doc dirs when crosscompiling

Robert Schwebel <[email protected]> Sun, 04 Feb 2007 03:31:57 +0100
Newsgroups gmane.comp.gnu.dotgnu.developer
Message-ID <[email protected]>
We avoid to build the documentation when cross compiling; we probably
could fix that up, but it is really difficult, because some tools need
to be build for the "build" platform instead of the "host" one, but they
also need libs, so we more or less have to rebuild the whole platform
for both architectures.

Signed-off-by: Robert Schwebel <[email protected]>

---

 Makefile.am |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Index: Makefile.am
===================================================================
--- Makefile.am.orig
+++ Makefile.am
@@ -26,12 +26,15 @@ OPT_SUBDIRS += \
 	ilstrip \
 	ilranlib \
 	ilgac \
-	csdoc \
 	csant \
 	clrwrap \
 	samples \
-	doc \
 	tests
+
+if !CROSS_COMPILING
+OPT_SUBDIRS += csdoc doc
+endif
+
 else
 ## We only want to build the runtime engine.
 OPT_SUBDIRS += \

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9