target 'uninstall' completely removes directory /usr/local/share/man/man1 under FreeBSD

hi there,

i was quite shocked to see that target 'uninstall' entirely scrubs my
/usr/local/share/man/man1 directory under FreeBSD (amd64; HEAD). :frowning:

this is the output of 'gmake -n uninstall' under build-clang/docs:

echo llvm[0]: Uninstalling Documentation
/bin/rm -rf /usr/local/docs/llvm
for dir in CommandGuide tutorial; do \
    if ([ ! -f $dir/Makefile ] || \
        command test $dir/Makefile -ot /usr/local/src/llvm/docs/$dir/Makefile ); then \
      /usr/local/src/llvm/autoconf/mkinstalldirs $dir; \
      /bin/cp /usr/local/src/llvm/docs/$dir/Makefile $dir/Makefile; \
    fi; \
    (gmake -C $dir uninstall ) || exit 1; \
  done
gmake[1]: Entering directory `/usr/local/src/build-clang/docs/CommandGuide'
echo llvm[1]: Uninstalling CommandGuide Documentation
/bin/rm -rf /usr/local/docs/llvm/html/CommandGuide /usr/local/share/man/man1 /usr/local/docs/llvm/ps
gmake[1]: Leaving directory `/usr/local/src/build-clang/docs/CommandGuide'
gmake[1]: Entering directory `/usr/local/src/build-clang/docs/tutorial'
echo llvm[1]: Uninstalling Tutorial Documentation
/bin/rm -rf /usr/local/docs/llvm/html/tutorial
gmake[1]: Leaving directory `/usr/local/src/build-clang/docs/tutorial'

cheers.
alex

'configure --help' claims that the preset prefix directory is /usr/local, which
is just what i want.

this is clearly a bug in the makefile imo. could somebody please try
'make -n uninstall' in doc/ under linux and see what happens?

cheers.
alex