summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-18 20:24:00 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-18 20:24:00 +0000
commit0af31576f148f8ad3a4dd7fab2dea7132e9e6f5b (patch)
treee55c0463cce187ddce509e4104579d2b6281feb9 /Makefile.in
parent9d66f22bb072f852846e3c96c0adc666d7ac51d0 (diff)
Run headers only once, until better solution is found
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index ef77f969d..64fa40597 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -57,6 +57,7 @@ else
export header_extra_args = -n
endif
headers: include/bits/uClibc_config.h
+ifeq ($(wildcard include/headers_done),)
@$(SHELL_SET_X); \
$(top_srcdir)extra/scripts/fix_includes.sh \
-k $(KERNEL_SOURCE) -t $(TARGET_ARCH) \
@@ -98,6 +99,8 @@ headers: include/bits/uClibc_config.h
mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
fi
$(MAKE) headers-y
+ touch include/headers_done
+endif
# Command used to download source code
WGET:=wget --passive-ftp
@@ -131,6 +134,7 @@ install_headers:
fi ; \
tar -chf - include --exclude .svn $$extra_exclude \
| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/headers_done
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ssp-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h
ifneq ($(UCLIBC_HAS_FLOATS),y)
@@ -328,7 +332,7 @@ clean:
$(RM) lib*/*.a ldso/*/*.a libpthread/*/*.a
$(RM) libc/misc/internals/interp.c
$(RM) libc/stdio/*64.c
- $(RM) include/fpu_control.h include/dl-osinfo.h
+ $(RM) include/fpu_control.h include/dl-osinfo.h include/headers_done
$(MAKE) -C extra/locale clean
$(MAKE) headers_clean-y
$(MAKE) -C test clean