[GRASS-dev] [GRASS GIS] #580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run

GRASS GIS trac at osgeo.org
Tue Nov 25 11:54:06 PST 2014


#580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run
---------------------------+------------------------------------------------
  Reporter:  hamish        |       Owner:  grass-dev@…              
      Type:  defect        |      Status:  reopened                 
  Priority:  blocker       |   Milestone:  7.0.0                    
 Component:  wxGUI         |     Version:  svn-trunk                
Resolution:                |    Keywords:  wingrass                 
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
---------------------------+------------------------------------------------

Comment(by glynn):

 Replying to [comment:56 martinl]:

 > I wonder why this rule is not working
 >
 {{{
 $(DSTDIR)/%.bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
         sed -e "s#SCRIPT_NAME#$(%)#" -e "s#SCRIPT_DIR#$(DSTDIR)#"
 $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
         unix2dos $@
 }}}

 > Similar variables like `$<` or `$@` works as expected.

 What is "$(%)" supposed to be? The stem of a pattern rule (the part which
 matches the "%" in the target) is available via "$*".

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/580#comment:58>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list