[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: directory depth
From: |
Alexandre Duret-Lutz |
Subject: |
Re: directory depth |
Date: |
26 Oct 2001 09:55:41 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>> "Iñaki" == Iñaki Raño Noal <address@hidden> 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
- directory depth, Iñaki Raño Noal, 2001/10/25
- Re: directory depth,
Alexandre Duret-Lutz <=