[GRASS-user] Re: grass.bat script for Cygwin GRASS 6.2.2-1

Glynn Clements glynn at gclements.plus.com
Wed Sep 5 11:45:51 EDT 2007


Markus Neteler wrote:

> Do you have any idea about the not stripped .exe extension in the
> r.support subdirs?

Those programs all have e.g.:

	PGM = modcats$(EXE)

Part of this is because the "etc" target doesn't handle this
automatically (unlike the "cmd" and "inter" targets), and part is
because the Makefile refers to the command as:

default: etc
	$(MKDIR) $(ETC)/support
	mv $(ETC)/$(PGM) $(ETC)/support

AFAICT, we need to:

1. Change Module.make to assume that PGM doesn't have the $(EXE)
suffix.
2. Remove the $(EXE) from the PGM definition in the modules'
Makefiles.
3. Modify the modules' Makefiles to use $(PGM)$(EXE) where necessary.

But I have no idea whether other modules rely upon the existing
behaviour.

BTW, the 6.2.2 Modules.make file uses $(EXE_SUFFIX), which doesn't
appear to get set anywhere. Cygwin itself doesn't need the .exe
suffix, but it sometimes gets added by the linker (AFAICT, it only
gets added if the filename doesn't contain a dot).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list