summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-17 01:04:34 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-17 01:04:34 +0000
commit08a9752c5b56880abc918ea17bc6a740e1b366e2 (patch)
tree7cbfc578d17a7084fdf58d20df55e221c393845e /Makefile
parent0778c8cb377a6375eefd658e8114215f63a1f4c3 (diff)
downloaduClibc-alpine-08a9752c5b56880abc918ea17bc6a740e1b366e2.tar.bz2
uClibc-alpine-08a9752c5b56880abc918ea17bc6a740e1b366e2.tar.xz
dont install linux/asm headers if KERNEL_SOURCE == DEVEL_PREFIX
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d7cb0d1f..a8ad7154e 100644
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,12 @@ install_dev:
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
- tar -chf - include --exclude .svn --exclude CVS \
+ if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
+ extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
+ else \
+ extra_exclude="" ; \
+ fi ; \
+ tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
# Remove floating point related headers since float support is disabled.