Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 1996 01:30:40 -0500
From:      steve farrell <spfarrel@midway.uchicago.edu>
To:        "Charles C. Figueiredo" <marxx@doomsday.org>
Cc:        current@freebsd.org, spfarrel@midway.uchicago.edu
Subject:   Re: Make world 
Message-ID:  <199607220630.BAA13190@meno.uchicago.edu>
In-Reply-To: Your message of "Mon, 22 Jul 1996 21:34:29 EDT." <Pine.BSF.3.91.960722210659.16807A-100000@apocalypse.superlink.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
 
i thought i was going to tear my hair out over this same problem... and
then one day it dissappeared.  it think it was with my last sup, where
i noticed the makefiles (/usr/src/share/mk/*) seemed to have been redone.
 
(the problem, incidentally, is that it had stuff like (this is out of
memory):
 
        @if test -d ${SOMEVARIABLE}; then \
                rm -rf ${SOMEVARIABLE}
 
which seems fine, but if you look at the behavoir or test, it seems 
rather unexpected...
 
        bash$ if test -d; then echo hi; fi
        hi
 
i would have thought that the directory <blank> would return false, but
it returns true... =(.  so this is what happens in the makefile:
 
        bash$: rm -rf
        usage: rm [-f | -i] [-dPRr] file ...
 
anyway, taking a glance at then new bsd.mk.obj, make cleanobj (the
routine that was causing this problem) has been cleaned up to:
 
        rm -f -r ${.CURDIR}/${__objdir}
 
anyway, this all seemed rather odd to me b/c i couldn't believe that
-current was that broken... i knew there had to be a way around it (
i tried changing my /bin/sh, which i usually keep as a static bash,
for example) but never found one besides most heinous hacking of the
makefile.
 
oh well..  it's fixed now =).

--steve farrell
 


>
>
>	Hi,
>
>	my make worlds are failing with:
>cd /usr/src && make cleandir
>===> include
>usage: rm [-f | -i] [-dPRr] file ...
>*** Error code 1
>
>Stop.
>*** Error code 1
>
>Stop.
>*** Error code 1
>
>Stop.
>
>	I thought maybe it was a typo in the makefile, but I didn't find any.
>Any idea what's wrong?
>
>Charles
>
>
>------------------------------------------------------------------------------
>Charles C. Figueiredo              CCF13                   marxx@doomsday.org
>------------------------------------------------------------------------------
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607220630.BAA13190>