defs.mk: Replace sudo by $(SUDO)

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-15 12:47:17 +00:00
commit 4470364c54

View file

@ -37,6 +37,7 @@ RM := /usr/bin/rm
AR = /usr/bin/ar AR = /usr/bin/ar
PWD := /usr/bin/pwd PWD := /usr/bin/pwd
BIN_INSTALL := /usr/bin/install BIN_INSTALL := /usr/bin/install
SUDO ?= /usr/bin/sudo
# ----- standard variables # ----- standard variables
CVSTOPDIR ?= $(CVS_PROJ_DIR)/.. CVSTOPDIR ?= $(CVS_PROJ_DIR)/..
@ -693,8 +694,8 @@ ifeq ($(LOG_THREAD_NAMES), true)
endif endif
ifdef INSTALL_LINK ifdef INSTALL_LINK
INSTALL = sudo $(LOG_INSTALL_SH) -WA INSTALL = $(SUDO) $(LOG_INSTALL_SH) -WA
LINK_LIB = sudo $(LOG_INSTALL_SH) -LA LINK_LIB = $(SUDO) $(LOG_INSTALL_SH) -LA
else else
ifdef INSTALL_LOG ifdef INSTALL_LOG
INSTALL=$(LOG_INSTALL_SH) -p -l $(INSTALL_LOG) INSTALL=$(LOG_INSTALL_SH) -p -l $(INSTALL_LOG)
@ -747,8 +748,8 @@ define install_links
echo "o in $(INSTALL_$(1)DIR):" ;\ echo "o in $(INSTALL_$(1)DIR):" ;\
for f in $(notdir $(INSTALLED_$(1))); do \ for f in $(notdir $(INSTALLED_$(1))); do \
cd $(INSTALL_$(1)DIR); \ cd $(INSTALL_$(1)DIR); \
echo " sudo ln -sf $$cwd/$$f" ; \ echo " $(SUDO) ln -sf $$cwd/$$f" ; \
sudo ln -sf $$cwd/$$f; \ $(SUDO) ln -sf $$cwd/$$f; \
done; done;
endef endef