[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generating pc file
From: |
Bruce Korb |
Subject: |
Re: generating pc file |
Date: |
Fri, 21 Sep 2012 15:08:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 |
On 09/21/12 11:14, David A. Wheeler wrote:
> 2. If the GNU standards stay as-is, the autotools need to make this easy to
> do,
And that is easy to do. Just bundle up the configured substitutions into a
macro a la adding this to Makefile.in:
WHATEVERINAMEDIT = \
prefix="@prefix@" \
[...]
Russ proposed a slightly different variation on that that amounted to the same
thing. Another variation is to get the make program to just export environment
variables that correspond to the configured values. I think that would be nice,
but you'd have to invent syntax to tell make "This is an exported value" because
that won't happen by default.
Anyway, usage of WHATEVERINAMEDIT is quite straight forward:
$(WHATEVERINAMEDIT) $(SHELL) script-du-jour
and that script can be as trivial as a "cat" command reading from a here doc.
- Re: generating pc file, (continued)
- Re: generating pc file, Russ Allbery, 2012/09/20
- Re: generating pc file, Nick Bowler, 2012/09/20
- Re: generating pc file, Russ Allbery, 2012/09/20
- Re: generating pc file, Nick Bowler, 2012/09/20
- Re: generating pc file, Russ Allbery, 2012/09/20
- Re: generating pc file, Bob Friesenhahn, 2012/09/20
- Re: generating pc file, Russ Allbery, 2012/09/20
- Re: generating pc file, Bob Friesenhahn, 2012/09/20
Re: generating pc file, David A. Wheeler, 2012/09/21
Re: generating pc file, David A. Wheeler, 2012/09/22