patsubst help needed...

[email protected]
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
In the following I code, I use patsubst. The replacement text
%.resx$(coma)obj/$(BLD_CONFIG)/$(ROOTNAMESPACE).%$(RES_OBJ_EXT)
contains two %. I assumed that in these two places actual text of the
pattern % will be used. But it uses only in the first % case, but not
in the second case. How do I make it happen in the second % also.

# commands
_VB2005 = $(SystemRoot)\Microsoft.NET\Framework\v2.0.50727\vbc.exe
_RES2005COMP = $(VS80COMNTOOLS)../../SDK\v2.0\Bin\ResGen.exe

# Object file extentions.
RES_OBJ_EXT = .resources

ROOTNAMESPACE = WindowsApplication1

SOURCES = x.resx y.resx z.resx

vb05src = $(filter %.vb,$(SOURCES))
vb05resrc = $(filter %.resx,$(SOURCES))
coma = ,

vb05_resrc_compile_text = $(patsubst
%.resx,%.resx$(coma)obj/$(BLD_CONFIG)/$(ROOTNAMESPACE).%$(RES_OBJ_EXT),$(vb05resrc))

vb05_resrc_output = $(patsubst
%.resx,obj/$(BLD_CONFIG)/$(ROOTNAMESPACE).%.$(RES_OBJ_EXT),$(vb05resrc))

$(vb05_resrc_output) : $(vb05resrc)
	$(_RES2005COMP) /compile $(vb05_resrc_compile_text)


Thanks
Chandra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.