ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

How to make clean to my stack?

asked 2011-12-13 00:05:49 -0600

sam gravatar image

I have a stack with a lot of packages.

When I copy the whole directory to another ubuntu machine, I have to rebuild all packages.

But if I don't make clean package one by one, it will get stuck when the package with dependency that haven't make clean.

How do I make clean to all my packages in one stack?

Thank you~

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2011-12-13 00:16:59 -0600

dornhege gravatar image

updated 2011-12-13 00:49:31 -0600

rosmake --target=clean

For any directory this should work:

for i in $(find . -maxdepth 1 -mindepth 1 -type d); do cd $i; make clean; cd -; done
edit flag offensive delete link more

Comments

If I didn't use roscreate-stack but using only a directory to contain all packages, what's the simplest way to clean all packages?
sam gravatar image sam  ( 2011-12-13 00:23:13 -0600 )edit
It isn't a stack then.
dornhege gravatar image dornhege  ( 2011-12-13 00:47:56 -0600 )edit
rosmake --target=clean * :: from that directory will work fine as it will ignore dirs that are neither package nor stack and other files in there. But remember rosmake will try to clean all deps which might be a pain if ros is installed in userspace. Therefore thanks for the loop make script!
felix k gravatar image felix k  ( 2011-12-13 01:58:02 -0600 )edit
1

answered 2014-06-23 16:17:48 -0600

routeaccess gravatar image

##To rosmake clean all packages, use :

#rosmake -a --target=clean

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-12-13 00:05:49 -0600

Seen: 1,229 times

Last updated: Jun 23 '14