Re: GNU make alleged of "bug" (was: PATCH: cdrecord: avoiding scsi device numbering for ide devices)

From: Matthias Andree (matthias.andree_at_gmx.de)
Date: 08/19/04

  • Next message: Roland McGrath: "Re: [PATCH] waitid system call"
    Date:	Thu, 19 Aug 2004 22:53:01 +0200
    To: linux-kernel@vger.kernel.org, Joerg Schilling <schilling@fokus.fraunhofer.de>
    
    

    On Fri, 20 Aug 2004, Sam Ravnborg wrote:

    > On Thu, Aug 19, 2004 at 09:47:24PM +0200, Matthias Andree wrote:
    > > # BEGIN Makefile
    > > all: hello
    > > hello.d:
    > > makedepend -f- hello.c >$@
    > > include hello.d
    > > # END Makefile
    > >
    > > You'll get at "make" time:
    > >
    > > Makefile:5: hello.d: No such file or directory
    > > makedepend -f- hello.c >hello.d
    > > cc hello.o -o hello
    > >
    > > and a working hello program.
    >
    > Using:
    > -include hello.d
    > will result in a silent make.

    Indeed it will. However, Solaris' /usr/ccs/bin/make doesn't understand
    the "-include" form:

    make: Fatal error in reader: Makefile, line 5: Unexpected end of line seen

    include without leading "-" is fine. BSD make doesn't understand either
    form.

    Jörg, how about Sam's suggestion? It seems compatible with smake.

    -- 
    Matthias Andree
    NOTE YOU WILL NOT RECEIVE MY MAIL IF YOU'RE USING SPF!
    Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Roland McGrath: "Re: [PATCH] waitid system call"

    Relevant Pages