|
From: | Elmar Kurgpold |
Subject: | Re: Checking that required variables have been set |
Date: | Wed, 25 Jun 2008 16:13:49 -0700 |
On Wed, Jun 25, 2008 at 3:39 PM, Elmar Kurgpold <address@hidden> wrote:Here's my test case:
> Hi, thank you for your help. This example didn't produce any output,
> ${missing} is empty.
$ cat Makefile
required = SOMETHING SOMETHING_ELSE
SOMETHING=foo
missing = $(foreach var,${required},$(if $(findstringall:
undefined,$(origin ${var})),${var}))
@echo ${missing}
$ make
SOMETHING_ELSE
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-unknown-openbsd4.3
$
What do you get when you try that?
Philip Guenther
_______________________________________________
Help-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-make
[Prev in Thread] | Current Thread | [Next in Thread] |