From 9d86494cb689ef6e8c04f6b569f0d19252731436 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 4 Mar 2015 17:38:19 -0500 Subject: Makefile: add either `-t` or `-T` to all invocations of cp(1). --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ccc0843..3c2e808 100644 --- a/Makefile +++ b/Makefile @@ -136,7 +136,7 @@ build/extract/git/%: # magic foreach loop build/extract/svn/%: build/download/svn/% $(RM) -r '$@' $(MKDIRS) '$(@D)' - $(CPR) '$<' '$@' || { $(RM) -r '$@'; $(FAIL); } + $(CPR) -T '$<' '$@' || { $(RM) -r '$@'; $(FAIL); } $(TOUCH) '$@' # tar @@ -151,7 +151,7 @@ build/extract/tar/%: # magic foreach loop # union build/extract/union/%: # magic foreach loop $(RM) -r '$@' - $(MKDIRS) '$@' && $(CPR) $(foreach d,$(filter build/extract/%,$^),'$d'/*) '$@/' || { $(RM) -r '$@'; $(FAIL); } + $(MKDIRS) '$@' && $(CPR) -t $(foreach d,$(filter build/extract/%,$^),'$d'/*) '$@/' || { $(RM) -r '$@'; $(FAIL); } $(TOUCH) '$@' # magic foreach loop (git, tar) @@ -178,7 +178,7 @@ $(addprefix build/workdir/,$(packages)): \ build/workdir/%: $(RM) -r '$@' $(MKDIRS) '$(@D)' - $(CPR) '$<' '$@' || { $(RM) -r '$@'; $(FAIL); } + $(CPR) -T '$<' '$@' || { $(RM) -r '$@'; $(FAIL); } cd '$@' && \ for patch in $(sort $(wildcard $(top)/rules/$*/*.patch)); do \ $(PATCH) -p1 < $$patch || { $(RM) -r '$@'; $(FAIL); }; \ -- cgit v1.2.3-54-g00ecf