From owner-freebsd-hackers Mon Mar 6 12:16:12 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 83FAA37C01D for ; Mon, 6 Mar 2000 12:15:57 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id NAA55323; Mon, 6 Mar 2000 13:15:55 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id NAA61215; Mon, 6 Mar 2000 13:15:45 -0700 (MST) Message-Id: <200003062015.NAA61215@harmony.village.org> To: chet@po.CWRU.Edu Subject: Re: empty lists in for Cc: jhix@mindspring.com, Doug@gorean.org, hackers@FreeBSD.ORG In-reply-to: Your message of "Mon, 06 Mar 2000 12:09:02 EST." <1000306170902.AA22857.SM@nike.ins.cwru.edu> References: <1000306170902.AA22857.SM@nike.ins.cwru.edu> Date: Mon, 06 Mar 2000 13:15:45 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <1000306170902.AA22857.SM@nike.ins.cwru.edu> Chet Ramey writes: : The idiomatic solution for this sort of thing is changing : your makefile recipes from : : for f in ${SUBDIRS} do ... : : to : : sh_subdirs=${SUBDIRS}; for f in $$sh_subdirs ; do ... That's much better than what I've tended to do: for f in x ${FOO}; do if [ $f != x ]; then fi done there's lots of other workarounds, from seeing if SUBDIRS is defined, to using make's .foreach. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message