wingrass: launching gui and shell [was: Re: [GRASS-dev] Wingrass
and TclTk]
Glynn Clements
glynn at gclements.plus.com
Thu Nov 1 22:49:05 EDT 2007
Moritz Lennert wrote:
> One question I don't know how to solve, though: just as for other scripts
> a gis.m.bat is created during compilation, which contains:
>
> @"%GRASS_SH%" -c '"%GISBASE%/scripts/gis.m" %*'
>
> However, I think that gis.m should run independently of whether someone
> has installed a shell, so I'd rather replace this bat file by the one
> above. This would mean creating some form of exception for gis.m to the
> below entry in include/Make/Script.make:
>
> $(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat^M
> sed -e "s#SCRIPT_NAME#$(PGM)#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
>
> Is that possible ?
Just add a rule for $(BIN)/$(PGM).bat to gis.m/Makefile, e.g.:
$(BIN)/$(PGM).bat: $(PGM).bat
$(INSTALL_DATA) $< $@
If you have multiple rules for the same target, the dependencies are
merged (which, in this case, is harmless), and the commands from the
last rule are used, so a rule in the Makefile will override the
generic one in the *.make file.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list