~ubuntu-branches/debian/stretch/cheese/stretch

« back to all changes in this revision

Viewing changes to gtk-doc.make

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-04-02 21:39:33 UTC
  • mfrom: (1.5.1) (15.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20140402213933-r0w3gna0pv7q7085
Tags: 3.12.0-1
* New upstream release.
* Revert changes done in 3.10.1-3
  - i.e. lower gnome-desktop build-dependency again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test
58
58
 
59
 
if ENABLE_GTK_DOC
60
59
if GTK_DOC_BUILD_HTML
61
60
HTML_BUILD_STAMP=html-build.stamp
62
61
else
68
67
PDF_BUILD_STAMP=
69
68
endif
70
69
 
71
 
all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
72
 
else
73
 
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
74
75
endif
75
76
 
76
77
docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
88
89
            files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
89
90
            if test "x$$files" != "x" ; then \
90
91
                for file in $$files ; do \
 
92
                    destdir=`dirname $(abs_builddir)/$$file`; \
 
93
                    test -d "$$destdir" || mkdir -p "$$destdir"; \
91
94
                    test -f $(abs_srcdir)/$$file && \
92
 
                        cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
 
95
                        cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
93
96
                done; \
94
97
            fi; \
95
98
        fi
106
109
GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_$(AM_DEFAULT_VERBOSITY))
107
110
GTK_DOC_V_INTROSPECT_0=@echo "  DOC   Introspecting gobjects";
108
111
 
109
 
scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
 
112
scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
110
113
        $(GTK_DOC_V_SCAN)_source_dir='' ; \
111
114
        for i in $(DOC_SOURCE_DIR) ; do \
112
115
            _source_dir="$${_source_dir} --source-dir=$$i" ; \
217
220
clean-local:
218
221
        @rm -f *~ *.bak
219
222
        @rm -rf .libs
 
223
        @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
 
224
          rm -f $(DOC_MODULE).types; \
 
225
        fi
220
226
 
221
227
distclean-local:
222
228
        @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
261
267
#
262
268
# Require gtk-doc when making dist
263
269
#
264
 
if ENABLE_GTK_DOC
 
270
if HAVE_GTK_DOC
265
271
dist-check-gtkdoc: docs
266
272
else
267
273
dist-check-gtkdoc:
268
 
        @echo "*** gtk-doc must be installed and enabled in order to make dist"
 
274
        @echo "*** gtk-doc is needed to run 'make dist'.         ***"
 
275
        @echo "*** gtk-doc was not found when 'configure' ran.   ***"
 
276
        @echo "*** please install gtk-doc and rerun 'configure'. ***"
269
277
        @false
270
278
endif
271
279
 
272
 
dist-hook: dist-check-gtkdoc dist-hook-local
 
280
dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local
273
281
        @mkdir $(distdir)/html
274
282
        @cp ./html/* $(distdir)/html
275
283
        @-cp ./$(DOC_MODULE).pdf $(distdir)/