aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-08-24 16:02:39 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-08-24 16:02:39 +0000
commit23a65308e37e9193192cd004a69f787a5f7e2337 (patch)
treedf2719f1107d8bc4770f754c65d7bc521f1d7756 /Makefile
parentf5fe9d5f8ce09a01f6738f234935b270364b229e (diff)
downloadffmpeg-23a65308e37e9193192cd004a69f787a5f7e2337.tar.gz
man page installation support
Originally committed as revision 2145 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 35155bcfbb..1e12d33345 100644
--- a/Makefile
+++ b/Makefile
@@ -111,12 +111,20 @@ ffplay.o: ffplay.c
videohook: .libs
$(MAKE) -C vhook all
-install: all $(INSTALLVHOOK)
+install: all install-man $(INSTALLVHOOK)
$(MAKE) -C libavcodec install
$(MAKE) -C libavformat install
install -d $(prefix)/bin
install -c -s -m 755 $(PROG) $(prefix)/bin
+# install man from source dir if available
+install-man:
+ 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 ; \
+ fi
+
install-vhook: $(prefix)/lib/vhook
$(MAKE) -C vhook install INSTDIR=$(prefix)/lib/vhook