1
## generate API documentation with doxygen
3
@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$DOXDATA" ; then \
4
export DOXDATA=$(kde_libs_htmldir)/en/common ; \
6
abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
7
test -d $(top_builddir)/apidocs || \
8
( cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
9
--no-modulename --installdir=$(kde_libs_htmldir)/en \
10
--no-recurse $(abs_top_srcdir) . ) ; \
11
cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
12
--recurse --no-modulename --installdir=$(kde_libs_htmldir)/en \
13
$$abs_top_srcdir $(subdir)
15
apidox-am-toplevel-yes:
16
@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$ADMIN" ; then \
17
export DOXDATA=$(kde_libs_htmldir)/en/common ; \
19
abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
20
cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
21
--no-modulename --installdir=$(kde_libs_htmldir)/en \
24
## Don't generate API documentation without doxygen
27
apidox-am-toplevel-no:
31
@if test "$(subdir)" != "."; then \
32
$(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
34
$(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
39
install-data-local: install-apidox
41
## install API documentation
43
@if test "$(subdir)" != "."; then \
44
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html ; \
45
if test -f $(top_builddir)/apidocs/$(subdir)/$(subdir).tag; then \
46
echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
47
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
49
if test -d $(top_builddir)/apidocs/$(subdir)/html; then \
50
list=`ls $(top_builddir)/apidocs/$(subdir)/html`; \
51
echo "installing $(top_builddir)/apidocs/$(subdir)/html" ;\
52
for file in $$list; do \
53
$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
57
if test -d $(top_builddir)/apidocs; then \
58
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
59
list=`cd $(top_builddir)/apidocs && ls -1`; \
60
echo "installing $(top_builddir)/apidocs/$$file" ;\
61
echo "target directory $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs" ; \
62
for file in $$list; do \
63
if test -f $(top_builddir)/apidocs/$$file; then \
64
$(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
69
uninstall-local: uninstall-apidox
71
## uninstall API documentation
73
@if test "$(subdir)" != "."; then \
74
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
75
rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
78
if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
79
rm -rf $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
83
install-apidox-recurse: install-apidox
84
@set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
86
for subdir in $$list; do \
87
if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am > /dev/null ; then \
88
echo "Installing apidox from $$subdir"; \
89
if test "$$subdir" != "."; then \
90
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no install-apidox-recurse) || exit 1; \
97
.PHONY: apidox-am-yes apidox-am-no install-data-local install-apidox install-apidox uninstall-local uninstall-apidox uninstall-apidox apidox apidox-am-toplevel-no apidox-am-toplevel-yes