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