“Make install” vs “Make install clean”?

In *nix, when I compile software, when should I do:

# make install

vs

# make install clean

?

Answers


When you call make with arguments, you are giving it a list of targets.

There is some discussion of this in the Upgrading Ports section of the FreeBSD Handbook where it says:

Unlike the usual make install clean command, it will upgrade all
the dependencies prior to building and installing the selected
port.

[...]

Note: You can save two extra steps by just running make install
clean instead of make, make install and make clean as three
separate steps.

Also, as a side note: Don't build your package as root unless you really need to. In general you should work in an unprivileged account and then as a final step you can do sudo make install if you have to. It would be better, though, to add the unprivileged user to a group with write-access to the install directories, or even better to install it into a non-system area (for example, with ./configure you can use --prefix=) since most systems, whether Linux or BSD, usually have packages and a packaging system that is used to install software.


Need Your Help

iOS 6 simulator keyboard not responding

iphone ios keyboard simulator

I have a problem since I upgrade Xcode 4.4 to 4.5.

Javascript template engine which would come with a precompilation script?

javascript template-engine mustache precompiled ejs

I am searching for the javascript template engine which ships with the precompilation script + watcher. How would I see it:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.