From: Michael Tokarev Date: Sat, 5 Apr 2014 14:25:46 +0000 (+0400) Subject: Makefile: remove bashism X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~917 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c269f6d7bfb81cbbf501576b979831478dac5d9;p=sdk%2Femulator%2Fqemu.git Makefile: remove bashism When installing modules (when --enable-modules is specified for ./configure), Makefile uses the following construct to replace all slashes with dashes in module name: ${s//\//-} This is a bash-specific substitution mechanism. POSIX does not have it, and some operating systems (for example Debian) does not implement this construct in default shell (for example dash). Use more traditional way to perform the substitution: use `tr' tool. Signed-off-by: Michael Tokarev Message-id: 1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru Signed-off-by: Peter Maydell --- diff --git a/Makefile b/Makefile index ec74039..d622799 100644 --- a/Makefile +++ b/Makefile @@ -376,7 +376,7 @@ endif ifneq ($(CONFIG_MODULES),) $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \ - $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$${s//\//-}"; \ + $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \ done endif ifneq ($(HELPERS-y),)