1
## generate API documentation with doxygen
3
@if test "$(subdir)" != "."; then \
4
$(mkinstalldirs) $(top_builddir)/apidocs/$(subdir) ;\
5
if test ! -x $(top_builddir)/apidocs/common; then \
6
if test -d $(top_srcdir)/doc/common; then \
7
common_dir=`cd $(top_srcdir)/doc/common && pwd` ;\
9
common_dir=$(kde_libs_htmldir)/en/common ;\
11
$(LN_S) $$common_dir $(top_builddir)/apidocs/common; \
13
cp $(top_srcdir)/admin/Doxyfile.global Doxyfile; \
14
echo "PROJECT_NAME = \"$(subdir) Library\"" >> Doxyfile; \
15
echo "PROJECT_NUMBER = \"Version $(VERSION)\"" >> Doxyfile; \
16
echo "INPUT = $(srcdir)" >> Doxyfile; \
17
echo "IMAGE_PATH = $(top_srcdir)/doc/api" >> Doxyfile ;\
18
echo "OUTPUT_DIRECTORY = $(top_builddir)/apidocs" >> Doxyfile; \
19
echo "HTML_OUTPUT = $(subdir)/html" >> Doxyfile; \
20
echo "LATEX_OUTPUT = $(subdir)/latex" >> Doxyfile; \
21
echo "RTF_OUTPUT = $(subdir)/rtf" >> Doxyfile; \
22
echo "MAN_OUTPUT = $(subdir)/man" >> Doxyfile; \
23
echo "GENERATE_HTML = $(GENERATE_FLAG)" >> Doxyfile ;\
24
echo "GENERATE_MAN = $(GENERATE_FLAG)" >> Doxyfile ;\
25
echo "GENERATE_LATEX = $(GENERATE_FLAG)" >> Doxyfile ;\
26
if test -n "$(DOXYGEN_EXCLUDE)"; then \
27
echo "EXCLUDE_PATTERNS += $(DOXYGEN_EXCLUDE)" >> Doxyfile; \
29
echo "TAGFILES = \\" >> Doxyfile; \
30
tags='$(DOXYGEN_REFERENCES) qt'; for tag in $$tags; do \
33
if test -f $(top_builddir)/apidocs/$$tag/$$tag.tag; then \
34
tagpath="$(top_builddir)/apidocs/$$tag/$$tag.tag" ;\
36
tagpath=`ls -1 $(kde_htmldir)/en/*-apidocs/$$tag/$$tag.tag 2> /dev/null` ;\
37
if test -n "$$tagpath"; then \
38
path=`echo $$tagpath | sed -e "s,.*/\([^/]*-apidocs\)/$$tag/$$tag.tag,../../../\1/$$tag,"` ;\
41
if test "$$tag" = qt; then \
42
echo $$tagpath=$(QTDOCDIR) >> Doxyfile ;\
43
else if test -n "$$tagpath"; then \
44
echo "$$tagpath=$$path/html \\" >> Doxyfile ;\
48
echo "GENERATE_TAGFILE = $(top_builddir)/apidocs/$(subdir)/$(subdir).tag" >> Doxyfile ;\
49
echo "IGNORE_PREFIX = K" >> Doxyfile ;\
50
echo "HAVE_DOT = $(KDE_HAVE_DOT)" >> Doxyfile ;\
51
$(DOXYGEN) Doxyfile ;\
56
install-data-local: install-apidox
58
## install API documentation
60
@if test "$(subdir)" != "."; then \
61
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html ; \
62
if test -f $(top_builddir)/apidocs/$(subdir)/$(subdir).tag; then \
63
echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
64
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
66
if test -d $(top_builddir)/apidocs/$(subdir)/html; then \
67
list=`ls $(top_builddir)/apidocs/$(subdir)/html`; \
68
for file in $$list; do \
69
echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
70
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
73
rm -f $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/common; \
74
$(LN_S) $(kde_libs_htmldir)/en/common $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/common; \
76
if test -d $(top_builddir)/apidocs; then \
77
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
78
list=`cd $(top_builddir)/apidocs && ls -1`; \
79
for file in $$list; do \
80
if test -f $(top_builddir)/apidocs/$$file; then \
81
echo $(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
82
$(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
87
uninstall-local: uninstall-apidox
89
## uninstall API documentation
91
@if test "$(subdir)" != "."; then \
92
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
93
rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
96
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
97
rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
102
@if test "$(subdir)" != "."; then \
103
$(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
105
$(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
107
@set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
109
for subdir in $$list; do \
110
if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am; then \
111
echo "Making apidox in $$subdir"; \
112
if test "$$subdir" != "."; then \
113
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no apidox) || exit 1; \
116
for subdir in $$list; do \
117
if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am; then \
118
echo "Making apidox in $$subdir"; \
119
if test "$$subdir" != "."; then \
120
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=yes apidox) || exit 1; \
125
apidox-am-toplevel-no:
126
apidox-am-toplevel-yes:
127
@echo "*** Creating API documentation main page"; \
128
cp $(top_srcdir)/admin/Doxyfile.global Doxyfile; \
129
echo "PROJECT_NAME = $(DOXYGEN_PROJECT_NAME)" >> Doxyfile ; \
130
echo "PROJECT_NUMBER = $(DOXYGEN_PROJECT_NUMBER)" >> Doxyfile ; \
131
echo "INPUT = $(top_srcdir)" >> Doxyfile ; \
132
echo "OUTPUT_DIRECTORY = $(top_builddir)/apidocs" >> Doxyfile ; \
133
echo "FILE_PATTERNS = *.dox" >> Doxyfile ; \
134
echo "RECURSIVE = NO" >> Doxyfile ; \
135
echo "SOURCE_BROWSER = NO" >> Doxyfile ; \
136
echo "ALPHABETICAL_INDEX = NO" >> Doxyfile ; \
137
echo "HTML_OUTPUT = ." >> Doxyfile ; \
138
echo "HTML_HEADER = apidocs/common/mainheader.html" >> Doxyfile ; \
139
echo "HTML_FOOTER = apidocs/common/mainfooter.html" >> Doxyfile ; \
140
echo "HTML_STYLESHEET = apidocs/common/doxygen.css" >> Doxyfile ; \
141
echo "GENERATE_LATEX = NO" >> Doxyfile ; \
142
echo "GENERATE_RTF = NO" >> Doxyfile ; \
143
echo "GENERATE_MAN = NO" >> Doxyfile ; \
144
echo "GENERATE_XML = NO" >> Doxyfile ; \
145
echo "GENERATE_AUTOGEN_DEF = NO" >> Doxyfile ; \
146
echo "ENABLE_PREPROCESSING = NO" >> Doxyfile ; \
147
echo "CLASS_DIAGRAMS = NO" >> Doxyfile ; \
148
echo "HAVE_DOT = NO" >> Doxyfile ; \
149
echo "GENERATE_HTML = YES" >> Doxyfile ;\
150
$(mkinstalldirs) $(top_builddir)/apidocs ; \
151
rm -f $(top_builddir)/apidocs/common ; \
152
if test -d $(top_srcdir)/doc/common; then \
153
common_dir=`cd $(top_srcdir)/doc/common && pwd` ;\
155
common_dir=$(kde_libs_htmldir)/en/common ;\
157
$(LN_S) $$common_dir $(top_builddir)/apidocs/common ;\