From 861243899e7647fdff58763c4851c162fc2bdf57 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 17 Jan 2008 19:29:02 +0000 Subject: bits/sysnum.h needs a cross compiler to be built. Fortunately, this header is not needed to build gcc. Move generation of this header. (Yann E. MORIN) --- Makefile.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile.in b/Makefile.in index f65bc82df..a0969c1fc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -91,6 +91,12 @@ headers: include/bits/uClibc_config.h $(LN) -fs $$i .; \ done; \ fi +ifeq ($(UCLIBC_HAS_LOCALE),y) + $(MAKE) -C extra/locale locale_headers +endif + + +pregen: headers $(Q)\ set -e; \ cd $(top_builddir); \ @@ -102,11 +108,7 @@ headers: include/bits/uClibc_config.h else \ mv -f $$tmp include/bits/sysnum.h; \ fi -ifeq ($(UCLIBC_HAS_LOCALE),y) - $(MAKE) -C extra/locale locale_headers -endif -pregen: headers install: install_runtime install_dev @@ -114,7 +116,7 @@ install: install_runtime install_dev RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)lib $(RUNTIME_PREFIX)lib) # Installs header files. -install_headers: +install_headers: headers $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \ $(TAR) -chf - -X tar_exclude include \ -- cgit v1.2.3