Change configure.in.in to include git tree version
[kmk.git] / admin / Doxyfile.am
blob7ef5b5c13a2ff1257192ffbfbb99ae2f4ef3542d
1 ## generate API documentation with doxygen
2 apidox-am-yes:
3         @if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$DOXDATA" ; then \
4                 export DOXDATA=$(kde_libs_htmldir)/en/common ; \
5         fi ; \
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 ; \
18         fi ; \
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 \
22                 $$abs_top_srcdir
24 ## Don't generate API documentation without doxygen
25 apidox-am-no:
27 apidox-am-toplevel-no:
30 apidox:
31         @if test "$(subdir)" != "."; then \
32                 $(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
33         else \
34                 $(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
35         fi
39 install-data-local: install-apidox
41 ## install API documentation
42 install-apidox:
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); \
48                 fi; \
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; \
54                 done; \
55                 fi; \
56         else\
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; \
65                         fi; \
66                 done ; fi; \
67         fi
69 uninstall-local: uninstall-apidox
71 ## uninstall API documentation
72 uninstall-apidox:
73         @if test "$(subdir)" != "."; then \
74                 if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
75                         rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
76                 fi \
77         else \
78                 if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
79                         rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
80                 fi \
81         fi
83 install-apidox-recurse: install-apidox
84         @set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
85             list='$(SUBDIRS)'; \
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; \
91                 fi ; fi ;\
92             done; \
93         fi
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
100 # Local Variables:
101 # mode: makefile
102 # End: