Эх сурвалжийг харах

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 20 жил өмнө
parent
commit
8196d43357
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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