summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-20 22:20:57 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-01-02 12:11:36 +0100
commit753930bc7300dd595c4bab51c5a70d1da9083da4 (patch)
treeb2325210bdde3c279313c38f1a1e073cfdeb2519 /doc/Makefile
parentc112be25f7825d14b1c39ccbf325b85883f852c2 (diff)
downloadffmpeg-753930bc7300dd595c4bab51c5a70d1da9083da4.tar.gz
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>
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 3e67c2a289..4a77aac10d 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -124,11 +124,12 @@ $(DOCS) doc/doxy/html: | doc/
$(DOC_EXAMPLES:%$(EXESUF)=%.o): | 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: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT)
- $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $< $(DOXYGEN) $(DOXY_INPUT)
+doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS)
+ $(M)OUT_DIR=$$PWD/doc/doxy; cd $(SRC_PATH); ./doc/doxy-wrapper.sh $$OUT_DIR $< $(DOXYGEN) $(DOXY_INPUT);
install-doc: install-html install-man