help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Generic' pattern rules


From: Semen Trygubenko
Subject: Re: 'Generic' pattern rules
Date: Thu, 25 Aug 2011 17:15:56 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Aug 25, 2011 at 05:03:23PM +0200, address@hidden wrote:
> That's a canned recipe, and as mentioned in my first message: not
> elegant, but working ;-)

I wasn't sure about "canned recipe". Define elegant. ;-)

(1) Using pattern rules allows one to compress recipes.
Things that don't fit into the pattern will have to get a
rule of their own.
General software design pattern: generalisation + special cases

(2) If the generation for both general and special cases
is going according to the same
recipe, it should be defined in one place.
General software design pattern: single place of authority

If you don't care about compression, you can expand
the rules for all known targets using the technique
Lane's mentioned, lose (1) but keep (2).

If you were to keep (1) and (2) and use Lane's solution,
you will end up with a canned recipe somewhere.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]