[GRASS5] r.support

Markus Neteler neteler at itc.it
Tue Aug 9 05:18:50 EDT 2005

On Mon, Aug 08, 2005 at 03:05:29PM -0700, Brad Douglas wrote:
> I just noticed that when I ported r.support, I may have not written the
> makefiles properly.
> I just realized that commands in etc/support/ are also copied to etc/ as
> well. (modcats, modcolr, modhead, modhist)
> Could someone review the makefiles in raster/r.support/... and let me
> know how to correct this minor problem?  I fail to see the problem.

Inspired by db/base/Makefile I suggest the attached example.


-------------- next part --------------
MODULE_TOPDIR = ../../..

PGM = $(ETC)/support/modcats


include $(MODULE_TOPDIR)/include/Make/Module.make

default: $(PGM)

$(PGM): $(OBJDIR)/modcats.o
	$(MKDIR) $(ETC)/support
	$(CC) $(LDFLAGS) -o $@ $(OBJDIR)/modcats.o $(LIBES) $(XDRLIB) $(MATHLIB)

	@echo "No docs to generate."

More information about the grass-dev mailing list