Comment change.
[binutils-gdb.git] / Makefile.in
index b3580ea75e8aa0e53b595d9e3d2a9560cb90bef9..61551bb3d36adcb19be8e3b09cee20f77e7ff145 100644 (file)
@@ -366,29 +366,28 @@ ALL_MODULES = \
        all-uudecode \
        all-wdiff 
 
-
 # This is a list of the check targets for all of the modules which are
 # compiled using $(FLAGS_TO_PASS).
 # This is a list of the check targets for all of the modules which are
 # compiled using $(FLAGS_TO_PASS).
 #
-# The list is in two parts.  Those that only have checks when 
-# compiling 
-CROSS_CHECK_MODULES = \
+# The list is in two parts.  The first lists those tools which
+# are tested as part of the host's native tool-chain, and not
+# tested in a cross configuration.
+NATIVE_CHECK_MODULES = \
+       check-byacc \
        check-flex
 
-HOST_ONLY_CHECK_MODULES = \
+CROSS_CHECK_MODULES = \
        check-autoconf \
        check-bfd \
        check-binutils \
-       check-byacc \
        check-cvs \
        check-dejagnu \
        check-diff \
        check-etc \
        check-fileutils \
        check-find \
-       check-flex \
        check-gas \
        check-gawk \
        check-gdb \
@@ -422,7 +421,8 @@ HOST_ONLY_CHECK_MODULES = \
        check-time \
        check-uudecode \
        check-wdiff
-CHECK_MODULES=$(HOST_ONLY_CHECK_MODULES) $(CROSS_CHECK_MODULES)
+
+CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
 
 # This is a list of the install targets for all of the modules which are
 # compiled using $(FLAGS_TO_PASS).
@@ -702,10 +702,14 @@ gcc-no-fixedincludes:
 .PHONY: $(ALL_MODULES) all-glob all-gui
 $(ALL_MODULES) all-glob all-gui all-libproc:
        @dir=`echo $@ | sed -e 's/all-//'`; \
-       if [ -f ./$${dir}/Makefile ] ; then \
-         r=`pwd`; export r; \
-         srcroot=`cd $(srcdir); pwd`; export srcroot; \
-         (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+       if [ -d ./$${dir} ] ; then \
+         if [ -f ./$${dir}/Makefile ] ; then \
+           r=`pwd`; export r; \
+           srcroot=`cd $(srcdir); pwd`; export srcroot; \
+           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+         else \
+           true ; \
+         fi; \
        else \
          true; \
        fi
@@ -713,16 +717,18 @@ $(ALL_MODULES) all-glob all-gui all-libproc:
 # This rule is used to check the modules which use FLAGS_TO_PASS.  To
 # build a target check-X means to cd to X and make all.
 
-.PHONY: $(CHECK_MODULES) $(HOST_ONLY_CHECK_MODULES) $(CROSS_CHECK_MODULES)
-$(HOST_ONLY_CHECK_MODULES):
-       if [ $(host_canonical) = $(target_canonical) ] ; then \
-         @dir=`echo $@ | sed -e 's/check-//'`; \
-         if [ -f ./$${dir}/Makefile ] ; then \
-           r=`pwd`; export r; \
-           srcroot=`cd $(srcdir); pwd`; export srcroot; \
-           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
-         else \
-           true; \
+.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
+$(NATIVE_CHECK_MODULES):
+       @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+         dir=`echo $@ | sed -e 's/check-//'`; \
+         if [ -d ./$${dir} ] ; then \
+           if [ -f ./$${dir}/Makefile ] ; then \
+             r=`pwd`; export r; \
+             srcroot=`cd $(srcdir); pwd`; export srcroot; \
+             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
+           else \
+             true; \
+           fi ; \
          fi; \
        fi