Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
makefile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EECS 281
makefile
Commits
710a34af
Commit
710a34af
authored
7 years ago
by
Marcus M. Darden
Browse files
Options
Downloads
Patches
Plain Diff
Clean up and finalize sync2caen target.
parent
a3d59839
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+11
-26
11 additions, 26 deletions
Makefile
with
11 additions
and
26 deletions
Makefile
+
11
−
26
View file @
710a34af
...
...
@@ -77,7 +77,7 @@ debug: clean $(EXECUTABLE)
# make profile - will compile "all" with $(CXXFLAGS) and the -pg flag
profile
:
CXXFLAGS += -pg
profile
:
clean
all
profile
:
clean
$(EXECUTABLE)
# make static - will perform static analysis in the matter currently used
# on the autograder
...
...
@@ -87,8 +87,8 @@ static:
# Build both release and debug executables
all
:
clean
make
-Rr
release
make
debug
$(
MAKE
)
-Rr
release
$(
MAKE
)
debug
$(EXECUTABLE)
:
$(OBJECTS)
ifeq
($(EXECUTABLE), executable)
...
...
@@ -151,33 +151,18 @@ $(FULL_SUBMITFILE): $(FULL_SUBMITFILES)
partialsubmit
:
$(PARTIAL_SUBMITFILE)
fullsubmit
:
$(FULL_SUBMITFILE)
sync2caen
:
REMOTE_PATH:=
"
${REMOTE_BASEDIR}/$
$(basename `pwd`)"
sync2caen
:
REMOTE_PATH
:=
${REMOTE_BASEDIR}/$
(notdir $(shell pwd))
sync2caen
:
@
echo
"Build time:
`
date
`
"
>
rsync.log
@
-open
rsync.log
# Make target directory on CAEN server
@echo
"Making remote target directory ... ${REMOTE_PATH}"
\
>>
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
\
# Make target directory on CAEN
ssh login.engin.umich.edu
"mkdir -p
${
REMOTE_PATH
}
"
# Synchronize local files into target directory on CAEN
rsync
\
-av
\
--delete
\
--exclude
'.git*'
\
--exclude
'rsync.log'
\
--exclude
'.DS_Store'
\
--filter
=
":- .gitignore"
\
./
\
"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
"login.engin.umich.edu:
${
REMOTE_PATH
}
/"
define
MAKEFILE_HELP
EECS281
Advanced
Makefile
Help
...
...
@@ -226,12 +211,12 @@ EECS281 Advanced Makefile Help
B) Usage
:
$$
make
static
*
Ma
c
to
CAEN
upload
support
*
Syn
c
to
CAEN
support
A)
Requires
an
.ssh/config
file
with
a
login.engin.umich.edu
host
defined,
SSH
Multiplexing
enabled,
and
an
open
SSH
connection.
B)
Edit
the
REMOTE_BASEDIR
variable
if
default
is
not
preferred.
C) Usage
:
$$
make
ma
c2caen
$$
make
syn
c2caen
endef
export
MAKEFILE_HELP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment