delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/07/11/09:30:06

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 <giva AT bgnett DOT no>
Subject: Re: $LFN and make
To: djgpp <djgpp AT delorie DOT com>
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
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" <ams AT speedy DOT ludd DOT ltu DOT se> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019