23 lines
552 B
Makefile
23 lines
552 B
Makefile
.PHONY: build run upload legacy
|
|
|
|
SOURCES := $(wildcard src/ros2aria/src/*.cpp)
|
|
HEADERS := $(wildcard src/ros2aria/src/*.hpp)
|
|
|
|
build/ros2aria/ros2aria: $(SOURCES) $(HEADERS)
|
|
colcon build
|
|
|
|
build: build/ros2aria/ros2aria
|
|
|
|
# .uploaded: build/ros2aria/ros2aria
|
|
upload:
|
|
rsync -r . lab1_5@pionier6:~/ros2aria
|
|
touch .uploaded
|
|
|
|
# upload: .uploaded
|
|
|
|
run: upload
|
|
ssh lab1_5@pionier6 -t -- docker run --rm --network=host -it --device /dev/ttyS0 -v /home/lab1_5:/ws irth7/ros2aria-dev /bin/bash /ws/ros2aria/run.sh
|
|
|
|
legacy:
|
|
ssh lab1_5@pionier6 -t -- ./run.sh
|