Hi,

i have a variable:
OBJ = src/ai/ai_magic.o src/ai/ai_plan.o

and so on... i want to convert it so that there is an '/obj'
between the basename and dirname... so it would be:

OBJ_2 = src/ai/obj/ai_magic.o src/ai/obj/ai_plan.o

so i tried doing this, but it did not work:

OBJ_2 = $(patsubst %, $(shell dirname %)/obj/$(shell basename %), $(OBJ))

i think dirname and basename are not converting % correctly.
can someone help me out please

thx, Nehal




_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to