On 2008/08/28 13:53, macintoshzoom wrote:
> I thought that make was clever enough as to check what it is already  
> installed to obey the update command, and this is as it works, but the  
> issue is that it creates the packages even when not needed

You overestimate make's capabilities. It checks existence and/or 
timestamps of files to decide if they need rebuilding, and it
checks dependencies to find out what order to do things in.

update *depends* on having a package. If you don't have one,
it must create it before it can try to update it.

What you want is outside the scope of make. It involves checking
which libraries you've got installed and which version of the package
is installed, before deciding whether or not to update it. That's
the job of the package tools, or something like the "out-of-date"
script, not make.

(hint: "out-of-date" creates output in a format that can be written
to a file and passed to the ports Makefiles as a SUBDIRLIST).

> I don't think they are links, they are real copies. I am checking this  
> with konqueror as su and it show clearly when the file is a link
> or a real file.

That's not a good way to check. Try ls(1).

Reply via email to