Fix out-of-tree building with prebuilt docs

This commit is contained in:
Martijn van Beurden 2022-09-26 11:03:14 +02:00
parent e9551810c7
commit 2440e19a73
2 changed files with 3 additions and 3 deletions

View File

@ -482,8 +482,8 @@ if test -n "$PANDOC" ; then
AC_DEFINE(FLAC__HAS_PANDOC)
AH_TEMPLATE(FLAC__HAS_PANDOC, [define if you have pandoc])
else
if [ -f "$srcdir/man/flac.1" ] && [ -f "$srcdir/man/metaflac.1" ] ; then
HAS_PREBUILT_MANPAGES = yes
if test -f "$srcdir/man/flac.1" && test -f "$srcdir/man/metaflac.1" ; then
HAS_PREBUILT_MANPAGES=yes
fi
fi
AM_CONDITIONAL(FLaC__HAS_PREBUILT_MANPAGES, test "x$HAS_PREBUILT_MANPAGES" = "xyes")

View File

@ -56,7 +56,7 @@ if FLaC__HAS_PREBUILT_DOXYGEN
# handle 'api/' specially:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(docdir)/api
(cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
(cd $(srcdir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
uninstall-local:
rm -rf $(DESTDIR)$(docdir)/api
endif