help-make
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Strange behaviour using the function $(dir ....)
From
:
bhaskar . g
Subject
:
Strange behaviour using the function $(dir ....)
Date
:
Wed, 9 Feb 2005 17:43:12 +0530
Hi All,
I am using gmake 3.80 version. I have this simple makefile to get the directory part of the files as mentioned below.
D=d:/bg/123/ # change to /tmp/123 on unix
A=src/1.c src/2.c src/3.c src/4.c
C=$(addprefix $(D),$(A))
all:
@for i in $(C); do \
echo $$i; \
echo $(dir $$i);\
done
The results are as follows:
on Unix:
$gmake -f test.mk
/tmp/123/src/1.c
./
/tmp/123/src/2.c
./
/tmp/123/src/3.c
./
/tmp/123/src/4.c
./
On Windows:
gmake -f D:\bg.mk
d:/bg/123/src/1.c
./
d:/bg/123/src/2.c
./
d:/bg/123/src/3.c
./
d:/bg/123/src/4.c
./
Am I missing something or is this a bug.
Thanks & Regards,
Bhaskar G
=================================================
Technical Leader
Philips Semiconductors / CTO / Design Technology Group
E-mail: address@hidden
Phone: +91 80 2557 9000, Ext 3016
Fax: +91 80 2556 0581
GSM: +91 944 876 1340
Office: Philips Innovation Campus, 3rd floor
Address: No 1, Murphy Road, Ulsoor, Bangalore - 560 008
Country: INDIA
=================================================
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Strange behaviour using the function $(dir ....)
,
bhaskar . g
<=
Re: Strange behaviour using the function $(dir ....)
,
Noel Yap
,
2005/02/09
Re: Strange behaviour using the function $(dir ....)
,
Jason Pearce
,
2005/02/09
Prev by Date:
make381beta1
Next by Date:
Re: Strange behaviour using the function $(dir ....)
Previous by thread:
make381beta1
Next by thread:
Re: Strange behaviour using the function $(dir ....)
Index(es):
Date
Thread