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 _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils