My attempt to build GCC 4.2.0 RC1 failed with:

cp doc/gcc.1 doc/g++.1
cp: cannot stat `doc/gcc.1': No such file or directory

This is coming from the G++ Make-lang.in, which does:

doc/g++.1: doc/gcc.1
        cp doc/gcc.1 doc/g++.1

However, when we --enable-generated-files-in-srcdir (as we do for
releaes), doc/gcc.1 is in the source directory.  VPATH finds it, so the
dependency is satisfied, but the copy doesn't work.

I intend to fix this by changing the rule to be:

        cp $< doc/g++.1

which will resolve VPATH correctly.  Does anyone see a problem with this
plan?

Thanks,

-- 
Mark Mitchell
CodeSourcery
[EMAIL PROTECTED]
(650) 331-3385 x713

Reply via email to