/[gentoo-x86]/eclass/makeedit.eclass
Gentoo

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Mon Aug 22 04:46:32 2011 UTC (3 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +4 -4 lines
fix random bugs in eclass documentation, and convert to new @AUTHOR tag

1 vapier 1.13 # Copyright 1999-2011 Gentoo Foundation
2 spider 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.13 # $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.12 2008/07/17 09:58:40 pva Exp $
4 pva 1.12
5     # @ECLASS: makeedit.eclass
6 vapier 1.13 # @AUTHOR:
7     # Spider
8 pva 1.12 # @BLURB: An eclass to replace some flags in makefiles
9     # @DESCRIPTION:
10 vapier 1.5 #
11 pva 1.12 # @CODE
12 agriffis 1.8 # To use this eclass, do 2 things:
13     # 1. append-flags "$MAKEEDIT_FLAGS". If you filter-flags, make sure to do
14     # the append-flags afterward, otherwise you'll lose them.
15     # 2. after running configure or econf, call edit_makefiles to remove
16     # extraneous CFLAGS from your Makefiles.
17 pva 1.12 # @CODE
18 agriffis 1.8 #
19     # This combination should reduce the RAM requirements of your build, and maybe
20     # even speed it up a bit.
21 spider 1.1
22    
23 agriffis 1.8 MAKEEDIT_FLAGS="-Wno-return-type -w"
24 spider 1.1
25 pva 1.12 # @FUNCTION: edit_makefiles
26     # @DESCRIPTION:
27     # Removes some flags in makefiles
28 agriffis 1.8 edit_makefiles() {
29     # We already add "-Wno-return-type -w" to compiler flags, so
30     # no need to replace "-Wall" and "-Wreturn-type" with them.
31 vapier 1.7 einfo "Parsing Makefiles ..."
32 azarah 1.11 find . \( -iname makefile -o -name \*.mk -o -name GNUmakefile \) -print0 | \
33 agriffis 1.8 xargs -0 sed -i \
34     -e 's:-Wall::g' \
35     -e 's:-Wreturn-type::g' \
36     -e 's:-pedantic::g'
37 spider 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20