mirror of
https://github.com/mirror/make.git
synced 2025-01-16 23:31:08 +08:00
Formerly compatMakefile.~76~
This commit is contained in:
parent
f4fac65746
commit
24cd5ede9e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user