bug-automake
[Top][All Lists]
Advanced

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

Cross-directory support


From: Ludovic Courtès
Subject: Cross-directory support
Date: Sun, 14 Dec 2008 15:17:58 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hello,

A couple of questions about "cross-directory support" (info "(automake)
Alternative").

Suppose the following layout:

  Makefile.am    -> SUBDIRS = src
  src/
    Makefile.am  -> libfoo_SOURCES = a.c b.c c.c
    a.c
    b.c
    c.c

Switching to a non-recursive `make' model goes like this:

  Makefile.am    -> libfoo_SOURCES = src/a.c src/b.c src/c.c
  src/
    a.c
    b.c
    c.c

Questions:

  1. Is it possible to avoid repeating `src/' in the second case?

  2. Can we somehow arrange the second case so that `libfoo' is built in
     `$top_builddir/src' (as in the first case) rather than
     `$top_builddir'?

Thanks,
Ludo'.





reply via email to

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