Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2003 16:52:21 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        arch@FreeBSD.org
Subject:   Bug in our make or undocumented feature?
Message-ID:  <20030315165221.27d3d424.Alexander@Leidinger.net>

next in thread | raw e-mail | index | archive | help
Hi,

this part of a makefile doesn't work for me:
---snip---
WANTED_PORTS=	shells/zsh lang/perl5

mytarget:
.for i in ${WANTED_PORTS}
	@echo "${i}"
.if ${i} == lang/perl5  
	@echo "Yep, perl5."
.endif
.endfor
---snip---

I get this output:
---snip---
# make
"Makefile", line 2: Malformed conditional (shells/zsh == lang/perl5)
"Makefile", line 2: Need an operator
"Makefile", line 4: if-less endif
"Makefile", line 4: Need an operator
"Makefile", line 2: Malformed conditional (lang/perl5 == lang/perl5)
"Makefile", line 2: Need an operator
"Makefile", line 3: warning: duplicate script for target ".if" ignored
"Makefile", line 3: warning: duplicate script for target "==" ignored
"Makefile", line 4: if-less endif
"Makefile", line 4: Need an operator
make: fatal errors encountered -- cannot continue
---snip---

This is on -current as of Feb 14 and on -stable as of Dec 1.

Did I overlook that we can't use such a conditional in a .for loop
(where in make(1)?) or is this a bug in our make?

Bye,
Alexander.

-- 
               Speak softly and carry a cellular phone.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030315165221.27d3d424.Alexander>