Removing old files after rebuilding world

I just rebuilt world, and I tried to use $ cd /usr/src/ && make delete-old to clean out obsolete files. I was prompted every time a file was about to be deleted. How can it be automated (the files are deleted without confirmation)? Typing "y + Enter" hundreds of times is quite exhausting and frustrating.
 
Let's hope it works. It depends to some extent on how the make command treats its standard input. However, if it doesn't work, you can always resort to a version of Expect (or expect) from the ports.
 
Back
Top