Allow multi-word "install" command.
Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:
# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"
# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory
# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
1 # ===========================================================================
2 # crosstool-NG configuration targets
3 # These targets are used from top-level makefile
5 #-----------------------------------------------------------
6 # The configurators rules
8 configurators = menuconfig nconfig oldconfig
9 PHONY += $(configurators)
11 $(configurators): config_files
13 CONF := $(CT_LIB_DIR)/kconfig/conf
14 MCONF := $(CT_LIB_DIR)/kconfig/mconf
15 NCONF := $(CT_LIB_DIR)/kconfig/nconf
18 @$(ECHO) " CONF $(KCONFIG_TOP)"
19 $(SILENT)$(MCONF) $(KCONFIG_TOP)
22 @$(ECHO) " CONF $(KCONFIG_TOP)"
23 $(SILENT)$(NCONF) $(KCONFIG_TOP)
26 @$(ECHO) " CONF $(KCONFIG_TOP)"
27 $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
29 # Always be silent, the stdout an be >.config
31 @awk 'BEGIN { dump=0; } \
32 dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \
34 gsub("^[[:space:]]",""); \
37 $$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
40 $$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
44 #-----------------------------------------------------------
45 # Help text used by make help
48 @echo ' menuconfig - Update current config using a menu based program'
49 @echo ' oldconfig - Update current config using a provided .config as base'
50 @echo ' extractconfig - Extract to stdout the configuration items from a'
51 @echo ' build.log file piped to stdin'