[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "m
From: |
Eric Blake |
Subject: |
Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"? |
Date: |
Tue, 13 Mar 2012 09:09:59 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
On 03/13/2012 08:55 AM, Robert Boehne wrote:
>>
>> So we're in a sort of a tie here: some users think that the current
>> Automake
>> behaviour is a feature (and I lean toward that position), other ones
>> (with
>> Ralf among them, apparently) believe it's a bug. Hmmm. What now?
>>
>> Regards,
>> Stefano
>
> I would agree with the "feature" camp. Users should be able to create
> an empty $(pkgdatadir) - suppose that empty directory is populated by
> other methods. They should also be able to not create $(pkgdatadir) as
> well as a non-empty $(pkgdatadir).
I like the idea of installing empty directories by default, as a
feature, but can also see the arguments for omitting a directory. What
about a compromise:
By default, we create the empty directory:
pkgdata_DATA =
But with the noinst flag, a directory can be specifically marked for no
creation unless it later has contents:
noinst_pkgdata_DATA =
For the sake of conditional concatenation, we should either allow:
noinst_pkgdata_DATA =
if COND
pkgdata_DATA += file
endif
or else make the documentation explicit that to conditionally install
contents to a directory, but to omit the directory if no contents are
present, then you must do:
noinst_pkgdata_DATA =
pkgdata_DATA =
if COND
pkgdata_DATA += file
endif
Either way, the semantics are that if there are contents in a directory,
then the directory is created; if the conditions make it so there are no
contents in a directory, then the directory is created _unless_ the
noinst_ prefix also appeared with that directory.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [PATCH] gnulib-tool: fix imprecise comments, Stefano Lattarini, 2012/03/13
- Re: [PATCH] gnulib-tool: fix imprecise comments, Bruno Haible, 2012/03/13
- Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"?, Stefano Lattarini, 2012/03/21
- Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"?, Bruno Haible, 2012/03/21
- Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"?, Stefano Lattarini, 2012/03/23
- Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"?, Jim Meyering, 2012/03/23
- Re: should an empty "pkgdata_DATA" cause creation of $(pkgdatadir) by "make install"?, Stefano Lattarini, 2012/03/23