cifs-utils: fix probabilistic compiling error
authorlizhe <lizhe67@huawei.com>
Tue, 26 May 2020 03:54:11 +0000 (11:54 +0800)
committerPavel Shilovsky <pshilov@microsoft.com>
Thu, 3 Sep 2020 17:35:18 +0000 (10:35 -0700)
commitaeaa786aceb0ea781ded2c151fb68f6b34880ad4
tree0d603994d3bf97fbfa58fc124ede5386a7623bed
parentc608a7fa1c7385aa862e92a02bc122725231aed4
cifs-utils: fix probabilistic compiling error

When we compile cifs-utils, we may probabilistic
encounter install error like:
cd ***/sbin && ln -sf mount.cifs mount.smb3
***/sbin: No such file or directory

The reason of this problem is that if we compile
cifs-utils using multithreading, target
'install-sbinPROGRAMS' may be built after
target 'install-exec-hook' of the main Makefile.
Target 'install-sbinPROGRAMS' will copy the
executable file 'mount.cifs' to the $(ROOTSBINDIR),
which target 'install-exec-hook' will do the
'ln' command on.

This patch add the dependency of target
'install-exec-hook' to ensure the correct order
of the compiling.

Signed-off-by: lizhe <lizhe67@huawei.com>
Makefile.am