diff options
author | Roland McGrath <roland@redhat.com> | 1993-01-11 19:45:52 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-01-11 19:45:52 +0000 |
commit | 71fceb51e3dc49609bb1b500b11b964820b0941b (patch) | |
tree | ccd21a20ed3a32f228f95f01428beaf766883324 /compatMakefile | |
parent | 9705781777440072fa1dcec175b00086310d0741 (diff) | |
download | gunmake-71fceb51e3dc49609bb1b500b11b964820b0941b.tar.gz |
Formerly compatMakefile.~52~
Diffstat (limited to 'compatMakefile')
-rw-r--r-- | compatMakefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/compatMakefile b/compatMakefile index f45672b..5b6bb3a 100644 --- a/compatMakefile +++ b/compatMakefile @@ -85,6 +85,11 @@ mandir = $(prefix)/man/man$(manext) # Number to put on the man page filename. 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. group = kmem @@ -172,8 +177,9 @@ install: $(bindir)/$(instname) $(mandir)/$(instname).$(manext) $(bindir)/$(instname): make $(INSTALL_PROGRAM) make $@.new # These are necessary for load-average checking to work on most Unix machines. - -chgrp $(group) $@.new - -chmod g+s $@.new + if $(install_setgid); then \ + chgrp $(group) $@.new && chmod g+s $@.new; \ + else true; fi mv $@.new $@ $(mandir)/$(instname).$(manext): make.man |