Commit 2613f7b7 authored by diego's avatar diego

Make man page installation dependent on documentation generation.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7042 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c7bec119
...@@ -52,6 +52,7 @@ endif ...@@ -52,6 +52,7 @@ endif
ifeq ($(BUILD_DOC),yes) ifeq ($(BUILD_DOC),yes)
DOC=documentation DOC=documentation
INSTALLMAN=install-man
endif endif
OBJS = ffmpeg.o ffserver.o cmdutils.o ffplay.o OBJS = ffmpeg.o ffserver.o cmdutils.o ffplay.o
...@@ -116,7 +117,7 @@ videohook: .libs ...@@ -116,7 +117,7 @@ videohook: .libs
documentation: documentation:
$(MAKE) -C doc all $(MAKE) -C doc all
install: install-progs install-libs install-headers install-man $(INSTALLVHOOK) install: install-progs install-libs install-headers $(INSTALLMAN) $(INSTALLVHOOK)
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
install-progs: $(PROGS) install-libs install-progs: $(PROGS) install-libs
...@@ -130,12 +131,9 @@ endif ...@@ -130,12 +131,9 @@ endif
wininstaller: all install wininstaller: all install
makensis ffinstall.nsi makensis ffinstall.nsi
# install man from source dir if available
install-man: install-man:
if [ -f doc/ffmpeg.1 ] ; then \ install -d "$(mandir)/man1"
install -d "$(mandir)/man1" ; \ install -m 644 $(MANPAGES) "$(mandir)/man1"
install -m 644 $(MANPAGES) "$(mandir)/man1" ; \
fi
install-vhook: install-vhook:
$(MAKE) -C vhook install $(MAKE) -C vhook install
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment