[GRASS-dev] some backports to 6.3.0-CVS branch

Glynn Clements glynn at gclements.plus.com
Fri Oct 26 17:42:14 EDT 2007


Benjamin Ducke wrote:

> True. I guess there should be a check for an unset var to not run
> this loop. However, I don't know what that var is.

There is a check, hence the 'if [ "" != "" ] ...' part. But the shell
seems to be complaining about being unable to parse the command even
though it isn't going to execute it.

The command in question is the last one for the "clean" target in
Rules.make:

clean:
	-rm -rf $(OBJDIR) $(EXTRA_CLEAN_DIRS)
	-rm -f $(EXTRA_CLEAN_FILES) *.tmp.html
	-if [ "$(CLEAN_SUBDIRS)" != "" ] ; then \
		for dir in $(CLEAN_SUBDIRS) ; do \
			$(MAKE) -C $$dir clean ; \
		done ; \
	fi

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




More information about the grass-dev mailing list