On Sun, 22 Jul 2001, Ken Williams wrote:

> Here's another patch to MakeMaker.  It adds initial support for a 

Thanks.

> 'make diff' command.  Some important things are still missing:
> 
>   * diff always has the -u flag, no way to change it yet

That's a pretty significant problem.  On my Solaris system, I can run
either Sun's diff (which doesn't understand -u) or GNU diff, which is
installed as gdiff.

Various possibilities spring to mind:

1.  Supply a DIFF variable that is 'diff -c' by default and that contains
both the name of the executable and the flag to be passed to it.

        make diff DIFF='diff -c'   # The default ?
        make diff DIFF='gdiff -u'
        make diff DIFF='diff'      # Truly portable, even to old SVR3
                                   # systems without diff -c.

2.  Supply both a DIFF and a DIFFFLAGS variable.

        make diff 'DIFF=gdiff' DIFFLAGS='-u'

Though more flexible, this latter seems a bit overkill.

-- 
    Andy Dougherty              [EMAIL PROTECTED]
    Dept. of Physics
    Lafayette College, Easton PA 18042

Reply via email to