mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-07 15:16:58 +00:00
Formerly compatMakefile.~60~
This commit is contained in:
parent
573ddaf6da
commit
708c7c90a3
1 changed files with 12 additions and 2 deletions
|
@ -80,6 +80,8 @@ bindir = $(exec_prefix)/bin
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
# Directory to search by default for included makefiles.
|
# Directory to search by default for included makefiles.
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
|
# Directory to install the Info files in.
|
||||||
|
infodir = $(prefix)/info
|
||||||
# Directory to install the man page in.
|
# Directory to install the man page in.
|
||||||
mandir = $(prefix)/man/man$(manext)
|
mandir = $(prefix)/man/man$(manext)
|
||||||
# Number to put on the man page filename.
|
# Number to put on the man page filename.
|
||||||
|
@ -172,16 +174,24 @@ tags: $(tagsrcs)
|
||||||
$(CTAGS) $(tagsrcs)
|
$(CTAGS) $(tagsrcs)
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(bindir)/$(instname) $(mandir)/$(instname).$(manext)
|
install: $(bindir)/$(instname) $(infodir)/$(instname).info \
|
||||||
|
$(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.
|
||||||
if $(install_setgid); then \
|
-if $(install_setgid); then \
|
||||||
chgrp $(group) $@.new && chmod g+s $@.new; \
|
chgrp $(group) $@.new && chmod g+s $@.new; \
|
||||||
else true; fi
|
else true; fi
|
||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
|
|
||||||
|
$(infodir)/$(instname).info: make.info
|
||||||
|
for file in $(srcdir)/make.info*; do \
|
||||||
|
name="`basename $$file`"
|
||||||
|
$(INSTALL_DATA) $$file \
|
||||||
|
`echo $@ | sed "s/$(instname).info\$$/$$name/"`
|
||||||
|
done
|
||||||
|
|
||||||
$(mandir)/$(instname).$(manext): make.man
|
$(mandir)/$(instname).$(manext): make.man
|
||||||
$(INSTALL_DATA) $(srcdir)/make.man $@
|
$(INSTALL_DATA) $(srcdir)/make.man $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue