Hi Ralph

On 15/03/11 14:25, Ralph Corderoy wrote:
Hi Tim,

My proper reply to the list is held up because of a misconfiguration on
this new machine that replying brought to light.  The brief answer is

    sed '\,^[^/]*\.o *:,s,^,./,; s,^.*/\([^/]*\.o\) *:,$(dir $2)\1 $3: ,'

It first turns a target without a directory into one with, e.g. foo.o ->
./foo.o, and then continues as before.


That's cheating but it certainly works ;)

Probably could get away with

 sed '\,:,s,^,./,; s,^.*/\([^/]*\.o\) *:,$(dir $2)\1 $3: ,'

which skips the #DO NOT DELETE and blank lines.

Another option (again cheating) is using -p ./ in the makedepend line.


Cheers

Tim



--
Next meeting:  Bournemouth, Tuesday 2011-04-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to