1 # Rules to convert a .h file to inline RST documentation
3 SRC_DIR
=$(srctree
)/Documentation
/media
4 PARSER
= $(srctree
)/Documentation
/sphinx
/parse-headers.pl
5 API
= $(srctree
)/include
7 FILES
= linker_lists.h.rst
9 TARGETS
:= $(addprefix $(BUILDDIR
)/, $(FILES
))
12 echo
${PARSER} $< $@
$(SRC_DIR
)/$(notdir $@
).exceptions
; \
13 ${PARSER} $< $@
$(SRC_DIR
)/$(notdir $@
).exceptions
15 quiet_gen_rst
= echo
' PARSE $(patsubst $(srctree)/%,%,$<)'; \
16 ${PARSER} $< $@
$(SRC_DIR
)/$(notdir $@
).exceptions
18 silent_gen_rst
= ${gen_rst}
20 $(BUILDDIR
)/linker_lists.h.rst
: ${API}/linker_lists.h
${PARSER} $(SRC_DIR
)/linker_lists.h.rst.exceptions
25 .PHONY
: all html epub xml latex
27 all: $(IMGDOT
) $(BUILDDIR
) ${TARGETS}
35 -rm -f
$(DOTTGT
) $(IMGTGT
) ${TARGETS} 2>/dev
/null