[FFmpeg-cvslog] Auto-generate dependencies for documentation

Mans Rullgard git
Wed Feb 2 03:56:26 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Mon Jan 31 22:51:23 2011 +0000| [c0f88eed8948836ef507f6ed3e80acb9c0f4dbcb] | committer: Michael Niedermayer

Auto-generate dependencies for documentation

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit a0f9c8ce372c3943104672f8fd7ba2bcf9a5e157)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0f88eed8948836ef507f6ed3e80acb9c0f4dbcb
---

 Makefile |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 2658a30..fb9d8a4 100644
--- a/Makefile
+++ b/Makefile
@@ -112,22 +112,22 @@ version.h .version:
 
 alltools: $(TOOLS)
 
-documentation: $(addprefix doc/, developer.html faq.html general.html libavfilter.html \
-                                 $(ALLHTMLPAGES) $(ALLMANPAGES))
+DOCS = $(addprefix doc/, developer.html faq.html general.html libavfilter.html $(ALLHTMLPAGES) $(ALLMANPAGES))
 
-$(HTMLPAGES) $(PODPAGES): doc/fftools-common-opts.texi
+documentation: $(DOCS)
 
-doc/ffmpeg.pod doc/ffmpeg.html: doc/demuxers.texi doc/bitstream_filters.texi doc/eval.texi doc/indevs.texi doc/filters.texi doc/outdevs.texi doc/protocols.texi doc/metadata.texi
-doc/ffplay.pod doc/ffplay.html: doc/demuxers.texi doc/eval.texi doc/indevs.texi doc/filters.texi doc/outdevs.texi doc/protocols.texi
-doc/ffprobe.pod doc/ffprobe.html: doc/demuxers.texi doc/indevs.texi doc/protocols.texi
-doc/libavfilter.html: doc/filters.texi
+-include $(wildcard $(DOCS:%=%.d))
+
+TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
 
 doc/%.html: TAG = HTML
 doc/%.html: doc/%.texi $(SRC_PATH_BARE)/doc/t2h.init
+	$(Q)$(TEXIDEP)
 	$(M)cd doc && texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%)
 
 doc/%.pod: TAG = POD
 doc/%.pod: doc/%.texi
+	$(Q)$(TEXIDEP)
 	$(M)doc/texi2pod.pl $< $@
 
 doc/%.1: TAG = MAN




More information about the ffmpeg-cvslog mailing list