[ovs-dev] [PATCH] Makefiles: Fix invocation of dot2pic when builddir != srcdir.

Ben Pfaff blp at nicira.com
Fri May 9 04:42:45 UTC 2014


On Fri, May 09, 2014 at 01:37:19PM +0900, YAMAMOTO Takashi wrote:
> > On Fri, May 09, 2014 at 01:26:03PM +0900, YAMAMOTO Takashi wrote:
> >> sorry, i didn't know builddir can be different from srcdir.
> > 
> > I guess not everyone builds that way but I like to have multiple
> > builddirs so that I can easily do both Clang and GCC builds off a single
> > source tree.
> 
> sounds useful.  can you share a recipe in INSTALL?

It is the same form as with every project built with Autoconf and
Automake.

    # Basic setup.
    cd ovs
    ./boot.sh

    # First build dir.
    # 
    # I name my builddirs beginning with "_".  It is only a
    # personal convention, although I think I got it from Paul Smith (see
    # http://mad-scientist.net/make/).
    mkdir _build
    (cd _build && ../configure && make)

    # Second build dir.
    mkdir _clang
    (cd _clang && ../configure CC=clang && make)

    # And then after that you can just run "make" in both directories.  I
    # use a simple script.

I am not sure that it is worth describing in INSTALL, because I am not
sure that most developers want to do it.



More information about the dev mailing list