From 86238ec9d3a50149f3ed3441a73c6a8b71791f90 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 4 Jan 1995 19:37:36 +0000 Subject: [PATCH] install, uninstall, installdirs should not alter the build dir. --- make-stds.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make-stds.texi b/make-stds.texi index e19d61a1..12d5cb9e 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