This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "./contrib/gcc_update --touch" doesn't work with make
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 2 Jul 2002 21:58:05 +0200 (CEST)
- Subject: Re: "./contrib/gcc_update --touch" doesn't work with make
On Sat, 29 Jun 2002, H. J. Lu wrote:
> ./contrib/gcc_update has
>
> while ${MAKE-make} -f Makefile.$$ all | grep . > /dev/null; do
> sleep 1
> done 2>&1
>
> It won't work at all if you run it inside a makefile. You will get
>
> make[1]: Leaving directory `...'
> make[1]: Entering directory `...'
>
> instead of empty line. For gnu make, I think you can use
>
> while ${MAKE-make} -s -f Makefile.$$ all | grep . > /dev/null; do
If you just want to add -s to make, this is portable, as far as I can
see, so please go ahead and commit your change with a proper ChangeLog.
Thanks,
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/