[gnutls-devel] -jX broken for X > 2 (in guile)

Ludovic Courtès ludo at gnu.org
Sat Sep 14 14:32:04 CEST 2013


Eli Zaretskii <eliz at gnu.org> skribis:

>> From: ludo at gnu.org (Ludovic Courtès)
>> Date: Fri, 13 Sep 2013 23:50:51 +0200
>> 
>> Could you try this:
>> 
>> diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am
>> index 1077502..7dedd41 100644
>> --- a/guile/src/Makefile.am
>> +++ b/guile/src/Makefile.am
>> @@ -102,7 +102,7 @@ priorities.i.c: $(srcdir)/make-session-priorities.scm
>>  snarfcppopts = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
>>  	       $(CFLAGS) $(guile_gnutls_v_2_la_CFLAGS)
>>  
>> -.c.x: $(GENERATED_BINDINGS)
>> +%.x: %.c $(GENERATED_BINDINGS)
>>  	$(guile_snarf) -o $@ $< $(snarfcppopts)
>>  
>
> This requires GNU Make, doesn't it?

Yes, which was not the case until this change.  (I’m not sure if GnuTLS
is still developed with make portability in mind, though.)

>> I just noticed this (info "(make) Suffix Rules"):
>> 
>>      Suffix rules cannot have any prerequisites of their own.  If they
>>   have any, they are treated as normal files with funny names, not as
>>   suffix rules.
>
> The usual way of working around this is to have separate dependencies
> for the *.c files.

OK, so if Andreas confirms that it works as expected, I’ll do it this way.

BTW, do you know if Make’s behavior in this regard changed in 3.82?
Because clearly, Make doesn’t treat .c.x as a “funny file name” here.

Ludo’.



More information about the Gnutls-devel mailing list