Re: $LFN and make
- From: Martin Str|mberg <ams@xxxxxxxxxxxxxxxxxx>
- Date: 11 Jul 2006 12:38:32 GMT
Gisle Vanem <giva@xxxxxxxxx> wrote:
I have some problems running a makefile with LFN=y set. This snippet:
AS = as.exe
path_find = $(wildcard $(addsuffix /$(1),$(subst ;, ,$(subst \,/,$(PATH)))))
ifeq ($(call path_find,$(AS)),)
chk_as:
@echo \"$(AS)\" not found on path. Edit Makefile manually.
endif
doesn't find e:\djgpp\bin\as.exe even when "e:\djgpp\bin" is in my PATH.
With "LFN=n" everything is working fine. Any clues?
I'm using djgpp 2.03 and
GNU Make version 3.79.2a1, by Richard Stallman and Roland McGrath.
Built for i386-pc-msdosdjgpp
That's for too much exotic makefile for me too understand.
You don't tell us which DOS you're using.
However it doesn't work that well in Linux either, FWIW:
/tmp> uname -a
Linux node01 2.6.5-7.257-smp #1 SMP Mon May 15 14:14:14 UTC 2006 i686 i686 i386 GNU/Linux
/tmp> make --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
/tmp> bash --version
GNU bash, version 2.05b.0(1)-release (i586-suse-linux)
Copyright (C) 2002 Free Software Foundation, Inc.
/tmp> cat makefile
AS = as
#.exe
path_find = $(wildcard $(addsuffix /$(1),$(subst ;, ,$(subst \,/,$(PATH)))))
ifeq ($(call path_find,$(AS)),)
chk_as:
@echo \"$(AS)\" not found on path. Edit Makefile manually.
endif
/tmp> make
"as" not found on path. Edit Makefile manually.
/tmp> which as
/usr/bin/as
HTH.
Right,
MartinS
.
- Follow-Ups:
- Re: $LFN and make
- From: Gisle Vanem
- Re: $LFN and make
- References:
- $LFN and make
- From: Gisle Vanem
- $LFN and make
- Prev by Date: Re: ANNOUNCE: DJGPP port of library JasPer 1.701.0 uploaded.
- Next by Date: Re: $LFN and make
- Previous by thread: $LFN and make
- Next by thread: Re: $LFN and make
- Index(es):
Relevant Pages
|