This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
toplevel makefile question
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc at gcc dot gnu dot org
- Cc: dj at redhat dot com
- Date: Thu, 14 Nov 2002 17:07:57 -0500
- Subject: toplevel makefile question
I'd like to eliminate the differences between these two makefile targets in
the top level:
.PHONY: install-gcc
install-gcc:
@if [ -f ./gcc/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
else \
true; \
fi
.PHONY: install-gcc-cross
install-gcc-cross:
@if [ -f ./gcc/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
else \
true; \
fi
Note that the only difference is the extra restriction of LANGUAGES for
a cross install. This seems frankly bogus to me. What is the purpose of
this? If it is truly necessary, would it suffice to include a
@maybe_restrict_languages@ bit which configure set to restrict languages
if host != target ?
--Nathanael