Ask Your Question
2

How to make clean to my stack?

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

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 -0500

dornhege gravatar image

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

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 imagesam ( 2011-12-13 00:23:13 -0500 )edit
It isn't a stack then.
dornhege gravatar imagedornhege ( 2011-12-13 00:47:56 -0500 )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 imagefelix k ( 2011-12-13 01:58:02 -0500 )edit
1

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

routeaccess gravatar image

##To rosmake clean all packages, use :

#rosmake -a --target=clean

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,096 times

Last updated: Jun 23 '14