help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion to improve make :add option to install in base directory


From: Paul D. Smith
Subject: Re: Suggestion to improve make :add option to install in base directory
Date: Sat, 13 May 2006 13:21:40 -0400

%% "nadav vinik" <address@hidden> writes:

  nv> make doesn't include any option to install in different base
  nv> location from / most of the software include option like --prefix
  nv> or DESTDIR, but there any standard to this.  It's very helpfull to
  nv> create packages and arrange the files.  There some programs that
  nv> don't include the DESTDIR like glibec.

If you mean an option to install GNU make in a different base location,
then it does support both of these options (--prefix and DESTDIR).

If you mean a way to have make do this automatically for makefiles which
don't support it, then such a thing is, of course, technically impossible.
Make has no idea what any command that it runs does: it simply invokes a
shell and passes the script to the shell to run.  It doesn't know if
that command was a compile (or even what kind of language was compiled),
a link, an "install", or something completely different.

And it certainly can't modify the shell script it's invoking to have it
do something different.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]