ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure that it's the correct answer, but I think you should rather edit the CMakeLists.txt than the Makefile.
You can add a custom command to your CMakeLists.txt using this line:
EXECUTE_PROCESS(COMMAND "${PROJECT_SOURCE_DIR}/your_script.sh")
Hope this helps.