| # Rules to convert a .h file to inline RST documentation |
| SRC_DIR=$(srctree)/doc/media |
| PARSER = $(srctree)/doc/sphinx/parse-headers.pl |
| FILES = linker_lists.h.rst |
| TARGETS := $(addprefix $(BUILDDIR)/, $(FILES)) |
| echo ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions; \ |
| ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions |
| quiet_gen_rst = echo ' PARSE $(patsubst $(srctree)/%,%,$<)'; \ |
| ${PARSER} $< $@ $(SRC_DIR)/$(notdir $@).exceptions |
| silent_gen_rst = ${gen_rst} |
| $(BUILDDIR)/linker_lists.h.rst: ${API}/linker_lists.h ${PARSER} $(SRC_DIR)/linker_lists.h.rst.exceptions |
| .PHONY: all html epub xml latex |
| all: $(IMGDOT) $(BUILDDIR) ${TARGETS} |
| -rm -f $(DOTTGT) $(IMGTGT) ${TARGETS} 2>/dev/null |