forked from ouster-lidar/ouster-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (17 loc) · 841 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SHELL := /bin/bash
default:
source /opt/ros/melodic/setup.bash && cd catkin_ws && catkin clean -f -i -y && catkin build -j3 && \
catkin config --cmake-args "-DCATKIN_RUNNING_TESTS=False" && catkin build --catkin-make-args run_tests -- --no-status && \
catkin config --cmake-args "-DCATKIN_RUNNING_TESTS=True" && catkin test --no-status
rm -f catkin_ws/install/lib/pkgconfig/catkin_tools_prebuild.pc
@echo "Built!!!!"
install:
rm -rf catkin_ws/install/share/catkin_tools_prebuild
install -d $(DESTDIR)/opt/ros/melodic/
cp -f -p -r catkin_ws/install/lib $(DESTDIR)/opt/ros/melodic
cp -f -p -r catkin_ws/install/share $(DESTDIR)/opt/ros/melodic
cp -f -p -r catkin_ws/install/include $(DESTDIR)/opt/ros/melodic
rm -f $(DESTDIR)/opt/ros/melodic/lib/pkgconfig/catkin_tools_prebuild.pc
clean:
@echo "Cleaning"
rm -rf catkin_ws