Ralf Wildenhues wrote:

> Hi Jim,
>
> Jim Meyering writes:
>> --- a/src/Makefile.am
>> +++ b/src/Makefile.am
>> @@ -290,26 +290,29 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g'
>>
>>  BUILT_SOURCES += dircolors.h
>>  dircolors.h: dcgen dircolors.hin
>> -    @rm -f $@ $...@-t
>> -    $(PERL) -w -- $(srcdir)/dcgen $(srcdir)/dircolors.hin > $...@-t
>> -    @chmod a-w $...@-t
>> -    mv $...@-t $@
>> +    $(AM_V_GEN)
>> +    $(AM_V_at)rm -f $@ $...@-t
>> +    $(AM_V_at)$(PERL) -w -- $(srcdir)/dcgen $(srcdir)/dircolors.hin > 
>> $...@-t
>> +    $(AM_V_at)chmod a-w $...@-t
>> +    $(AM_V_at)mv $...@-t $@
>
> Thanks for using these.  Note the $(AM_V_GEN) will expand to the empty string
> with V=1 or --disable-silent-rules.  I am actually not sure whether any make
> implementation fails hard upon empty rule commands, but a couple of them will
> output a warning, such as FreeBSD:
>   $(AM_V_GEN) expands to empty string
>
> and AIX:
>   make: 1254-053 Command "$(AM_V_GEN)" expands to empty string.
>
> You might want to just prepend the $(AM_V_GEN) to the next command, without
> anything in-between.  We might want to document this better in automake.texi.

Hi Ralf,

How about making AM_V_GEN expand to ":;" rather than the empty string?
That would seem slightly more symmetric.
Fewer pitfalls for users, too.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to