Skip site navigation (1)Skip section navigation (2)
Date:      	Thu, 12 Nov 1998 14:12:14 -0500
From:      David Holland <dholland@cs.toronto.edu>
To:        joelh@gnu.org (Joel Ray Holveck)
Cc:        dholland@cs.toronto.edu, kline@tao.thought.org, hackers@FreeBSD.ORG
Subject:   Re: bsd make to gnu make conversion, anyone??
Message-ID:  <98Nov12.141220edt.37768-2936@qew.cs.toronto.edu>
In-Reply-To: <86hfw5ie8q.fsf@detlev.UUCP> from "Joel Ray Holveck" at Nov 12, 98 02:04:05 am

next in thread | previous in thread | raw e-mail | index | archive | help
 > This is the cleanest solution.  Still, if you want alternatives, I
 > haven't tried this, but foreach may work here, as a generalization of
 > for:
 > 
 > define do-lang
 > $(lang).mv.cat: $(.CURDIR)/nls/$(lang)/mv.msg
 > 	gencat -new $(.TARGET) $(.ALLSRC)
 > endef
 > $(foreach lang,$(LANGS),$(do-lang))

eww.

I didn't know this would work.

I wish someone would add support for bsd make syntax to gmake.

(Before you tell me to put my code where my mouth is, I looked into
this at one point and concluded it would take me longer to figure out
how gmake's parser worked than to write a whole new make. So I
didn't. Why doesn't it use yacc?)

 > What's wrong with using sh like God intended?

Two reasons; one that issuing complex shell commands makes make -n
output less useful (for an extreme case of this, try make -n install
in gnu binutils), and the other that when you do loops in the shell
they don't always terminate on error like you (usually) want.

For install this may not be that significant, but when you're doing
recursion into subdirectories it sucketh. Hard.

-- 
   - David A. Holland             | (please continue to send non-list mail to
     dholland@cs.utoronto.ca      | dholland@hcs.harvard.edu. yes, I moved.)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Nov12.141220edt.37768-2936>