Be more explicit about the default value of DESTDIR

This way, "make --warn-undefined-variables install" does not warn.
master
Xavier Leroy 2019-05-02 19:36:40 +02:00
parent c4f115cdae
commit 4b6174d624
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ INSTALL_PROG ?= $(INSTALL) -m u=rwx,g=rwx,o=rx
# as some parts of the makefiles change BINDIR, etc.
# and expect INSTALL_BINDIR, etc. to stay in synch
# (see `shellquote` in tools/Makefile)
DESTDIR ?=
INSTALL_BINDIR = $(DESTDIR)$(BINDIR)
INSTALL_LIBDIR = $(DESTDIR)$(LIBDIR)
INSTALL_STUBLIBDIR = $(DESTDIR)$(STUBLIBDIR)

View File

@ -16,6 +16,7 @@
ROOTDIR = ..
include $(ROOTDIR)/Makefile.config
DESTDIR ?=
INSTALL_DIR=$(DESTDIR)$(MANDIR)/man$(PROGRAMS_MAN_SECTION)
install: