Determine install folder when building from source
Hi,
When building binary from source using make command line, is it possible to know the destination directory that all files will be copied to when running make install? I suppose a few lines in the makefile will indicate this. Someone tells I could check then value of these variable prefix and exec_prefix, but what i've found is only this: prefix = @prefix@ exec_prefix = @exec_prefix@ Don't really know what does it mean? Thanks, mrpc_cambodia |
By default most software you download and build with configure, make, make install will be installed in /usr/local -- and that's not a bad idea.
You can override the default when you execute configure. The easy way to find out what the options are is to do this: Code:
configure --help | more Code:
Hope this helps some. |
Thanks for the comment.
But I am really curious about the value @prefix@ that is assigned to the prefix variable in my case. What does it really mean? Mrpc_cambodia |
Oh, sorry about that -- the @ as the first character on a line in a Makefile prevents the command from being echoed.
Also, Quote:
Hope this helps some. |
Make is the command to compile source into binary. I wonder if it's possible to inspect what's has been compiled, ex: binary, lib, etc.. before running the "make install" command so that I know what will be copied to my computer?
Thanks, |
You can read through the Makefile to see what is being "made" and what's going to happen to it; you ought to start, however, with The Gnu Make Manual, http://www.gnu.org/software/make/manual/ (this may be on your system as an info document).
You can execute make with (from the man make page) Code:
-n, --just-print, --dry-run, --recon |
All times are GMT -5. The time now is 06:43 PM. |