automake
[Top][All Lists]
Advanced

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

Re: _SOURCES files in sub-directories lead to make distdir failure


From: netfab
Subject: Re: _SOURCES files in sub-directories lead to make distdir failure
Date: Thu, 25 Jan 2018 13:56:33 +0100

Le 25/01/18 à 12:37, netfab a tapoté :
> When running make distdir with debug flag, grepping and tailing the
> output, I'm getting this :
> [...]
> > Considering target file 'src/lib/dbus/messages/GKDBusMessage.h '.
> > make: *** No rule to make target'src/lib/dbus/messages/GKDBusMessage.h ', 
> >needed by 'distdir'. Stop.  
> 
> I wonder why the last target path before the error is relative. It
> should be absolute.
> 

I got it !

But I still don't understand it.

In my makefile.am file, in the _SOURCES variable, I have the list of
sources files, including headers, like this :

> %D%/messages/GKDBusMessage.cpp \
> %D%/messages/GKDBusMessage.h \
> %D%/messages/GKDBusReply.cpp \
> %D%/messages/GKDBusReply.h \

I seems that the space character at the end of each .h line before
the \ is wrong. If I remove it, and insert a new space, git diff is
showing me :

> $ git diff
> diff --git a/src/lib/dbus/Makefile.am b/src/lib/dbus/Makefile.am
> index fd06217..76fd1f3 100644
> --- a/src/lib/dbus/Makefile.am
> +++ b/src/lib/dbus/Makefile.am
> @@ -30,9 +30,9 @@ libGLogiKDBus_la_SOURCES = \
>         %D%/arguments/GKDBusArgMacrosBank.cpp \
>         %D%/arguments/GKDBusArgMacrosBank.h \
>         %D%/messages/GKDBusMessage.cpp \
> -       %D%/messages/GKDBusMessage.h \
> +       %D%/messages/GKDBusMessage.h \
>         %D%/messages/GKDBusReply.cpp \
> -       %D%/messages/GKDBusReply.h \
> +       %D%/messages/GKDBusReply.h \
>         %D%/messages/GKDBusErrorReply.cpp \
>         %D%/messages/GKDBusErrorReply.h \
>         %D%/messages/GKDBusRemoteMethodCall.cpp \


And make -d distdir is saying me :
>   Considering target file 'src/lib/dbus/messages/GKDBusMessage.h'.
> --
>   No need to remake target 'src/lib/dbus/messages/GKDBusMessage.h';
>   using VPATH name
>   
> '/home/netfab/dev/projects/GLogiK/tools/../src/lib/dbus/messages/GKDBusMessage.h'.

That seems to happen with ten headers lines.

What I don't understand is that vim does not show me any difference
between those spaces, and I don't know where they come from.

distcheck is running fine now. Thanks all.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]