Browse code

Allow disabling doc generation with --disable-doc

Originally committed as revision 20424 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2009/11/01 00:58:49
Showing 2 changed files
... ...
@@ -33,11 +33,11 @@ FF_LDFLAGS   := $(FFLDFLAGS)
33 33
 FF_EXTRALIBS := $(FFEXTRALIBS)
34 34
 FF_DEP_LIBS  := $(DEP_LIBS)
35 35
 
36
-ALL_TARGETS-$(BUILD_DOC)    += documentation
36
+ALL_TARGETS-$(CONFIG_DOC)       += documentation
37 37
 
38 38
 ifdef PROGS
39 39
 INSTALL_TARGETS-yes             += install-progs install-data
40
-INSTALL_TARGETS-$(BUILD_DOC)    += install-man
40
+INSTALL_TARGETS-$(CONFIG_DOC)   += install-man
41 41
 endif
42 42
 INSTALL_PROGS_TARGETS-$(CONFIG_SHARED) = install-libs
43 43
 
... ...
@@ -78,6 +78,7 @@ show_help(){
78 78
   echo "  --enable-version3        upgrade (L)GPL to version 3 [no]"
79 79
   echo "  --enable-nonfree         allow use of nonfree code, the resulting libs"
80 80
   echo "                           and binaries will be unredistributable [no]"
81
+  echo "  --disable-doc            do not build documentation"
81 82
   echo "  --disable-ffmpeg         disable ffmpeg build"
82 83
   echo "  --disable-ffplay         disable ffplay build"
83 84
   echo "  --disable-ffserver       disable ffserver build"
... ...
@@ -823,6 +824,7 @@ CONFIG_LIST="
823 823
     avisynth
824 824
     beos_netserver
825 825
     bzlib
826
+    doc
826 827
     fastdiv
827 828
     ffmpeg
828 829
     ffplay
... ...
@@ -1261,6 +1263,7 @@ ffplay_deps="sdl"
1261 1261
 ffserver_deps="ffm_muxer rtp_protocol rtsp_demuxer"
1262 1262
 ffserver_extralibs='$ldl'
1263 1263
 
1264
+doc_deps="texi2html"
1264 1265
 
1265 1266
 # default parameters
1266 1267
 
... ...
@@ -1297,6 +1300,7 @@ host_os=$target_os
1297 1297
 
1298 1298
 # configurable options
1299 1299
 enable debug
1300
+enable doc
1300 1301
 enable fastdiv
1301 1302
 enable ffmpeg
1302 1303
 enable ffplay
... ...
@@ -2708,9 +2712,6 @@ if enabled sdl; then
2708 2708
     echo "SDL_LIBS=$("${SDL_CONFIG}" --libs)" >> config.mak
2709 2709
     echo "SDL_CFLAGS=$("${SDL_CONFIG}" --cflags)" >> config.mak
2710 2710
 fi
2711
-if enabled texi2html; then
2712
-    echo "BUILD_DOC=yes" >> config.mak
2713
-fi
2714 2711
 
2715 2712
 get_version(){
2716 2713
     name=$1