This repository has been archived by the owner on May 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Makefile * fix build break due to lack of robot_ws directory
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: all setup build build_simulation bundle bundle_simulation clean clean_simulation_build clean_simulation_bundle | ||
.DEFAULT_GOAL := all | ||
|
||
all: bundle | ||
|
||
# This forces each step in 'ci' to run in serial, but each step will run all of its commands in parallel | ||
ci: | ||
$(MAKE) setup | ||
$(MAKE) build | ||
$(MAKE) bundle | ||
|
||
setup: | ||
scripts/setup.sh | ||
|
||
build: build_simulation | ||
|
||
build_simulation: | ||
scripts/build.sh ./simulation_ws | ||
|
||
bundle: bundle_simulation | ||
|
||
bundle_simulation: build_simulation | ||
scripts/bundle.sh ./simulation_ws | ||
|
||
clean: clean_simulation_build clean_simulation_bundle | ||
|
||
clean_simulation_build: | ||
rm -rf ./simulation_ws/build ./simulation_ws/install | ||
|
||
clean_simulation_bundle: | ||
rm -rf ./simulation_ws/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
COLCON_LOG_PATH="$@/logs" colcon build --base-paths "$@" --build-base "$@/build" --install-base "$@/install" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
COLCON_LOG_PATH="$@/logs" colcon bundle --base-paths "$@" --build-base "$@/build" --install-base "$@/install" --bundle-base "$@/bundle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
apt-get update | ||
source /opt/ros/$ROS_DISTRO/setup.sh | ||
rosdep update | ||
|
||
apt-get install -y python3-apt python3-pip | ||
pip3 install -U setuptools | ||
pip3 install -U colcon-common-extensions colcon-ros-bundle | ||
|
||
rosdep install --from-paths ./simulation_ws/src --ignore-src -r -y |