X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 11 Jul 2006 15:28:16 +0200 From: Gisle Vanem Subject: Re: $LFN and make To: djgpp Message-id: <01b201c6a4ed$de86abd0$0100a8c0@broadpark.no> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Mailer: Microsoft Outlook Express 6.00.2900.2869 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <11a501c6a42b$878dbd40$0100a8c0 AT broadpark DOT no> <44b39bc8$0$487$cc7c7865 AT news DOT luth DOT se> Reply-To: djgpp AT delorie DOT com "Martin Str|mberg" wrote: > That's for too much exotic makefile for me too understand. > > You don't tell us which DOS you're using. DOS 5.50. I.e. a DOS-box under Win-XP. > However it doesn't work that well in Linux either, FWIW: No surprice since Linux uses ':' as path-separator. It should work with: path_find = $(wildcard $(addsuffix /$(1),$(subst :, ,$(PATH)))) BTW. I figured out the problem; $(wildcard) is case-sensitive, so changing the snippet to: AS = AS.EXE path_find = $(wildcard $(addsuffix /$(1),$(subst ;, ,$(subst \,/,$(PATH))))) works regardless of $LFN=[y|n]. --gv