GNU bug report logs - #32269
AM_INIT_AUTOMAKE, subdir-objects, and $(DEPDIR) not being set correctly

Previous Next

Package: automake;

Reported by: Philip Prindeville <philipp <at> redfish-solutions.com>

Date: Wed, 25 Jul 2018 12:10:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Philip Prindeville <philipp <at> redfish-solutions.com>
To: Nick Bowler <nbowler <at> draconx.ca>
Cc: 32269 <at> debbugs.gnu.org
Subject: bug#32269: Expanding variables
Date: Wed, 25 Jul 2018 16:06:46 -0600

> On Jul 25, 2018, at 2:37 PM, Nick Bowler <nbowler <at> draconx.ca> wrote:
> 
> On 7/25/18, Philip Prindeville <philipp <at> redfish-solutions.com> wrote:
>> Since automake/autoconf are responsible for generating Makefiles, we
>> could add something like:
>> 
>> val.%:
>> 	@$(if $(filter undefined,$(origin $*)),\
>> 		echo "$* undefined" >&2, \
>> 		echo '$(subst ','"'"',$($*))' \
>> 	)
>> 
>> var.%:
>> 	@$(if $(filter undefined,$(origin $*)),\
>> 		echo "$* undefined" >&2, \
>> 		echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \
>> 	)
>> 
>> toward the bottom.
> 
> I'm not exactly sure what the purpose of this is, but it doesn't
> look like portable code, so probably not something Automake should
> be generating.
> 
> But don't let that stop you.  You can add basically anything you'd
> like, including the above rules, to your project's Makefile.am and
> Automake will copy it through to the output.
> 
> Cheers,
>  Nick


Well, the above assumes Gnu Make, yes.

How many other flavors of Make does automake/autoconf work with?

-Philip





This bug report was last modified 6 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.