Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Mar 2000 00:57:44 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        dima@Chg.RU
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ports/17245: Probably incorrect target handling in bsd.port.mk
Message-ID:  <868zzusrgn.wl@archon.local.idaemons.org>
In-Reply-To: In your message of "Tue, 7 Mar 2000 17:26:48 %2B0300 (MSK)" <200003071426.RAA04183@netserv1.chg.ru>
References:  <200003071223.PAA01415@netserv1.chg.ru> <86aekasvwk.wl@archon.local.idaemons.org> <200003071426.RAA04183@netserv1.chg.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
  Hello...

At Tue, 7 Mar 2000 17:26:48 +0300 (MSK),
Dmitry Sivachenko <dima@Chg.RU> wrote:
> No, after 'install', target 'clean' is  _not_ up to date again.
> This is due to bsd.port.mk eliminates duplicate targets to speed up
> 'make clean' in the ports, that have many dependencies.

 Sigh.. and you got another example here:

$ cat Makefile
a:
        touch a
        echo "a"

b:
        rm a
        echo "b"


See, after "b", "a" is expected to be _not_ up to date, so you may
think doing "make a b a" will make "a" twice.  But in reality, it
works like this:

$ make a b a
touch a
echo "a"
a
rm a
echo "b"
b


  By the way, have you _really_ verified that the problem is caused by
the bsd.port.mk's update?

  Okay, I downgraded bsd.port.mk to 1.327 and tried "make clean
install clean" with a certain port, then I confirmed that the second
"clean" was uncommitted.

  Also, you should try "make reinstall deinstall reinstall", "make
deinstall install deinstall", and/or whatever in the form "make a b a"
to learn how make works.

-- 
                           /
                          /__  __
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  <knu@idaemons.org>

"If you choose not to decide you still have made a choice."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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