aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Boos <nicolas.boos@wanadoo.fr>2004-06-17 22:46:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-17 22:46:11 +0000
commitbbec50d7abc2dc121d02c38272c0fc4467a35b62 (patch)
tree2b8f22abc1c2c977ebf7c41707f6d2f86215ec55 /Makefile
parent08f7073a6ff09ca0f8fc38313eeca0ae739fc254 (diff)
downloadffmpeg-bbec50d7abc2dc121d02c38272c0fc4467a35b62.tar.gz
Install only manpage if binary is present patch by (Nicolas Boos <nicolas.boos at wanadoo dot fr>)
Originally committed as revision 3230 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dd95e1ac95..277be416d1 100644
--- a/Makefile
+++ b/Makefile
@@ -14,15 +14,18 @@ CFLAGS+=-p
LDFLAGS+=-p
endif
+MANPAGE=$(SRC_PATH)/doc/ffmpeg.1
PROG=ffmpeg$(EXESUF)
PROGTEST=output_example$(EXESUF)
QTFASTSTART=qt-faststart$(EXESUF)
ifeq ($(CONFIG_FFSERVER),yes)
+MANPAGE+=$(SRC_PATH)/doc/ffserver.1
PROG+=ffserver$(EXESUF)
endif
ifeq ($(CONFIG_FFPLAY),yes)
+MANPAGE+=$(SRC_PATH)/doc/ffplay.1
PROG+=ffplay$(EXESUF)
endif
@@ -126,8 +129,7 @@ install-man:
ifneq ($(CONFIG_WIN32),yes)
if [ -f $(SRC_PATH)/doc/ffmpeg.1 ] ; then \
install -d $(mandir)/man1 ; \
- install -m 644 $(SRC_PATH)/doc/ffmpeg.1 $(SRC_PATH)/doc/ffplay.1 \
- $(SRC_PATH)/doc/ffserver.1 $(mandir)/man1 ; \
+ install -m 644 $(MANPAGE) $(mandir)/man1 ; \
fi
endif