automake
[Top][All Lists]
Advanced

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

interaction with dependency tracking and subdir-objects


From: Robert Collins
Subject: interaction with dependency tracking and subdir-objects
Date: 16 Aug 2001 19:45:59 +1000

The following:

AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = foo
foo_SOURCES = $(top_srcdir)/main.c

is legal AFAIK, and while the $(top_srcdir) is somewhat redundant, it
could get used when including some common rules via an automake
include..

unfortunately it generates the following dependency file path:
.deps/$(top_srcdir)/main.Po, which can fail in VPATH builds.

as a result I'd like to propose that dependencies get placed in 
the same relative directory as the source file resides, not the same
directory as the Makefile.

ie for this case $(top_builddir)/.deps/main.c

thoughts?
Rob

Attachment: depend5.test
Description: Text Data


reply via email to

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