~ubuntu-branches/ubuntu/karmic/guarddog/karmic

« back to all changes in this revision

Viewing changes to admin/Doxyfile.am

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals (RainCT)
  • Date: 2007-11-06 23:43:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106234311-eeiuy01hc66d34df
Tags: 2.6.0-1ubuntu1
* Merge from debian unstable, remaining changes:
   - Bump standards version to 3.7.2 (no changes)
   - Bump debhelper build dependency to version >>5
   - Fix kde/guarddog.desktop and add some translations
   - debian/rules: move .desktop file to /usr/share/applications;
     debian/dirs: add usr/share/applications
   - Use dh_icons (previous Ubuntu revision used dh_iconcache).
   - Modify Maintainer value to match the DebianMaintainerField
     specification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## generate API documentation with doxygen
2
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 "HTML_HEADER            = $(top_builddir)/apidocs/common/header.html" >> Doxyfile;\
21
 
                echo "HTML_FOOTER            = $(top_builddir)/apidocs/common/footer.html" >> Doxyfile;\
22
 
                echo "HTML_STYLESHEET        = $(top_builddir)/apidocs/common/doxygen.css" >> Doxyfile;\
23
 
                echo "LATEX_OUTPUT           = $(subdir)/latex" >> Doxyfile; \
24
 
                echo "RTF_OUTPUT             = $(subdir)/rtf" >> Doxyfile; \
25
 
                echo "MAN_OUTPUT             = $(subdir)/man" >> Doxyfile; \
26
 
                echo "GENERATE_HTML          = $(GENERATE_FLAG)" >> Doxyfile ;\
27
 
                echo "GENERATE_MAN          = $(GENERATE_FLAG)" >> Doxyfile ;\
28
 
                echo "GENERATE_LATEX          = $(GENERATE_FLAG)" >> Doxyfile ;\
29
 
                if test -n "$(DOXYGEN_EXCLUDE)"; then \
30
 
                        patterns= ;\
31
 
                        dirs= ;\
32
 
                        for item in `echo "$(DOXYGEN_EXCLUDE)"`; do \
33
 
                                if test -d "$(srcdir)/$$item"; then \
34
 
                                        dirs="$$dirs $(srcdir)/$$item/" ;\
35
 
                                else \
36
 
                                        patterns="$$patterns $$item" ;\
37
 
                                fi ;\
38
 
                        done ;\
39
 
                        echo "EXCLUDE_PATTERNS      += $$patterns" >> Doxyfile; \
40
 
                        echo "EXCLUDE               += $$dirs" >> Doxyfile ;\
41
 
                fi ;\
42
 
                echo "TAGFILES = \\" >> Doxyfile; \
43
 
                tags='$(DOXYGEN_REFERENCES) qt'; for tag in $$tags; do \
44
 
                        tagpath= ;\
45
 
                        path="../../$$tag" ;\
46
 
                        if test -f $(top_builddir)/apidocs/$$tag/$$tag.tag; then \
47
 
                                tagpath="$(top_builddir)/apidocs/$$tag/$$tag.tag" ;\
48
 
                        else \
49
 
                                tagpath=`ls -1 $(kde_htmldir)/en/*-apidocs/$$tag/$$tag.tag 2> /dev/null` ;\
50
 
                                if test -n "$$tagpath"; then \
51
 
                                        path=`echo $$tagpath | sed -e "s,.*/\([^/]*-apidocs\)/$$tag/$$tag.tag,../../../\1/$$tag,"` ;\
52
 
                                fi ;\
53
 
                        fi ;\
54
 
                        if test "$$tag" = qt; then \
55
 
                                echo $$tagpath=$(QTDOCDIR) >> Doxyfile ;\
56
 
                        else if test -n "$$tagpath"; then \
57
 
                                echo "$$tagpath=$$path/html \\" >> Doxyfile ;\
58
 
                            fi ;\
59
 
                        fi ;\
60
 
                done ;\
61
 
                echo "GENERATE_TAGFILE       = $(top_builddir)/apidocs/$(subdir)/`basename $(subdir)`.tag" >> Doxyfile ;\
62
 
                echo "IGNORE_PREFIX          = K" >> Doxyfile ;\
63
 
                echo "HAVE_DOT = $(KDE_HAVE_DOT)" >> Doxyfile ;\
64
 
                $(DOXYGEN) Doxyfile ;\
65
 
        fi
66
 
 
 
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)
 
14
 
 
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
 
23
 
 
24
## Don't generate API documentation without doxygen
67
25
apidox-am-no:
68
26
 
 
27
apidox-am-toplevel-no:
 
28
 
 
29
 
 
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
 
36
 
 
37
 
 
38
 
69
39
install-data-local: install-apidox
70
40
 
71
41
## install API documentation
83
53
                                $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
84
54
                done; \
85
55
                fi; \
86
 
                symlink="$(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/common"; \
87
 
                if test ! -L "$symlink" -o `readlink "$symlink" 2>/dev/null` != "$(kde_libs_htmldir)/en/common"; then \
88
 
                        echo "Creating symlink $(kde_htmldir)/en/$(PACKAGE)-apidocs/common"; \
89
 
                        rm -f $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/common; \
90
 
                        $(LN_S) $(kde_libs_htmldir)/en/common $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/common; \
91
 
                fi; \
92
56
        else\
93
57
                if test -d $(top_builddir)/apidocs; then \
94
58
                $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
95
59
                list=`cd $(top_builddir)/apidocs && ls -1`; \
96
60
                echo "installing $(top_builddir)/apidocs/$$file" ;\
 
61
                echo "target directory $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs" ; \
97
62
                for file in $$list; do \
98
63
                        if test -f $(top_builddir)/apidocs/$$file; then \
99
64
                                $(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
108
73
        @if test "$(subdir)" != "."; then \
109
74
                if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
110
75
                        rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
111
 
                fi\
112
 
        else\
 
76
                fi \
 
77
        else \
113
78
                if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
114
79
                        rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
115
 
                fi\
 
80
                fi \
116
81
        fi
117
82
 
118
 
apidox:
119
 
        @if test "$(subdir)" != "."; then \
120
 
                $(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
121
 
        else \
122
 
                $(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
123
 
        fi
 
83
install-apidox-recurse: install-apidox
124
84
        @set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
125
85
            list='$(SUBDIRS)'; \
126
86
            for subdir in $$list; do \
127
 
                if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am; then \
128
 
                echo "Making apidox in $$subdir"; \
129
 
                if test "$$subdir" != "."; then \
130
 
                        (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no apidox) || exit 1; \
131
 
                fi ; fi ;\
132
 
            done; \
133
 
            for subdir in $$list; do \
134
 
                if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am; then \
135
 
                echo "Making apidox in $$subdir"; \
136
 
                if test "$$subdir" != "."; then \
137
 
                        (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=yes apidox) || exit 1; \
 
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; \
138
91
                fi ; fi ;\
139
92
            done; \
140
93
        fi
141
94
 
142
 
apidox-am-toplevel-no:
143
 
apidox-am-toplevel-yes:
144
 
        @echo "*** Creating API documentation main page"; \
145
 
        cp $(top_srcdir)/admin/Doxyfile.global Doxyfile; \
146
 
        echo "PROJECT_NAME           = \"$(DOXYGEN_PROJECT_NAME)\"" >> Doxyfile ; \
147
 
        echo "PROJECT_NUMBER         = \"$(DOXYGEN_PROJECT_NUMBER)\"" >> Doxyfile ; \
148
 
        echo "INPUT                  = $(top_srcdir)" >> Doxyfile ; \
149
 
        echo "OUTPUT_DIRECTORY       = $(top_builddir)/apidocs" >> Doxyfile ; \
150
 
        echo "FILE_PATTERNS          = *.dox" >> Doxyfile ; \
151
 
        echo "RECURSIVE              = NO" >> Doxyfile ; \
152
 
        echo "SOURCE_BROWSER         = NO" >> Doxyfile ; \
153
 
        echo "ALPHABETICAL_INDEX     = NO" >> Doxyfile ; \
154
 
        echo "HTML_OUTPUT            = ." >> Doxyfile ; \
155
 
        echo "HTML_HEADER            = apidocs/common/mainheader.html" >> Doxyfile ; \
156
 
        echo "HTML_FOOTER            = apidocs/common/mainfooter.html" >> Doxyfile ; \
157
 
        echo "HTML_STYLESHEET        = apidocs/common/doxygen.css" >> Doxyfile ; \
158
 
        echo "GENERATE_LATEX         = NO" >> Doxyfile ; \
159
 
        echo "GENERATE_RTF           = NO" >> Doxyfile ; \
160
 
        echo "GENERATE_MAN           = NO" >> Doxyfile ; \
161
 
        echo "GENERATE_XML           = NO" >> Doxyfile ; \
162
 
        echo "GENERATE_AUTOGEN_DEF   = NO" >> Doxyfile ; \
163
 
        echo "ENABLE_PREPROCESSING   = NO" >> Doxyfile ; \
164
 
        echo "CLASS_DIAGRAMS         = NO" >> Doxyfile ; \
165
 
        echo "HAVE_DOT               = NO" >> Doxyfile ; \
166
 
        echo "GENERATE_HTML          = YES" >> Doxyfile ;\
167
 
        $(mkinstalldirs) $(top_builddir)/apidocs ; \
168
 
        rm -f $(top_builddir)/apidocs/common ; \
169
 
        if test -d $(top_srcdir)/doc/common; then \
170
 
           common_dir=`cd $(top_srcdir)/doc/common && pwd` ;\
171
 
        else \
172
 
           common_dir=$(kde_libs_htmldir)/en/common ;\
173
 
        fi ;\
174
 
        $(LN_S) $$common_dir $(top_builddir)/apidocs/common ;\
175
 
        doxygen Doxyfile; \
176
 
        rm -f Doxyfile
 
95
 
177
96
 
178
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
179
98