[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Canned command sequences
From: |
Sam Ravnborg |
Subject: |
Re: Canned command sequences |
Date: |
Fri, 20 Jun 2003 21:22:53 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi all.
Posted the following a few weeks ago - wondered if anyone could explain it.
I have stripped down the background info a bit - so the essense is kept.
TIA,
Sam
On Tue, Jun 03, 2003 at 10:50:53PM +0200, Sam Ravnborg wrote:
> The following makefile exhibit the problem, also at my installation:
> --------------------------
> define rule_up
> echo hello
> echo hello again
> endef
>
> shut = @set -e; $(rule_$(1))
>
> all:
> $(call shut,up)
> ----------------------------
>
> Output with make 3.79.1:
> ========================
> address@hidden tmp]$ make.old --version
> GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
> address@hidden tmp]$ make.old
> hello
> hello again
>
> Output with make 3.80:
> ======================
> address@hidden tmp]$ make --version
> GNU Make 3.80
> address@hidden tmp]$ make
> hello
> echo hello again <= Extra line only present with make 3.80
> hello again
>
> The culprint is the extra line:
> "echo hello again"
> It should not be there.