List Info

Thread: add included makefile filename to variable




add included makefile filename to variable
user name
2006-08-11 16:28:06
Hi,

I have some included makefiles for which I'd like
to append the filename to the end of a variable.

For example, I'd like to include a file that looks like
this:

ifndef foo_make
foo_make := 1
MYFULLPATH := ?????
CCSOURCES := $(CCSOURCES) $(subst .make,.cpp,$(MYFULLPATH))
INCLUDEDIRS := $(INCLUDEDIRS) $(dir $(MYFULLPATH))
INCLUDED_MAKES := $(INCLUDED_MAKES) $(MYFULLPATH)
endif

Is there a way to set a variable to the path of an included
file?
So, for example, if I include bar/foo.make, $(MYFULLPATH)
gets
set to "bar/foo.make"?

Thanks...
                     David

____________________________________________________________
_____
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/
direct/01/



_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )