help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patsubst help needed...


From: chandramohanp
Subject: patsubst help needed...
Date: 22 Jun 2006 13:15:15 -0700
User-agent: G2/0.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]