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.

51 lines
1.4KB

  1. MANPAGES = $(PROGS-yes:%=doc/%.1)
  2. PODPAGES = $(PROGS-yes:%=doc/%.pod)
  3. HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
  4. doc/developer.html \
  5. doc/faq.html \
  6. doc/general.html \
  7. doc/libavfilter.html \
  8. DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
  9. all-$(CONFIG_DOC): documentation
  10. documentation: $(DOCS)
  11. TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
  12. doc/%.html: TAG = HTML
  13. doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init
  14. $(Q)$(TEXIDEP)
  15. $(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
  16. doc/%.pod: TAG = POD
  17. doc/%.pod: doc/%.texi
  18. $(Q)$(TEXIDEP)
  19. $(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
  20. doc/%.1: TAG = MAN
  21. doc/%.1: doc/%.pod
  22. $(M)pod2man --section=1 --center=" " --release=" " $< > $@
  23. $(DOCS): | doc
  24. OBJDIRS += doc
  25. install-progs-$(CONFIG_DOC): install-man
  26. install-man: $(MANPAGES)
  27. $(Q)mkdir -p "$(MANDIR)/man1"
  28. $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
  29. uninstall: uninstall-man
  30. uninstall-man:
  31. $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
  32. clean::
  33. $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%)
  34. -include $(wildcard $(DOCS:%=%.d))
  35. .PHONY: documentation