From: Eli Zaretskii <eliz@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Any idea why "make V=1" isn't working for me?
Date: Sat, 10 Oct 2015 15:23:42 +0300 [thread overview]
Message-ID: <83h9lysyi9.fsf@gnu.org> (raw)
In-Reply-To: <CAAeL0STGd0bduzyJYXwRD+_0gKfJ5t9F3rFnO2fRgxvqxBrLGA@mail.gmail.com>
> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Sat, 10 Oct 2015 13:32:34 +0200
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> > Can you post your nt/Makefile?
>
> Attached.
Now everything becomes clear. Here's the problem:
> # 'make' verbosity.
> AM_DEFAULT_VERBOSITY = 0
>
> AM_V_CC = $(am__v_CC_0)
> am__v_CC_ = $(am__v_CC_0)
> am__v_CC_0 = @echo " CC " $@;
> am__v_CC_1 =
>
> AM_V_CCLD = $(am__v_CCLD_0)
> am__v_CCLD_ = $(am__v_CCLD_0)
> am__v_CCLD_0 = @echo " CCLD " $@;
> am__v_CCLD_1 =
>
> AM_V_RC = $(am__v_RC_0)
> am__v_RC_ = $(am__v_RC_0)
> am__v_RC_0 = @echo " RC " $@;
> am__v_RC_1 =
On my system, the same fragment is this:
# 'make' verbosity.
AM_DEFAULT_VERBOSITY = 0
AM_V_CC = $(am__v_CC_$(V))
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
AM_V_CCLD = $(am__v_CCLD_$(V))
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
AM_V_RC = $(am__v_RC_$(V))
am__v_RC_ = $(am__v_RC_$(AM_DEFAULT_VERBOSITY))
am__v_RC_0 = @echo " RC " $@;
am__v_RC_1 =
And now it is clear why your Makefile doesn't react to setting V: the
value zero is hard-coded, and is unaffected by "v=1"!
I think the problem is with configure-time detection of whether your
Make supports nested variables. The configure script has this:
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
enableval=$enable_silent_rules;
fi
case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no) AM_DEFAULT_VERBOSITY=1;;
*) AM_DEFAULT_VERBOSITY=0;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if test "${am_cv_make_support_nested_variables+set}" = set; then :
$as_echo_n "(cached) " >&6
else
if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
am_cv_make_support_nested_variables=yes
else
am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
AM_V='$(V)'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
AM_V=$AM_DEFAULT_VERBOSITY
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'
: ${AM_V=$AM_DEFAULT_VERBOSITY}
: ${AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY}
Can you look inside config.log and see what did configure find when it
ran this fragment? Here it says this:
configure:8755: checking whether make supports nested variables
configure:8772: result: yes
and also
configure:3820: checking for GNU Make
configure:3870: result: make
next prev parent reply other threads:[~2015-10-10 12:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 9:53 Any idea why "make V=1" isn't working for me? Juanma Barranquero
2015-10-10 5:07 ` Paul Eggert
2015-10-10 8:48 ` Eli Zaretskii
2015-10-10 8:51 ` Eli Zaretskii
2015-10-10 10:08 ` Juanma Barranquero
2015-10-10 11:10 ` Eli Zaretskii
2015-10-10 11:32 ` Juanma Barranquero
2015-10-10 12:23 ` Eli Zaretskii [this message]
2015-10-10 13:19 ` Juanma Barranquero
2015-10-10 14:12 ` Eli Zaretskii
2015-10-10 14:18 ` Juanma Barranquero
2015-10-10 14:32 ` Eli Zaretskii
2015-10-10 14:53 ` Juanma Barranquero
2015-10-10 15:33 ` Eli Zaretskii
2015-10-10 23:57 ` Juanma Barranquero
2015-10-11 15:03 ` Eli Zaretskii
2015-10-12 1:50 ` Juanma Barranquero
2015-10-12 17:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h9lysyi9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.