Fix behavior of simultaneous "make" and "make dist".
authorBen Pfaff <blp@nicira.com>
Tue, 9 Jun 2009 21:19:53 +0000 (14:19 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 9 Jun 2009 21:19:53 +0000 (14:19 -0700)
We were distributing lib/dirs.c, which doesn't make sense, but in any case
it created a race between "make" and "make dist" in updating lib/dirs.c,
which showed up in the Debian package build (which runs build-indep and
build-arch in parallel).

Also, clean lib/dhparams.c.

This should fix the failure seen in build openvswitch843.

lib/automake.mk

index 4d2924b6394b4d5f7d06ec7b0f20c56cd6cfc512..c617b19c51b3150e8685c4341597f11ac5e6b956 100644 (file)
@@ -25,7 +25,6 @@ lib_libopenvswitch_a_SOURCES = \
        lib/dhcp.c \
        lib/dhcp.h \
        lib/dhparams.h \
-       lib/dirs.c \
        lib/dirs.h \
        lib/dynamic-string.c \
        lib/dynamic-string.h \
@@ -105,6 +104,9 @@ lib_libopenvswitch_a_SOURCES = \
        lib/vlog.c \
        lib/vlog.h \
        lib/xtoxll.h
+nodist_lib_libopenvswitch_a_SOURCES = \
+       lib/dirs.c
+CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
 
 if HAVE_NETLINK
 lib_libopenvswitch_a_SOURCES += \
@@ -118,7 +120,7 @@ endif
 if HAVE_OPENSSL
 lib_libopenvswitch_a_SOURCES += \
        lib/vconn-ssl.c 
-nodist_lib_libopenvswitch_a_SOURCES = lib/dhparams.c
+nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
        (echo '#include "lib/dhparams.h"' &&                            \
         openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout &&      \
@@ -142,7 +144,6 @@ EXTRA_DIST += \
        lib/vlog.man
 
 
-CLEANFILES += lib/dirs.c
 lib/dirs.c: Makefile
        ($(ro_c) && \
         echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \