doc: make apidoc output independent of SRC_PATH
Previously it included the SRC_PATH in every title. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
c112be25f7
commit
753930bc73
@ -124,11 +124,12 @@ $(DOCS) doc/doxy/html: | doc/
|
|||||||
$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples
|
$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples
|
||||||
OBJDIRS += doc/examples
|
OBJDIRS += doc/examples
|
||||||
|
|
||||||
DOXY_INPUT = $(addprefix $(SRC_PATH)/, $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c))
|
DOXY_INPUT = $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c)
|
||||||
|
DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT))
|
||||||
|
|
||||||
doc/doxy/html: TAG = DOXY
|
doc/doxy/html: TAG = DOXY
|
||||||
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT)
|
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS)
|
||||||
$(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $< $(DOXYGEN) $(DOXY_INPUT)
|
$(M)OUT_DIR=$$PWD/doc/doxy; cd $(SRC_PATH); ./doc/doxy-wrapper.sh $$OUT_DIR $< $(DOXYGEN) $(DOXY_INPUT);
|
||||||
|
|
||||||
install-doc: install-html install-man
|
install-doc: install-html install-man
|
||||||
|
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SRC_PATH="${1}"
|
OUT_DIR="${1}"
|
||||||
DOXYFILE="${2}"
|
DOXYFILE="${2}"
|
||||||
DOXYGEN="${3}"
|
DOXYGEN="${3}"
|
||||||
|
|
||||||
shift 3
|
shift 3
|
||||||
|
|
||||||
if [ -e "$SRC_PATH/VERSION" ]; then
|
if [ -e "VERSION" ]; then
|
||||||
VERSION=`cat "$SRC_PATH/VERSION"`
|
VERSION=`cat "VERSION"`
|
||||||
else
|
else
|
||||||
VERSION=`cd "$SRC_PATH"; git describe`
|
VERSION=`git describe`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DOXYGEN - <<EOF
|
$DOXYGEN - <<EOF
|
||||||
@INCLUDE = ${DOXYFILE}
|
@INCLUDE = ${DOXYFILE}
|
||||||
INPUT = $@
|
INPUT = $@
|
||||||
EXAMPLE_PATH = ${SRC_PATH}/doc/examples
|
|
||||||
HTML_TIMESTAMP = NO
|
HTML_TIMESTAMP = NO
|
||||||
PROJECT_NUMBER = $VERSION
|
PROJECT_NUMBER = $VERSION
|
||||||
|
OUTPUT_DIRECTORY = $OUT_DIR
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user