mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 16:12:36 +00:00
doc: Use mv -f
in Makefile
Sphinx always runs, even in the `make install` stage. When `make install` is run as root and then another `make` is run by a nonprivileged user, some versions of `mv` prompt like this: mv: replace 'doc/manpages/_build/man/man.stamp', overriding mode 0644 (rw-r--r--)? Add -f to `mv` to avoid this. As `-f` is part of Posix, this should be portable enough. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
parent
979ee88491
commit
1eab76b985
@ -56,7 +56,7 @@ doc/%/_build/man/man.stamp: doc/%/_build/.doctrees/environment.pickle
|
||||
$(MKDIR_P) "$${subdoc}/_build/man"; touch $@.tmp; \
|
||||
$(SPHINXBUILD) -a -q -b man -d "$${subdoc}/_build/.doctrees" \
|
||||
$(ALLSPHINXOPTS) "$(top_srcdir)/$${subdoc}" "$${subdoc}/_build/man" && \
|
||||
mv $@.tmp $@ \
|
||||
mv -f $@.tmp $@ \
|
||||
)
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user