>>> "I�aki" == I�aki Ra�o Noal <[EMAIL PROTECTED]> writes:

[...]

 I�aki> src/foo/foo.c src/foo/foo.h
 I�aki> src/bar/bar.c src/bar/bar.h src/bar/foo-bar.c 
 I�aki> The src/Makefile.am file defines a VPATH variable equal to "foo bar",
 I�aki> but when I try to make dist the src sub-dirs are no included I get a
 I�aki> copy error: cp ./foo.c doesn't exists.

So avoid VPATH.  If you use Automake 1.5, your are
allowed to list files from subdirectories in _SOURCES.

For instance put something like this in your src/Makefile.am:

mylib_SOURCES = foo/foo.c foo/foo.h \
                bar/bar.c bar/bar.h bar/foo-bar.c

 I�aki> Just another question. Is there a way to create an obj directory to
 I�aki> build .o files? 

1.  You could just put a Makefile.am in this obj/ directory and
    build all what you want from here. (In case you'd like an
    example, POSE, the Palm OS Emulator, uses a similar setup --
    except it will build _everything_ in this directory.)

2.  However, if you're just concerned about not polluting your
    source files with built files, you could simply do a so
    called VPATH build.  Just cd to the directory you want to
    build your files into and run your configure from there.

    E.g., if your package is in ~/package you can build it into
    ~/build with: cd ~/build; ~/package/configure; make.
-- 
Alexandre Duret-Lutz

Reply via email to