summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 07:15:40 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 07:15:40 +0000
commit8c5a553b649a5a04130e5f95ecafe658f5342a52 (patch)
tree37b5a9e3b70b379cf49cb2fa04debe9dca85d706
parentd363d317eb832d4f23a8f878245ca5a04fbca03c (diff)
use an exclude from file rather than trying to pass wildcards in shell
-rw-r--r--Makefile.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index f9a101094..f7fb2c87f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -107,13 +107,13 @@ RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/rela
# Installs header files.
install_headers:
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
+ echo -e ".svn\n.cvsignore\nCVS" > tar_exclude ; \
if [ "$(KERNEL_SOURCE)" = "$(DEVEL_PREFIX)" ] ; then \
- extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
- else \
- extra_exclude="" ; \
+ ls -1d include/linux include/asm* >> tar_exclude ; \
fi ; \
- $(TAR) -chf - --exclude .svn $$extra_exclude include \
+ $(TAR) -chf - --exclude-from tar_exclude include \
| $(TAR) -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+ rm -f tar_exclude
echo -e '#ifndef _LIBC_INTERNAL_H\n#define _LIBC_INTERNAL_H 1\n#endif\n' > \
$(PREFIX)$(DEVEL_PREFIX)include/libc-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h