~ubuntu-branches/ubuntu/vivid/xfce4-panel/vivid

« back to all changes in this revision

Viewing changes to gtk-doc.make

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-06-23 08:06:22 UTC
  • mfrom: (1.1.38) (4.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20140623080622-o41oksze07m5wobg
Tags: 4.11.1-0ubuntu1
* New upstream release
* Merge from Debian unstable, remaining changes:
  - debian/patches:
    + xubuntu_migrate-tasklist-separator.patch: added, try to be smart and
      work around the non-expandable tasklist plugin from 4.10 by setting
      as expandable the separator next to it (should work with the default
      panel layouts from Xubuntu, Mythbuntu and UbuntuStudio).
  - Use dh-autoreconf to update libtool for ppc64el.
  - debian/xfce4-panel.install: include both (gtk2 and gtk3) wrappers.
  - debian/rules: pass --enable-gtk3 to configure script.
  - debian/control: add b-dep on libgtk-3-dev.
  - debian/xfce4-panel.shlibs: updated for the gtk3 library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        $(DOC_MODULE)-undeclared.txt \
50
50
        $(DOC_MODULE)-unused.txt
51
51
 
52
 
CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
53
 
 
54
 
if ENABLE_GTK_DOC
 
52
gtkdoc-check.test: Makefile
 
53
        $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
 
54
                echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \
 
55
                chmod +x $@
 
56
 
 
57
CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test
 
58
 
55
59
if GTK_DOC_BUILD_HTML
56
60
HTML_BUILD_STAMP=html-build.stamp
57
61
else
63
67
PDF_BUILD_STAMP=
64
68
endif
65
69
 
66
 
all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
67
 
else
68
 
all-local:
 
70
all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
 
71
.PHONY: all-gtk-doc
 
72
 
 
73
if ENABLE_GTK_DOC
 
74
all-local: all-gtk-doc
69
75
endif
70
76
 
71
77
docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
83
89
            files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
84
90
            if test "x$$files" != "x" ; then \
85
91
                for file in $$files ; do \
 
92
                    destdir=`dirname $(abs_builddir)/$$file` ;\
 
93
                    test -d "$$destdir" || mkdir -p "$$destdir"; \
86
94
                    test -f $(abs_srcdir)/$$file && \
87
 
                        cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
 
95
                        cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
88
96
                done; \
89
97
            fi; \
90
98
            test -d $(abs_srcdir)/tmpl && \
91
 
                { cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \
 
99
                { cp -pR $(abs_srcdir)/tmpl $(abs_builddir)/; \
92
100
                chmod -R u+w $(abs_builddir)/tmpl; } \
93
101
        fi
94
102
        $(AM_V_at)touch setup-build.stamp
103
111
GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_$(AM_DEFAULT_VERBOSITY))
104
112
GTK_DOC_V_INTROSPECT_0=@echo "  DOC   Introspecting gobjects";
105
113
 
106
 
scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
 
114
scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
107
115
        $(GTK_DOC_V_SCAN)_source_dir='' ; \
108
116
        for i in $(DOC_SOURCE_DIR) ; do \
109
117
            _source_dir="$${_source_dir} --source-dir=$$i" ; \
139
147
        $(GTK_DOC_V_TMPL)gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
140
148
        $(AM_V_at)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
141
149
          if test -w $(abs_srcdir) ; then \
142
 
            cp -rp $(abs_builddir)/tmpl $(abs_srcdir)/; \
 
150
            cp -pR $(abs_builddir)/tmpl $(abs_srcdir)/; \
143
151
          fi \
144
152
        fi
145
153
        $(AM_V_at)touch tmpl-build.stamp
157
165
GTK_DOC_V_XML_0=@echo "  DOC   Building XML";
158
166
 
159
167
sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
160
 
        $(GTK_DOC_V_XML)-chmod -R u+w $(srcdir) && _source_dir='' ; \
 
168
        -$(GTK_DOC_V_XML)chmod -R u+w $(srcdir) && _source_dir='' ; \
161
169
        for i in $(DOC_SOURCE_DIR) ; do \
162
170
            _source_dir="$${_source_dir} --source-dir=$$i" ; \
163
171
        done ; \
235
243
clean-local:
236
244
        @rm -f *~ *.bak
237
245
        @rm -rf .libs
 
246
        @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
 
247
          rm -f $(DOC_MODULE).types; \
 
248
        fi
238
249
 
239
250
distclean-local:
240
251
        @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
280
291
#
281
292
# Require gtk-doc when making dist
282
293
#
283
 
if ENABLE_GTK_DOC
 
294
if HAVE_GTK_DOC
284
295
dist-check-gtkdoc: docs
285
296
else
286
297
dist-check-gtkdoc:
287
 
        @echo "*** gtk-doc must be installed and enabled in order to make dist"
 
298
        @echo "*** gtk-doc is needed to run 'make dist'.         ***"
 
299
        @echo "*** gtk-doc was not found when 'configure' ran.   ***"
 
300
        @echo "*** please install gtk-doc and rerun 'configure'. ***"
288
301
        @false
289
302
endif
290
303
 
291
 
dist-hook: dist-check-gtkdoc dist-hook-local
 
304
dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local
292
305
        @mkdir $(distdir)/tmpl
293
306
        @mkdir $(distdir)/html
294
307
        @-cp ./tmpl/*.sgml $(distdir)/tmpl