diff options
author | Matthew Booth <mbooth@redhat.com> | 2009-07-03 11:52:50 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2009-07-03 16:16:51 +0100 |
commit | 349814e9d912c4f372b8fbdfb10b03749911021f (patch) | |
tree | 7168b6ee4dadd363a28a73e2a5ff26799395d75c /daemon | |
parent | 5f9cb51f11879ece8b921d833850505d7e57d339 (diff) | |
download | libguestfs-349814e9d912c4f372b8fbdfb10b03749911021f.tar.gz libguestfs-349814e9d912c4f372b8fbdfb10b03749911021f.tar.xz libguestfs-349814e9d912c4f372b8fbdfb10b03749911021f.zip |
Make it possible to build in a separate directory
This patch allows you to do:
mkdir build
cd build
../configure ...
make
This will output all generated files to the build directory. Given that
autogen automatically runs configure, you can also do:
BUILDDIR=./build ./autogen.sh
which will do the right thing.
Also:
* Fix a dependency bug which means that guestfs_protocol.h
isn't automatically rebuilt.
* Re-running autogen.sh with no arguments won't blow away your previous
configure arguments.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/Makefile.am | 4 | ||||
-rw-r--r-- | daemon/configure.ac | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 141dfadd..846a95c7 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -67,7 +67,7 @@ guestfsd_SOURCES = \ wc.c \ zero.c \ zerofree.c \ - ../src/guestfs_protocol.h \ - ../src/guestfs_protocol.c + $(top_builddir)/../src/guestfs_protocol.h \ + $(top_builddir)/../src/guestfs_protocol.c guestfsd_CFLAGS = -Wall diff --git a/daemon/configure.ac b/daemon/configure.ac index 6ecbb8a6..238532ea 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -16,7 +16,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AC_INIT([libguestfs-daemon],[1.0.0]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_MACRO_DIR([m4]) |