diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-01-04 19:37:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-01-04 19:37:36 +0000 |
commit | 86238ec9d3a50149f3ed3441a73c6a8b71791f90 (patch) | |
tree | fb2fb901e883fbb724940a2f9b9604f95deb093a | |
parent | 2e9779fdb40e5348a7a8c9a2bf8fc09eb674c1dc (diff) | |
download | gunmake-86238ec9d3a50149f3ed3441a73c6a8b71791f90.tar.gz |
install, uninstall, installdirs should not alter the build dir.
-rw-r--r-- | make-stds.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/make-stds.texi b/make-stds.texi index e19d61a..12d5cb9 100644 --- a/make-stds.texi +++ b/make-stds.texi @@ -163,6 +163,11 @@ the file names where they should reside for actual use. If there is a simple test to verify that a program is properly installed, this target should run that test. +If possible, write the @code{install} target rule so that it does not +modify anything in the directory where the program was built, provided +@samp{make all} has just been done. This is convenient for building the +program under one user name and installing it under another. + The commands should create all the directories in which files are to be installed, if they don't already exist. This includes the directories specified as the values of the variables @code{prefix} and @@ -205,6 +210,9 @@ Delete all the installed files that the @samp{install} target would create (but not the noninstalled files such as @samp{make all} would create). +This rule should not modify the directories where compilation is done, +only the directories where files are installed. + @comment The gratuitous blank line here is to make the table look better @comment in the printed Make manual. Please leave it in. @item clean @@ -327,6 +335,9 @@ installdirs: mkinstalldirs $(libdir) $(infodir) \ $(mandir) @end smallexample + +This rule should not modify the directories where compilation is done. +It should do nothing but create installation directories. @end table @node Command Variables |