From f5489337f99ff589e3b4fe065168910beffaba86 Mon Sep 17 00:00:00 2001
From: "Marcus M. Darden" <mmdarden@umich.edu>
Date: Tue, 17 Sep 2019 15:29:37 -0400
Subject: [PATCH] Fix the mkdir bug in sync2caen

Prior to this change, the parent directory wasn't created and only
created leaf directories.
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c37ec19..06ef2b1 100644
--- a/Makefile
+++ b/Makefile
@@ -167,15 +167,16 @@ fullsubmit: identifier $(FULL_SUBMITFILE)
 
 sync2caen: REMOTE_PATH := ${REMOTE_BASEDIR}/$(notdir $(shell pwd))
 sync2caen:
+	ssh login.engin.umich.edu "mkdir -p '${REMOTE_PATH}'"
 	# Synchronize local files into target directory on CAEN
 	rsync \
       -av \
       --delete \
       --exclude '.git*' \
       --exclude '.vs*' \  
-	  --filter=":- .gitignore" \
+      --filter=":- .gitignore" \
       ./ \
-      "login.engin.umich.edu:'${REMOTE_PATH}'/"
+      "login.engin.umich.edu:'${REMOTE_PATH}/'"
 
 define MAKEFILE_HELP
 EECS281 Advanced Makefile Help
-- 
GitLab