Glynn wrote:
> 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


how about
-       -if [ "$(CLEAN_SUBDIRS)" != "" ] ; then \
+       -if [ -n "$(CLEAN_SUBDIRS)" ] ; then \


What OS & make version are you running Benjamin?


Hamish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

Reply via email to