aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dm b/dm
index 83b909e..36d6bbe 100755
--- a/dm
+++ b/dm
@@ -100,7 +100,7 @@ FORCE:
build/%: % $(SUBSTS_FILE)
[ -d $(dir $@) ] || mkdir -p $(dir $@)
- rsync -a $< $@
+ ( [ -d $< ] && rsync -a $<* $@ ) || rsync -a $< $@
@# sed will only be called if $* is in LOCAL_FILES.
@# Thought of using ifeq/ifneq, but the gmake manual reads:
@# "make evaluates conditionals when it reads a makefile. Consequently,