mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-05 22:17:05 +00:00
Formerly compatMakefile.~52~
This commit is contained in:
parent
9705781777
commit
71fceb51e3
1 changed files with 8 additions and 2 deletions
|
@ -85,6 +85,11 @@ mandir = $(prefix)/man/man$(manext)
|
||||||
# Number to put on the man page filename.
|
# Number to put on the man page filename.
|
||||||
manext = 1
|
manext = 1
|
||||||
|
|
||||||
|
# Whether or not make needs to be installed setgid.
|
||||||
|
# The value should be either `true' or `false'.
|
||||||
|
# On many systems, the getloadavg function (used to implement the `-l'
|
||||||
|
# switch) will not work unless make is installed setgid kmem.
|
||||||
|
install_setgid = @NEED_SETGID@
|
||||||
# Install make setgid to this group so it can read /dev/kmem.
|
# Install make setgid to this group so it can read /dev/kmem.
|
||||||
group = kmem
|
group = kmem
|
||||||
|
|
||||||
|
@ -172,8 +177,9 @@ install: $(bindir)/$(instname) $(mandir)/$(instname).$(manext)
|
||||||
$(bindir)/$(instname): make
|
$(bindir)/$(instname): make
|
||||||
$(INSTALL_PROGRAM) make $@.new
|
$(INSTALL_PROGRAM) make $@.new
|
||||||
# These are necessary for load-average checking to work on most Unix machines.
|
# These are necessary for load-average checking to work on most Unix machines.
|
||||||
-chgrp $(group) $@.new
|
if $(install_setgid); then \
|
||||||
-chmod g+s $@.new
|
chgrp $(group) $@.new && chmod g+s $@.new; \
|
||||||
|
else true; fi
|
||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
|
|
||||||
$(mandir)/$(instname).$(manext): make.man
|
$(mandir)/$(instname).$(manext): make.man
|
||||||
|
|
Loading…
Reference in a new issue