-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rick Flower wrote:
> OBJDIR =
> OBJDIRS := \
> ../../${proc}/obj/${target) \
> ../../${target}/obj \
> ../../obj/${target}
>
> find_files = $(if $(wildcard $(dir)),OBJDIR=${dir})
> OBJDIR := $(foreach dir,$(OBJDIRS),$(find_files))
First, your find_files there is incorrect because of the OBJDIR=${dir}
bit. If you actually want to assign OBJDIR inside find_files then you
need to wrap it in $(eval).
But from the way you use find_files in the $(foreach) I don't think
that's what you want.
If all you want is to figure out which directory (assuming that only one
exists) from a list of directories in OBJDIRS and store the result in
OBJDIR then you can just do:
OBJDIR := $(wildcard $(OBJDIRS))
John.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGI9C+Lphrp73n/hARAphjAJ4xyHssq2Y4QdpGQsUry+w6fxfchQCg2jwp
JsmixrZYRzw5cFX0uXa+NT4=
=0Jzi
-----END PGP SIGNATURE-----
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make