Date: Tue, 07 Apr 2009 23:54:13 +0400 From: Boris Samorodov <bsam@ipt.ru> To: freebsd-questions@FreeBSD.org Subject: make, list and M pattern Message-ID: <37646522@h30.sp.ipt.ru>
next in thread | raw e-mail | index | archive | help
Hello List,
I need to create a list with some valid values and check an input
value. Should this makefile work?
-----
LIST=f8 f9
all:
@echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
.if empty(LIST:M${USE_LINUX})
@echo The value is invalid
.else
@echo The value is valid
.endif
-----
% make USE_LINUX=f8
USE_LINUX=f8, LIST=f8 f9
The value is invalid
-----
WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37646522>
