20
DOXYGEN_STAMPS = $(DOXYGEN_OUTPUT_DIR).stamp
22
25
# FIXME: Depend on source files.
23
$(DOXYGEN_OUTPUT_DIR).stamp: Doxyfile
26
DOXYGEN_STAMPS += $(HTML_APIDOC_DIR).stamp
27
$(HTML_APIDOC_DIR).stamp: Doxyfile
27
$(HTML_APIDOC_DIR).tar.gz: $(DOXYGEN_OUTPUT_DIR).stamp
31
$(HTML_APIDOC_DIR).tar.gz: $(HTML_APIDOC_DIR).stamp
28
32
(cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_DIR) | GZIP=--best gzip -c) > $@
30
DOC_APIDOC_HTML = apidocs.html
32
install-apidocs: $(DOXYGEN_OUTPUT_DIR).stamp
33
$(INSTALL) -m 0755 -d $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)
34
$(INSTALL) -m 0644 $(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)/* $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)/
34
$(HTML_APIDOC_INTERNALS_DIR).tar.gz: $(HTML_APIDOC_INTERNALS_DIR).stamp
35
(cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_INTERNALS_DIR) | GZIP=--best gzip -c) > $@
37
LOCAL_INSTALL += install-apidocs
38
install-apidocs: $(HTML_APIDOC_DIR).stamp
39
mkdir -p "$(DESTDIR)$(docdir)"
40
find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)" \
41
\( -type d -exec chmod 0755 {} \; \) -or \
42
\( -type f -exec chmod 0644 {} \; \)
43
(unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_DIR)") \
44
| (cd "$(DESTDIR)$(docdir)" && tar xpf -)
46
LOCAL_UNINSTALL += uninstall-apidocs
37
cd "$(DESTDIR)$(docdir)" && rm -f $(DOC_APIDOC_HTML)/*
38
rmdir $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)
48
rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_DIR)"
50
LOCAL_CLEAN += clean-apidocs
41
rm -rf $(DOXYGEN_OUTPUT_DIR)
42
rm -f $(DOXYGEN_OUTPUT_DIR).stamp
52
rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)"
53
rm -f $(HTML_APIDOC_DIR).stamp
43
54
rm -f $(HTML_APIDOC_DIR).tar.gz
46
# if we ever have more targets, move those out...
56
if ENABLE_INTERNAL_DOCS
58
DOXYGEN_STAMPS += $(HTML_APIDOC_INTERNALS_DIR).stamp
59
# FIXME: Depend on source files.
60
$(HTML_APIDOC_INTERNALS_DIR).stamp: Doxyfile-internals
61
doxygen Doxyfile-internals
64
LOCAL_INSTALL += install-apidocs-internals
65
install-apidocs-internals: $(HTML_APIDOC_INTERNALS_DIR).stamp
66
mkdir -p "$(DESTDIR)$(docdir)"
67
find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)" \
68
\( -type d -exec chmod 0755 {} \; \) -or \
69
\( -type f -exec chmod 0644 {} \; \)
70
(unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_INTERNALS_DIR)") \
71
| (cd "$(DESTDIR)$(docdir)" && tar xpf -)
73
LOCAL_UNINSTALL += uninstall-apidocs-internals
74
uninstall-apidocs-internals:
75
rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_INTERNALS_DIR)"
77
LOCAL_CLEAN += clean-apidocs-internals
78
clean-apidocs-internals:
79
rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)"
80
rm -f $(HTML_APIDOC_INTERNALS_DIR).stamp
81
rm -f $(HTML_APIDOC_INTERNALS_DIR).tar.gz
48
85
all-local: $(DOXYGEN_STAMPS)
50
install-data-local: install-apidocs
52
uninstall-local: uninstall-apidocs
54
clean-local: clean-apidocs
56
doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz
58
doc_DATA = $(DOXYGEN_FILES) README.apidocs
60
CLEANFILES = $(DOXYGEN_FILES) $(DOXYGEN_STAMPS)
87
install-data-local: $(LOCAL_INSTALL)
89
uninstall-local: $(LOCAL_UNINSTALL)
91
clean-local: $(LOCAL_CLEAN)
92
rm -rf $(DOXYGEN_OUTPUT_DIR)
94
doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz
96
doc_DATA = README.apidocs
98
CLEANFILES = $(DOXYGEN_STAMPS)