Re: [PATCH spice-streaming-agent] build: Do not use top_srcdir if not necessary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 29 Jan 2018, at 23:16, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:
> 
>> 
>> 
>>> On 29 Jan 2018, at 12:00, Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:
>>> 
>>> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
>>> ---
>>> Makefile.am | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>> 
>>> diff --git a/Makefile.am b/Makefile.am
>>> index baa9835..74ec16a 100644
>>> --- a/Makefile.am
>>> +++ b/Makefile.am
>>> @@ -6,11 +6,11 @@ SUBDIRS = \
>>> 
>>> # this will start the program for each user session
>>> xdgautostartdir = $(sysconfdir)/xdg/autostart
>>> -xdgautostart_DATA = $(top_srcdir)/data/spice-streaming.desktop
>>> +xdgautostart_DATA = $(srcdir)/data/spice-streaming.desktop
>> 
>> Could you clarify why it helps in the commit message?
>> Did you run into a problem integrating that in a higher-level project?
>> 
>> Seems to be an enhancement for me anyway, so if you explain
>> why this is incorrect in the commit message…
>> 
>> Acked-by: Christophe de Dinechin <dinechin@xxxxxxxxxx>
>> 
>> 
>>> # this will start the program for the login session
>>> gdmautostartdir = $(datadir)/gdm/greeter/autostart
>>> -gdmautostart_DATA = $(top_srcdir)/data/spice-streaming.desktop
>>> +gdmautostart_DATA = $(srcdir)/data/spice-streaming.desktop
>>> 
>>> pkgconfigdir = $(libdir)/pkgconfig
>>> pkgconfig_DATA = spice-streaming-agent.pc
> 
> Beside reducing the typing usually I prefer srcdir because you can move
> (like under a subdirectory) the Makefile and the relative files without
> changing the source.

I understood that, read my comment (“enhancement for me anyway”).
But I think adding this to the commit message would help:

“Using srcdir instead of top_srcdir will allow another project to include this one”


> 
> Frediano
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]