There is more depend data than I thought. Also I am doing: find . -type f -name \*.d|xargs egrep pmf.h|awk -F: '{print $1}'|xargs rm You might want to just nuke your obj tree.