You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.9KB

  1. LIBRARIES-$(CONFIG_AVUTIL) += libavutil
  2. LIBRARIES-$(CONFIG_SWSCALE) += libswscale
  3. LIBRARIES-$(CONFIG_SWRESAMPLE) += libswresample
  4. LIBRARIES-$(CONFIG_AVCODEC) += libavcodec
  5. LIBRARIES-$(CONFIG_AVFORMAT) += libavformat
  6. LIBRARIES-$(CONFIG_AVDEVICE) += libavdevice
  7. LIBRARIES-$(CONFIG_AVFILTER) += libavfilter
  8. COMPONENTS-$(CONFIG_AVUTIL) += ffmpeg-utils
  9. COMPONENTS-$(CONFIG_SWSCALE) += ffmpeg-scaler
  10. COMPONENTS-$(CONFIG_SWRESAMPLE) += ffmpeg-resampler
  11. COMPONENTS-$(CONFIG_AVCODEC) += ffmpeg-codecs ffmpeg-bitstream-filters
  12. COMPONENTS-$(CONFIG_AVFORMAT) += ffmpeg-formats ffmpeg-protocols
  13. COMPONENTS-$(CONFIG_AVDEVICE) += ffmpeg-devices
  14. COMPONENTS-$(CONFIG_AVFILTER) += ffmpeg-filters
  15. MANPAGES = $(PROGS-yes:%=doc/%.1) $(PROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1) $(LIBRARIES-yes:%=doc/%.3)
  16. PODPAGES = $(PROGS-yes:%=doc/%.pod) $(PROGS-yes:%=doc/%-all.pod) $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
  17. HTMLPAGES = $(PROGS-yes:%=doc/%.html) $(PROGS-yes:%=doc/%-all.html) $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \
  18. doc/developer.html \
  19. doc/faq.html \
  20. doc/fate.html \
  21. doc/general.html \
  22. doc/git-howto.html \
  23. doc/nut.html \
  24. doc/platform.html \
  25. TXTPAGES = doc/fate.txt \
  26. DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
  27. DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
  28. DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
  29. DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
  30. DOCS = $(DOCS-yes)
  31. all-$(CONFIG_DOC): doc
  32. doc: documentation
  33. apidoc: doc/doxy/html
  34. documentation: $(DOCS)
  35. TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
  36. doc/%.txt: TAG = TXT
  37. doc/%.txt: doc/%.texi
  38. $(Q)$(TEXIDEP)
  39. $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
  40. GENTEXI = format codec
  41. GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
  42. $(GENTEXI): TAG = GENTEXI
  43. $(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
  44. $(M)doc/print_options $* > $@
  45. doc/%.html: TAG = HTML
  46. doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
  47. $(Q)$(TEXIDEP)
  48. $(M)texi2html -I doc -monolithic --D=config-not-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
  49. doc/%-all.html: TAG = HTML
  50. doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
  51. $(Q)$(TEXIDEP)
  52. $(M)texi2html -I doc -monolithic --D=config-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
  53. doc/%.pod: TAG = POD
  54. doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
  55. $(Q)$(TEXIDEP)
  56. $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc $< $@
  57. doc/%-all.pod: TAG = POD
  58. doc/%-all.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
  59. $(Q)$(TEXIDEP)
  60. $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-all=yes -Idoc $< $@
  61. doc/%.1 doc/%.3: TAG = MAN
  62. doc/%.1: doc/%.pod $(GENTEXI)
  63. $(M)pod2man --section=1 --center=" " --release=" " $< > $@
  64. doc/%.3: doc/%.pod $(GENTEXI)
  65. $(M)pod2man --section=3 --center=" " --release=" " $< > $@
  66. $(DOCS) doc/doxy/html: | doc/
  67. doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
  68. $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
  69. install-man:
  70. ifdef CONFIG_MANPAGES
  71. install-progs-$(CONFIG_DOC): install-man
  72. install-man: $(MANPAGES)
  73. $(Q)mkdir -p "$(MANDIR)/man1"
  74. $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
  75. endif
  76. uninstall: uninstall-man
  77. uninstall-man:
  78. $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
  79. clean:: docclean
  80. distclean:: docclean
  81. $(RM) doc/config.texi
  82. docclean:
  83. $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
  84. $(RM) -r doc/doxy/html
  85. -include $(wildcard $(DOCS:%=%.d))
  86. .PHONY: apidoc doc documentation