# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.10 2005/07/06 20:23:20 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.11 2005/09/26 22:22:08 azarah Exp $
#
# Author: Spider
#
# We already add "-Wno-return-type -w" to compiler flags, so
# no need to replace "-Wall" and "-Wreturn-type" with them.
einfo "Parsing Makefiles ..."
- find . -iname makefile -o -name \*.mk -o -name GNUmakefile -print0 | \
+ find . \( -iname makefile -o -name \*.mk -o -name GNUmakefile \) -print0 | \
xargs -0 sed -i \
-e 's:-Wall::g' \
-e 's:-Wreturn-type::g' \