diff options
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/docs/Makefile b/docs/Makefile index a76ce024e73c..96978d893ef8 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -16,15 +16,22 @@ DOXYGEN = doxygen $(PROJ_OBJ_DIR)/doxygen.cfg: doxygen.cfg.in cat $< | sed \ - -e 's/@abs_srcdir@/./g' \ -e 's/@DOT@/dot/g' \ -e 's/@PACKAGE_VERSION@/mainline/' \ -e 's/@abs_builddir@/./g' \ + -e 's/@abs_srcdir@/./g' \ + -e 's/@clang_doxygen_generate_qhp@/NO/g' \ + -e 's/@clang_doxygen_qch_filename@//g' \ + -e 's/@clang_doxygen_qhelpgenerator_path@//g' \ + -e 's/@clang_doxygen_qhp_cust_filter_attrs@//g' \ + -e 's/@clang_doxygen_qhp_cust_filter_name@//g' \ + -e 's/@clang_doxygen_qhp_namespace@//g' \ + -e 's/@enable_external_search@/NO/g' \ -e 's/@enable_searchengine@/NO/g' \ - -e 's/@searchengine_url@//g' \ -e 's/@enable_server_based_search@/NO/g' \ - -e 's/@enable_external_search@/NO/g' \ - -e 's/@extra_search_mappings@//g' > $@ + -e 's/@extra_search_mappings@//g' \ + -e 's/@searchengine_url@//g' \ + > $@ endif include $(CLANG_LEVEL)/Makefile @@ -32,9 +39,7 @@ include $(CLANG_LEVEL)/Makefile HTML := $(wildcard $(PROJ_SRC_DIR)/*.html) \ $(wildcard $(PROJ_SRC_DIR)/*.css) #IMAGES := $(wildcard $(PROJ_SRC_DIR)/img/*.*) -DOXYFILES := doxygen.cfg.in doxygen.css doxygen.footer doxygen.header \ - doxygen.intro -EXTRA_DIST := $(HTML) $(DOXYFILES) llvm.css CommandGuide img +DOXYFILES := doxygen.cfg.in doxygen.intro .PHONY: install-html install-doxygen doxygen generated @@ -68,11 +73,14 @@ $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML) install-doxygen: doxygen $(Echo) Installing doxygen documentation - $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/doxygen $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(DESTDIR)$(PROJ_docsdir) - $(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \ - $(FIND) . -type f -exec \ - $(DataInstall) {} $(DESTDIR)$(PROJ_docsdir)/html/doxygen \; + $(Verb) cd $(PROJ_OBJ_DIR)/doxygen/html && \ + for DIR in $$($(FIND) . -type d); do \ + DESTSUB="$(DESTDIR)$(PROJ_docsdir)/html/doxygen/$$(echo $$DIR | cut -c 3-)"; \ + $(MKDIR) $$DESTSUB && \ + $(FIND) $$DIR -maxdepth 1 -type f -exec $(DataInstall) {} $$DESTSUB \; ; \ + if [ $$? != 0 ]; then exit 1; fi \ + done doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz |