summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 21:51:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 21:51:12 +0000
commit999f12709a9afc310f08bf1216e9bbf5ea37774d (patch)
treea18939328407c8ad6d4c2c8ea6c1eb1d02019f24 /Makefile.in
parentf92843b334e2eb2ea832c718c2ae2124cc97c8a6 (diff)
build system: stop creating ugly double-slash symlinks like
fenv.h -> ../../libc/sysdeps/linux/i386/bits//fenv.h
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index c03ea4f39..1608dc7da 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54,7 +54,10 @@ export header_extra_args = -n
endif
HEADERS_BITS_COMMON := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/common/bits/*.h))
HEADERS_BITS_ARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h))
-HEADERS_BITS_SUBARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/*.h))
+HEADERS_BITS_SUBARCH :=
+ifneq ($(TARGET_SUBARCH),)
+HEADERS_BITS_SUBARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/*.h))
+endif
HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH) $(HEADERS_BITS_SUBARCH),$(HEADERS_BITS_COMMON))
headers: include/bits/uClibc_config.h
$(Q)$(MAKE) headers-y