[uClibc-cvs] svn commit: trunk/uClibc

vapier at uclibc.org vapier at uclibc.org
Wed Aug 17 01:04:35 UTC 2005


Author: vapier
Date: 2005-08-16 19:04:34 -0600 (Tue, 16 Aug 2005)
New Revision: 11177

Log:
dont install linux/asm headers if KERNEL_SOURCE == DEVEL_PREFIX

Modified:
   trunk/uClibc/Makefile


Changeset:
Modified: trunk/uClibc/Makefile
===================================================================
--- trunk/uClibc/Makefile	2005-08-17 00:25:30 UTC (rev 11176)
+++ trunk/uClibc/Makefile	2005-08-17 01:04:34 UTC (rev 11177)
@@ -158,7 +158,12 @@
 	$(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.




More information about the uClibc-cvs mailing list