diff --git a/configure b/configure index 035fb8abb8..6767c6ac36 100755 --- a/configure +++ b/configure @@ -82,6 +82,7 @@ Standard options: --prefix=PREFIX install in PREFIX [$prefix] --bindir=DIR install binaries in DIR [PREFIX/bin] --datadir=DIR install data files in DIR [PREFIX/share/ffmpeg] + --docdir=DIR install documentation in DIR [PREFIX/share/doc/ffmpeg] --libdir=DIR install libs in DIR [PREFIX/lib] --shlibdir=DIR install shared libs in DIR [PREFIX/lib] --incdir=DIR install includes in DIR [PREFIX/include] @@ -1602,6 +1603,7 @@ CMDLINE_SELECT=" PATHS_LIST=' bindir datadir + docdir incdir libdir mandir @@ -2270,6 +2272,7 @@ logfile="config.log" prefix_default="/usr/local" bindir_default='${prefix}/bin' datadir_default='${prefix}/share/ffmpeg' +docdir_default='${prefix}/share/doc/ffmpeg' incdir_default='${prefix}/include' libdir_default='${prefix}/lib' mandir_default='${prefix}/share/man' @@ -4683,6 +4686,7 @@ SHLIBDIR=\$(DESTDIR)$shlibdir INCDIR=\$(DESTDIR)$incdir BINDIR=\$(DESTDIR)$bindir DATADIR=\$(DESTDIR)$datadir +DOCDIR=\$(DESTDIR)$docdir MANDIR=\$(DESTDIR)$mandir SRC_PATH=$source_path ifndef MAIN_MAKEFILE diff --git a/doc/Makefile b/doc/Makefile index cd24b8c597..8452ce3e12 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -91,7 +91,11 @@ doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS) install-man: ifdef CONFIG_MANPAGES -install-progs-$(CONFIG_DOC): install-man +install-progs-$(CONFIG_DOC): install-doc install-man + +install-doc: $(HTMLPAGES) + $(Q)mkdir -p "$(DOCDIR)" + $(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)" install-man: $(MANPAGES) $(Q)mkdir -p "$(MANDIR)/man1" @@ -100,7 +104,10 @@ install-man: $(MANPAGES) $(INSTALL) -m 644 $(MANPAGES3) "$(MANDIR)/man3" endif -uninstall: uninstall-man +uninstall: uninstall-doc uninstall-man + +uninstall-doc: + $(RM) -r "$(DOCDIR)" uninstall-man: $(RM) $(addprefix "$(MANDIR)/man1/",$(MANPAGES1))