~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to docs/reference/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-10 17:59:54 UTC
  • mfrom: (1.6.1 upstream) (27.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100510175954-bxvqq3xx0sy4itmp
Tags: 0.11.5-1
New upstream version with new API/ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
# Extra options to supply to gtkdoc-scan.
29
29
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
30
 
SCAN_OPTIONS=--deprecated-guards=TP_DISABLE_DEPRECATED
 
30
SCAN_OPTIONS=\
 
31
    --deprecated-guards=TP_DISABLE_DEPRECATED \
 
32
    --ignore-decorators=_TP_GNUC_DEPRECATED \
 
33
    --rebuild-types
31
34
 
32
35
# Extra options to supply to gtkdoc-mkdb.
33
36
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
60
63
# Header files to ignore when scanning.
61
64
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
62
65
IGNORE_HFILES=\
 
66
    add-dispatch-operation-context-internal.h \
 
67
    channel-dispatch-operation-internal.h \
63
68
    channel-internal.h \
64
69
    connection-internal.h \
65
70
    debug-internal.h \
66
71
    handle-repo-internal.h \
67
 
    proxy-internal.h
 
72
    observe-channels-context-internal.h \
 
73
    proxy-internal.h \
 
74
    proxy-introspectable.h
68
75
 
69
76
# Images to copy into HTML directory.
70
77
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
92
99
# This includes the standard gtk-doc make rules, copied by gtkdocize.
93
100
include $(top_srcdir)/gtk-doc.make
94
101
 
 
102
if ENABLE_GTK_DOC
 
103
check-local:
 
104
        @err=0; \
 
105
        if grep '^0 symbols incomplete' \
 
106
                $(srcdir)/telepathy-glib-undocumented.txt; then\
 
107
                :; \
 
108
        else \
 
109
                cat $(srcdir)/telepathy-glib-undocumented.txt; \
 
110
                err=1; \
 
111
        fi; \
 
112
        if grep '^0 not documented' \
 
113
                $(srcdir)/telepathy-glib-undocumented.txt; then\
 
114
                :; \
 
115
        else \
 
116
                cat $(srcdir)/telepathy-glib-undocumented.txt; \
 
117
                err=1; \
 
118
        fi; \
 
119
        if grep . $(srcdir)/telepathy-glib-unused.txt; then\
 
120
                echo "^^^ Unused symbols" >&2; \
 
121
                err=1; \
 
122
        fi; \
 
123
        if test -e $(srcdir)/telepathy-glib-undeclared.txt &&\
 
124
                grep . $(srcdir)/telepathy-glib-undeclared.txt; then\
 
125
                echo "^^^ Undeclared symbols" >&2; \
 
126
                err=1; \
 
127
        fi; \
 
128
        sed -n -e 's,<FILE>\(.*\)</FILE>,\1,p' $(srcdir)/telepathy-glib-sections.txt |\
 
129
        while read file; do \
 
130
                if grep -F "xml/$$file.xml" $(srcdir)/telepathy-glib-docs.sgml \
 
131
                        >/dev/null;\
 
132
                then \
 
133
                :; \
 
134
                else \
 
135
                        echo "$$file missing from telepathy-glib-docs.sgml"; \
 
136
                        err=1; \
 
137
                fi; \
 
138
        done; \
 
139
        case @ENABLE_DOC_CHECKS@/$$err in \
 
140
                (yes/1) \
 
141
                        echo "Documentation check failed" >&2; \
 
142
                        exit $$err; \
 
143
                        ;; \
 
144
                (*) \
 
145
                        exit 0; \
 
146
                        ;; \
 
147
        esac
 
148
endif