This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.9: How to generate Makefile.in from a modified Makefile.am?
- From: Chung-Ju Wu <jasonwucj at gmail dot com>
- To: svante dot signell at gmail dot com
- Cc: "gcc at gcc dot gnu dot org List" <gcc at gcc dot gnu dot org>
- Date: Thu, 27 Mar 2014 13:36:34 +0800
- Subject: Re: gcc-4.9: How to generate Makefile.in from a modified Makefile.am?
- Authentication-results: sourceware.org; auth=none
- References: <1395829471 dot 14680 dot 18 dot camel at G3620 dot my dot own dot domain>
2014-03-26 18:24 GMT+08:00 Svante Signell <svante.signell@gmail.com>:
> Hi,
>
> With the recent changes of not using automake for the build, only
> auto{re}conf I have problems generating an updated Makefile.in from a
> modified Makfile.am. Source is gcc-4.9-4.9-20140322
>
For gcc-4.9, I always use automake-1.11.1 and autoconf-2.64
to regenerate 'configure' and 'Makefile.in' content.
The following are my steps:
1. Download automake-1.11.1 and autoconf-2.64 from:
http://ftp.gnu.org/gnu/automake/
http://ftp.gnu.org/gnu/autoconf/
2. Build them by your own:
(As usual, separating build folder and source folder is recommended.)
$ /path/to/src/automake-1.11.1/configure --prefix=/path/to/local
$ make
$ make install
$ /path/to/src/automake-2.64/configure --prefix=/path/to/local
$ make
$ make install
3. Suppose you have modified libgo/configure.ac and libgo/Makefile.am.
After you 'cd gcc-4.9.0/libgo/', you can use:
(To simply generate configure from a modified configure.ac)
$ PATH=/path/to/local/bin:$PATH autoconf
(To simply generate Makefile.in from a modified Makefile.am)
$ PATH=/path/to/local/bin:$PATH automake
(To generate both configure and Makefile.in)
$ PATH=/path/to/local/bin:$PATH autoreconf
Hope it helps.
Best regards,
jasonwucj