1 MANPAGES
= $(PROGS-yes
:%=doc
/%.1)
2 PODPAGES
= $(PROGS-yes
:%=doc
/%.pod
)
3 HTMLPAGES
= $(PROGS-yes
:%=doc
/%.html
) \
13 DOCS
= $(HTMLPAGES
) $(MANPAGES
) $(PODPAGES
)
15 all-
$(CONFIG_DOC
): documentation
18 documentation
: $(DOCS
)
20 TEXIDEP
= awk
'/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@
:%=%.d
)
22 GENTEXI
= format codec
23 GENTEXI
:= $(GENTEXI
:%=doc
/avoptions_
%.texi
)
25 $(GENTEXI
): TAG
= GENTEXI
26 $(GENTEXI
): doc
/avoptions_
%.texi
: doc
/print_options
27 $(M
)doc
/print_options
$* > $@
29 doc
/%.html
: TAG
= HTML
30 doc
/%.html
: doc
/%.texi
$(SRC_PATH
)/doc
/t2h.init
$(GENTEXI
)
32 $(M
)texi2html
-I doc
-monolithic
--init-file
$(SRC_PATH
)/doc
/t2h.init
--output
$@
$<
35 doc
/%.pod
: doc
/%.texi
$(SRC_PATH
)/doc
/texi2pod.pl
$(GENTEXI
)
37 $(M
)$(SRC_PATH
)/doc
/texi2pod.pl
-Idoc
$< $@
40 doc
/%.1: doc
/%.pod
$(GENTEXI
)
41 $(M
)pod2man
--section
=1 --center
=" " --release
=" " $< > $@
43 $(DOCS
) doc
/doxy
/html
: | doc
/
45 doc
/doxy
/html
: $(SRC_PATH
)/doc
/Doxyfile
$(INSTHEADERS
)
46 $(M
)$(SRC_PATH
)/doc
/doxy-wrapper.sh
$(SRC_PATH
) $^
48 install-progs-
$(CONFIG_DOC
): install-man
50 install-man
: $(MANPAGES
)
51 $(Q
)mkdir
-p
"$(MANDIR)/man1"
52 $(INSTALL
) -m
644 $(MANPAGES
) "$(MANDIR)/man1"
54 uninstall: uninstall-man
57 $(RM
) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES
))
60 $(RM
) doc
/*.html doc
/*.pod doc
/*.1 $(CLEANSUFFIXES
:%=doc
/%) doc
/avoptions_
*.texi
61 $(RM
) -r doc
/doxy
/html
63 -include $(wildcard $(DOCS
:%=%.d
))
65 .PHONY
: apidoc documentation