[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to suppress the included makefile not found warning?
From: |
Andre Majorel |
Subject: |
Re: how to suppress the included makefile not found warning? |
Date: |
Wed, 18 Feb 2004 04:52:21 +0100 |
User-agent: |
Mutt/1.5.4i |
On 2004-02-11 17:42 -0500, Paul D. Smith wrote:
> %% David Wuertele <address@hidden> writes:
>
> Noel> What about the possibly-not-so-obvious use of $(foreach) and $(eval)?
>
> dw> I tried $(foreach), but I was not able to make it generate a pattern.
> dw> I was doing something like this:
>
> dw> $(foreach program,$(PROGRAMS),$(program): $($(program)_OBJ))
>
> That's because this evaluates to one long line. So, if PROGRAMS was
> "foo bar" and foo_OBJ was foo.o and bar_OBJ was bar.o, this would
> evaluate to, and be parsed by make as:
>
> foo: foo.o bar: bar.o
>
>
> You have to use eval.
Couldn't he write:
define newline
endef
$(foreach program,$(PROGRAMS),$(program): $($(program)_OBJ)$(newline))
?
--
André Majorel <address@hidden>
http://www.teaser.fr/~amajorel/
- how to suppress the included makefile not found warning?, David Wuertele, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Greg Chicares, 2004/02/11
- Re: how to suppress the included makefile not found warning?, David Wuertele, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Noel Yap, 2004/02/11
- Re: how to suppress the included makefile not found warning?, David Wuertele, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Noel Yap, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/11
- Re: how to suppress the included makefile not found warning?, David Wuertele, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/11
- Re: how to suppress the included makefile not found warning?,
Andre Majorel <=
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/17
- Re: how to suppress the included makefile not found warning?, Andre Majorel, 2004/02/18
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/18
- Re: how to suppress the included makefile not found warning?, Noel Yap, 2004/02/11
- Re: how to suppress the included makefile not found warning?, David Wuertele, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/11
- Re: how to suppress the included makefile not found warning?, Paul D. Smith, 2004/02/11