Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 03:39:05 -0800 (PST)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        jesse@prinz-atm.CS.Uni-Magdeburg.De
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: `for` construct in Makefiles
Message-ID:  <199901291139.DAA73121@silvia.hip.berkeley.edu>
In-Reply-To: <14001.1199.669731.947141@knecht> (message from Roland Jesse on Fri, 29 Jan 1999 01:45:35 %2B0100 (MET))

next in thread | previous in thread | raw e-mail | index | archive | help
 * do-install:
 * 	@${MKDIR} ${PREFIX}/ACE_wrappers
 * 	for i in ${INSTALLFILES}
 * 	do
 * 		cp work/${i} ${PREFIX}/ACE_wrappers/${i}
 * 	done
 * ------- snap -------

It is recommended you use make loops instead.  Something like

 do-install:
 	@${MKDIR} ${PREFIX}/ACE_wrappers
.for i in ${INSTALLFILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/ACE_wrappers/${i}
.endfor

That makes for a much nicer output, too.

Satoshi

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



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