[Top][All Lists]
[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: |
Ralf Wildenhues |
Subject: |
Re: Double '/' in source path breaks compilation if done from a directory not where the Makefile.am resides |
Date: |
Thu, 27 Nov 2008 21:01:40 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* Mike Frysinger wrote on Thu, Nov 27, 2008 at 08:52:32PM CET:
> On Thursday 27 November 2008 14:33:44 Aleksander Morgado wrote:
> > >> test_SOURCES = config.h \
> > >> $(srcdir)/src/module//test.c
> 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.
Naah. For things that you only ever specify as prerequisites, never as
targets, don't spell out the `$(srcdir)/', but let VPATH do its work.
Whenever you specify a file anywhere with `$(srcdir)/' as target or
prerequisite (and many of Automake's special variables end up being
prerequisites to some target), then do it consistently everywhere.
HTH.
Cheers,
Ralf