| 1 | ## generate API documentation with doxygen |
| 2 | apidox-am-yes: |
| 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` ;\ |
| 8 | else \ |
| 9 | common_dir=$(kde_libs_htmldir)/en/common ;\ |
| 10 | fi ;\ |
| 11 | $(LN_S) $$common_dir $(top_builddir)/apidocs/common; \ |
| 12 | fi ;\ |
| 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; \ |
| 28 | fi ;\ |
| 29 | echo "TAGFILES = \\" >> Doxyfile; \ |
| 30 | tags='$(DOXYGEN_REFERENCES) qt'; for tag in $$tags; do \ |
| 31 | tagpath= ;\ |
| 32 | path="../../$$tag" ;\ |
| 33 | if test -f $(top_builddir)/apidocs/$$tag/$$tag.tag; then \ |
| 34 | tagpath="$(top_builddir)/apidocs/$$tag/$$tag.tag" ;\ |
| 35 | else \ |
| 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,"` ;\ |
| 39 | fi ;\ |
| 40 | fi ;\ |
| 41 | if test "$$tag" = qt; then \ |
| 42 | echo $$tagpath=$(QTDOCDIR) >> Doxyfile ;\ |
| 43 | else if test -n "$$tagpath"; then \ |
| 44 | echo "$$tagpath=$$path/html \\" >> Doxyfile ;\ |
| 45 | fi ;\ |
| 46 | fi ;\ |
| 47 | done ;\ |
| 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 ;\ |
| 52 | fi |
| 53 | |
| 54 | apidox-am-no: |
| 55 | |
| 56 | install-data-local: install-apidox |
| 57 | |
| 58 | ## install API documentation |
| 59 | install-apidox: |
| 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); \ |
| 65 | fi; \ |
| 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; \ |
| 71 | done; \ |
| 72 | fi; \ |
| 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; \ |
| 75 | else\ |
| 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; \ |
| 83 | fi; \ |
| 84 | done ; fi; \ |
| 85 | fi |
| 86 | |
| 87 | uninstall-local: uninstall-apidox |
| 88 | |
| 89 | ## uninstall API documentation |
| 90 | uninstall-apidox: |
| 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); \ |
| 94 | fi\ |
| 95 | else\ |
| 96 | if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \ |
| 97 | rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \ |
| 98 | fi\ |
| 99 | fi |
| 100 | |
| 101 | apidox: |
| 102 | @if test "$(subdir)" != "."; then \ |
| 103 | $(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\ |
| 104 | else \ |
| 105 | $(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\ |
| 106 | fi |
| 107 | @set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \ |
| 108 | list='$(SUBDIRS)'; \ |
| 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; \ |
| 114 | fi ; fi ;\ |
| 115 | done; \ |
| 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; \ |
| 121 | fi ; fi ;\ |
| 122 | done; \ |
| 123 | fi |
| 124 | |
| 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` ;\ |
| 154 | else \ |
| 155 | common_dir=$(kde_libs_htmldir)/en/common ;\ |
| 156 | fi ;\ |
| 157 | $(LN_S) $$common_dir $(top_builddir)/apidocs/common ;\ |
| 158 | doxygen Doxyfile; \ |
| 159 | rm -f Doxyfile |
| 160 | |
| 161 | # Local Variables: |
| 162 | # mode: makefile |
| 163 | # End: |