ovsdbmonitor: Fix "make install" race.
authorBen Pfaff <blp@nicira.com>
Mon, 14 Mar 2011 23:39:28 +0000 (16:39 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 14 Mar 2011 23:39:28 +0000 (16:39 -0700)
In a parallel make, the install-exec-local target runs concurrently with
the creation of the directory that it installs into.  Fix the race by
using the install-exec-hook target instead, which runs subsequently to
directory creation.

ovsdb/ovsdbmonitor/automake.mk

index e24c5360beb30d88233b4a9181258a9e282366b5..11c25cb8dfb953dcbcc4da4573b8f8367df98a2d 100644 (file)
@@ -31,7 +31,7 @@ ovsdbmonitordir = ${pkgdatadir}/ovsdbmonitor
 if BUILD_OVSDBMONITOR
 noinst_SCRIPTS += ovsdb/ovsdbmonitor/ovsdbmonitor
 ovsdbmonitor_DATA = $(ovsdbmonitor_pyfiles)
-install-exec-local:
+install-exec-hook:
        sed -e '/NOINSTALL/d' < ovsdb/ovsdbmonitor/ovsdbmonitor > ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
        chmod +x ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
        $(INSTALL_PROGRAM) ovsdb/ovsdbmonitor/ovsdbmonitor.tmp $(DESTDIR)$(bindir)/ovsdbmonitor