Re: Perl 1.0.15 released

[email protected] (Richard Clamp) Thu, 19 Dec 2002 12:16:58 +0000
Newsgroups perl.perl1.porters
Message-ID <[email protected]>
On Thu, Dec 19, 2002 at 02:10:44AM +0100, St?phane Payrard wrote:
> % ./Configure -des
> %make
> make: *** No rule to make target `<built-in>', needed by `arg.o'.Stop.

Nick Clark gave me a pointer - it's down to gcc 3.x's cpp giving extra
information in it's output.  Here's a patch slightly cargo-culted from
bleadperls makedepend.SH to make it exclude some of these.

--- makedepend.SH       2002-12-18 23:44:13.000000000 +0000
+++ makedepend.SH.new   2002-12-19 12:11:12.000000000 +0000
@@ -88,6 +88,10 @@
        -e '}'
     $cpp -I/usr/local/include -I. $file.c | \
     $sed \
+       -e '/^#.*<stdin>/d' \
+       -e '/^#.*<builtin>/d' \
+       -e '/^#.*<built-in>/d' \
+       -e '/^#.*<command line>/d' \
        -e '/^# *[0-9]/!d' \
        -e 's/^.*"\(.*\)".*$/'$filebase'.o: \1/' \
        -e 's|: \./|: |' \

-- 
Richard Clamp <[email protected]>