-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (15 loc) · 769 Bytes
/
Makefile
File metadata and controls
18 lines (15 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SHELL := /bin/bash
default:
source /opt/ros/melodic/setup.bash && cd catkin_ws && catkin clean -f -i -y && AM_PLATFORM=AM_VM catkin build -j8 --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 || echo "Did not copy lib directory"
cp -f -p -r catkin_ws/install/share $(DESTDIR)/opt/ros/melodic || echo "Did not copy share directory"
cp -f -p -r catkin_ws/install/include $(DESTDIR)/opt/ros/melodic || echo "Did not copy include directory"
rm -f $(DESTDIR)/opt/ros/melodic/lib/pkgconfig/catkin_tools_prebuild.pc
clean:
@echo "Cleaning"
rm -rf catkin_ws