bug-automake
[Top][All Lists]
Advanced

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

Re: Double '/' in source path breaks compilation if done from a director


From: Mike Frysinger
Subject: Re: Double '/' in source path breaks compilation if done from a directory not where the Makefile.am resides
Date: Thu, 27 Nov 2008 14:52:32 -0500
User-agent: KMail/1.10.3 (Linux/2.6.27.4; KDE/4.1.3; x86_64; ; )

On Thursday 27 November 2008 14:33:44 Aleksander Morgado wrote:
> >> Also, if I use $(srcdir) to mark the top level path of the sources, it
> >> won't crash. But not sure if this is the best way to have it:
> >>
> >> test_SOURCES = config.h \
> >>                $(srcdir)/src/module//test.c
> >
> > afaik, this is correct.  the issue has nothing to do with multiple
> > slashes, but your Makefile is not properly written to handle srcdir !=
> > builddir.
>
> But then why does it work when compiling from buildir != srcdir and
> single slashes are used?

sorry, i missed that part.  as Ralf stated, i imagine that's a bug with how 
GNU make handles multiple slashes and VPATHs.  regardless, i think you should 
be using $(srcdir) all the time ... but maybe that's just my personal style 
opinion.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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