summaryrefslogtreecommitdiff
path: root/compatMakefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-08 00:24:19 +0000
committerRoland McGrath <roland@redhat.com>1993-06-08 00:24:19 +0000
commit24cd5ede9e7accfc6674c7c8c2ef5da0652a007f (patch)
tree05efb7e4048d11069a697427bd891b79e866b5fc /compatMakefile
parentf4fac657461454cae36a9c9f8a18addc8cebd447 (diff)
downloadgunmake-24cd5ede9e7accfc6674c7c8c2ef5da0652a007f.tar.gz
Formerly compatMakefile.~76~
Diffstat (limited to 'compatMakefile')
-rw-r--r--compatMakefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/compatMakefile b/compatMakefile
index cc080a3..56fc8dd 100644
--- a/compatMakefile
+++ b/compatMakefile
@@ -183,14 +183,19 @@ install: installdirs \
$(mandir)/$(instname).$(manext)
installdirs:
- $(SHELL) ${srcdir}/mkinstalldirs
+ $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(mandir)
$(bindir)/$(instname): make
$(INSTALL_PROGRAM) make $@.new
-# These are necessary for load-average checking to work on most Unix machines.
- if $(install_setgid); then \
- chgrp $(group) $@.new && chmod g+s $@.new; \
- else true; fi
+ @if $(install_setgid); then \
+ if chgrp $(group) $@.new && chmod g+s $@.new; then
+ echo "chgrp $(group) $@.new && chmod g+s $@.new"; \
+ else \
+ echo "$@ needs to be owned by group $(group) and setgid;"; \
+ echo "otherwise the \`-l' option will probably not work."; \
+ echo "You may need special priveleges to install $@."; \
+ fi; \
+ else true; fi
# Some systems can't deal with renaming onto a running binary.
-rm -f $@.old
-mv $@ $@.old