summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-09-28 19:32:38 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-09-28 19:36:19 +0200
commit1eab76b985b91f5ac173338af511d20bf008029a (patch)
treee9fb6e245ebef287be2bed5f5cf119eea6337d10
parent979ee884911aeeda2b1dd0942e07d68d4b32e955 (diff)
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>
-rw-r--r--doc/subdir.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/subdir.am b/doc/subdir.am
index 4170101655..7d3792bf2b 100644
--- a/doc/subdir.am
+++ b/doc/subdir.am
@@ -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 $@ \
)
#