-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
64 lines (50 loc) · 1.67 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# useful shortcuts
src:
@echo "creating src dir ..."
mkdir -p src
.PHONY: init
init: src
.PHONY: pull
pull:
@echo "running vcs pull --nested ..."
vcs pull --nested
.PHONY: clone-ros
clone-ros: src
@echo "cloning packages for ROS 2 distribution '$(distro)' ..."
vcs import src --input https://raw.githubusercontent.com/ros2/ros2/$(distro)/ros2.repos
.PHONY: clone-ros-force
clone-ros-force: src
@echo "force cloning packages for ROS 2 distribution '$(distro)' ..."
vcs import src --force --input https://raw.githubusercontent.com/ros2/ros2/$(distro)/ros2.repos
.PHONY: clone-auto-additional
clone-auto-additional: src
@echo "cloning auto-additional packages ..."
vcs import src < repos/auto-additional.repos
.PHONY: clone-auto-additional.galactic
clone-auto-additional.galactic: src
@echo "cloning auto-additional.galactic packages ..."
vcs import src < repos/auto-additional.galactic.repos
.PHONY: clone-stage-additional
clone-stage-additional: src
@echo "cloning stage-additional packages ..."
vcs import src < repos/stage-additional.repos
.PHONY: build
build:
@echo "building the whole workspace (with compilation db)..."
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
.PHONY: build-no-db
build-no-db:
@echo "building the whole workspace (without compilation db)..."
colcon build --symlink-install
.PHONY: build-merge-install
build-merge-install:
@echo "building the whole workspace (without compilation db) and using --merge-install..."
colcon build --merge-install
.PHONY: clean
clean:
rm -rf build/ install/ log/ compile_commands.json .vscode/ .env
.PHONY: clean-src
clean-src:
rm -rf src/
.PHONY: clean-all
clean-all: clean clean-src