Mail Archives: djgpp/2006/07/11/09:30:06
"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 -