[H-GEN] gnu make command-line target ordering problems?

Martin Pool martinp at mincom.com
Mon Oct 18 02:33:02 EDT 1999


[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]

Anthony Towns wrote:
> Using CM tools that can't do basic things properly isn't Right either, of
> course. Determining the relevance of this to anything remotely real is
> left as an exercise to the interested reader.
> 
> OTOH, going form "aec; aeb" to "make clean; make build" makes more sense
> than "make clean build" --- the former keeps destruction and construction
> separate, the latter doesn't.

No no.  I'm sure you knew this too, but it's such a trap it's worth
pointing out: always use "&&" rather than ";", or the earlier command
may fail (say, because you typed "make clen"), but scroll off the screen
when the second goes ahead --> very confusing.

I guess the lesson from our home-grown system is that some tools (eg
javac) are wierd enough that it's easier to write your own scripts than
to try to bend make to them.

-- 
 /\\\  Mincom | Martin Pool          | martinp at mincom.com
// \\\        | Software Engineer    | Phone: +61 7 3303-3333
\\ ///        | Mincom Ltd.          | 
 \///         | Teneriffe, Brisbane  | Speaking for myself only

--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list