aboutsummaryrefslogtreecommitdiff
path: root/Makefile.custom
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-04-11 10:54:37 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-04-11 10:54:37 +0000
commit80f647c21c4457b5f74f5cdd87b789a0fa0d7c0d (patch)
treeca05202bb6c034cc8a6969d21abfa3ff39fb86de /Makefile.custom
parent119f87be2a4fb8d45a67be19f0341b8f3d96b091 (diff)
downloadbusybox-80f647c21c4457b5f74f5cdd87b789a0fa0d7c0d.tar.gz
busybox-80f647c21c4457b5f74f5cdd87b789a0fa0d7c0d.tar.bz2
build system: use POSIX options only for cp
cp: improve comment
Diffstat (limited to 'Makefile.custom')
-rw-r--r--Makefile.custom5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.custom b/Makefile.custom
index e4a616f65..3334b31eb 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -47,10 +47,11 @@ ifneq ($(strip $(DO_INSTALL_LIBS)),n)
endif
# Not very elegant: copies testsuite to objdir...
+# (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be))
.PHONY: check
.PHONY: test
check test: busybox busybox.links
- test -d $(objtree)/testsuite || cp -a $(srctree)/testsuite $(objtree)
+ test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree)
bindir=$(objtree) srcdir=$(srctree)/testsuite \
$(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)"
@@ -58,7 +59,7 @@ check test: busybox busybox.links
release: distclean
cd ..; \
rm -r -f busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); \
- cp -a busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \
+ cp -pPR busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \
find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \
-name .svn \
-print \