Explorar el Código

when installing the include files, skip .svn, linux, and asm dirs since they are just symlinks (and could possibly be pointing to right where we are installing)

Mike Frysinger hace 21 años
padre
commit
8196d43357
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -158,7 +158,9 @@ 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 | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+	tar -chf - include \
+		--exclude .svn --exclude include/linux --exclude include/asm'*' \
+		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
 	# Remove floating point related headers since float support is disabled.
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/complex.h