Skip to content
Snippets Groups Projects
Commit 710a34af authored by Marcus M. Darden's avatar Marcus M. Darden
Browse files

Clean up and finalize sync2caen target.

parent a3d59839
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ debug: clean $(EXECUTABLE) ...@@ -77,7 +77,7 @@ debug: clean $(EXECUTABLE)
# make profile - will compile "all" with $(CXXFLAGS) and the -pg flag # make profile - will compile "all" with $(CXXFLAGS) and the -pg flag
profile: CXXFLAGS += -pg profile: CXXFLAGS += -pg
profile: clean all profile: clean $(EXECUTABLE)
# make static - will perform static analysis in the matter currently used # make static - will perform static analysis in the matter currently used
# on the autograder # on the autograder
...@@ -87,8 +87,8 @@ static: ...@@ -87,8 +87,8 @@ static:
# Build both release and debug executables # Build both release and debug executables
all: clean all: clean
make -Rr release $(MAKE) -Rr release
make debug $(MAKE) debug
$(EXECUTABLE): $(OBJECTS) $(EXECUTABLE): $(OBJECTS)
ifeq ($(EXECUTABLE), executable) ifeq ($(EXECUTABLE), executable)
...@@ -151,33 +151,18 @@ $(FULL_SUBMITFILE): $(FULL_SUBMITFILES) ...@@ -151,33 +151,18 @@ $(FULL_SUBMITFILE): $(FULL_SUBMITFILES)
partialsubmit: $(PARTIAL_SUBMITFILE) partialsubmit: $(PARTIAL_SUBMITFILE)
fullsubmit: $(FULL_SUBMITFILE) fullsubmit: $(FULL_SUBMITFILE)
sync2caen: REMOTE_PATH:="${REMOTE_BASEDIR}/$$(basename `pwd`)" sync2caen: REMOTE_PATH := ${REMOTE_BASEDIR}/$(notdir $(shell pwd))
sync2caen: sync2caen:
@echo "Build time: `date`" > rsync.log # Make target directory on CAEN
@-open rsync.log ssh login.engin.umich.edu "mkdir -p ${REMOTE_PATH}"
# Make target directory on CAEN server # Synchronize local files into target directory on CAEN
@echo "Making remote target directory ... ${REMOTE_PATH}" \ rsync \
>> rsync.log
@ssh login.engin.umich.edu "mkdir -p ${REMOTE_PATH}" \
>> rsync.log
# Synchronize local files into target directory on CAEN
@echo "Synchronizing local files to CAEN ..." \
>> rsync.log
@rsync \
-av \ -av \
--delete \ --delete \
--exclude '.git*' \ --exclude '.git*' \
--exclude 'rsync.log' \
--exclude '.DS_Store' \
--filter=":- .gitignore" \ --filter=":- .gitignore" \
./ \ ./ \
"login.engin.umich.edu:${REMOTE_PATH}/" \ "login.engin.umich.edu:${REMOTE_PATH}/"
>> rsync.log
# Do remote builds
@echo "Making remote executables with \"make all\" ..." \
>> rsync.log
@ssh login.engin.umich.edu "cd ${REMOTE_PATH} && make all" \
>> rsync.log
define MAKEFILE_HELP define MAKEFILE_HELP
EECS281 Advanced Makefile Help EECS281 Advanced Makefile Help
...@@ -226,12 +211,12 @@ EECS281 Advanced Makefile Help ...@@ -226,12 +211,12 @@ EECS281 Advanced Makefile Help
B) Usage: B) Usage:
$$ make static $$ make static
* Mac to CAEN upload support * Sync to CAEN support
A) Requires an .ssh/config file with a login.engin.umich.edu host A) Requires an .ssh/config file with a login.engin.umich.edu host
defined, SSH Multiplexing enabled, and an open SSH connection. defined, SSH Multiplexing enabled, and an open SSH connection.
B) Edit the REMOTE_BASEDIR variable if default is not preferred. B) Edit the REMOTE_BASEDIR variable if default is not preferred.
C) Usage: C) Usage:
$$ make mac2caen $$ make sync2caen
endef endef
export MAKEFILE_HELP export MAKEFILE_HELP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment