~ubuntu-branches/ubuntu/saucy/libgphoto2/saucy-proposed

« back to all changes in this revision

Viewing changes to doc/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-07-31 07:00:09 UTC
  • mfrom: (1.4.4)
  • Revision ID: package-import@ubuntu.com-20130731070009-enrbvg3hry64cxl1
Tags: 2.5.2-0ubuntu1
* New upstream release.
* Drop 01-increase_max_entries.patch, 02-libusbx_no_debug.patch,
  03-libusbx-fixes.patch: fixed upstream.
* Add libxml2-dev build dependency for new optional features.
* ABI changes: libgphoto2-2 → libgphoto2-6,
  libgphoto2-port0 → libgphoto2-port10
* debian/libgphoto2-dev-doc.install: Adjust to changed HTML API doc folder
  name.
* debian/libgphoto2-port10.install: Adjust for changed libgphoto-port ABI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
if HAVE_DOXYGEN
18
18
 
19
 
DOXYGEN_FILES =
20
 
DOXYGEN_STAMPS = $(DOXYGEN_OUTPUT_DIR).stamp
 
19
DOXYGEN_STAMPS =
 
20
LOCAL_INSTALL =
 
21
LOCAL_UNINSTALL =
 
22
LOCAL_CLEAN =
 
23
 
21
24
 
22
25
# FIXME: Depend on source files.
23
 
$(DOXYGEN_OUTPUT_DIR).stamp: Doxyfile
 
26
DOXYGEN_STAMPS += $(HTML_APIDOC_DIR).stamp
 
27
$(HTML_APIDOC_DIR).stamp: Doxyfile
24
28
        doxygen Doxyfile
25
29
        echo > $@
26
30
 
27
 
$(HTML_APIDOC_DIR).tar.gz: $(DOXYGEN_OUTPUT_DIR).stamp
 
31
$(HTML_APIDOC_DIR).tar.gz: $(HTML_APIDOC_DIR).stamp
28
32
        (cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_DIR) | GZIP=--best gzip -c) > $@
29
33
 
30
 
DOC_APIDOC_HTML = apidocs.html
31
 
 
32
 
install-apidocs: $(DOXYGEN_OUTPUT_DIR).stamp
33
 
        $(INSTALL) -m 0755 -d $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)
34
 
        $(INSTALL) -m 0644 $(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)/* $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)/
35
 
 
 
34
$(HTML_APIDOC_INTERNALS_DIR).tar.gz: $(HTML_APIDOC_INTERNALS_DIR).stamp
 
35
        (cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_INTERNALS_DIR) | GZIP=--best gzip -c) > $@
 
36
 
 
37
LOCAL_INSTALL += install-apidocs
 
38
install-apidocs: $(HTML_APIDOC_DIR).stamp
 
39
        mkdir -p "$(DESTDIR)$(docdir)"
 
40
        find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)" \
 
41
                \( -type d -exec chmod 0755 {} \; \) -or \
 
42
                \( -type f -exec chmod 0644 {} \; \)
 
43
        (unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_DIR)") \
 
44
                | (cd "$(DESTDIR)$(docdir)" && tar xpf -)
 
45
 
 
46
LOCAL_UNINSTALL += uninstall-apidocs
36
47
uninstall-apidocs:
37
 
        cd "$(DESTDIR)$(docdir)" && rm -f $(DOC_APIDOC_HTML)/*
38
 
        rmdir $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML)
 
48
        rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_DIR)"
39
49
 
 
50
LOCAL_CLEAN += clean-apidocs
40
51
clean-apidocs:
41
 
        rm -rf $(DOXYGEN_OUTPUT_DIR)
42
 
        rm -f $(DOXYGEN_OUTPUT_DIR).stamp
 
52
        rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_DIR)"
 
53
        rm -f $(HTML_APIDOC_DIR).stamp
43
54
        rm -f $(HTML_APIDOC_DIR).tar.gz
44
55
 
45
 
 
46
 
# if we ever have more targets, move those out...
 
56
if ENABLE_INTERNAL_DOCS
 
57
 
 
58
DOXYGEN_STAMPS += $(HTML_APIDOC_INTERNALS_DIR).stamp
 
59
# FIXME: Depend on source files.
 
60
$(HTML_APIDOC_INTERNALS_DIR).stamp: Doxyfile-internals
 
61
        doxygen Doxyfile-internals
 
62
        echo > $@
 
63
 
 
64
LOCAL_INSTALL += install-apidocs-internals
 
65
install-apidocs-internals: $(HTML_APIDOC_INTERNALS_DIR).stamp
 
66
        mkdir -p "$(DESTDIR)$(docdir)"
 
67
        find "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)" \
 
68
                \( -type d -exec chmod 0755 {} \; \) -or \
 
69
                \( -type f -exec chmod 0644 {} \; \)
 
70
        (unset CDPATH; cd "$(DOXYGEN_OUTPUT_DIR)" && tar cpf - "$(HTML_APIDOC_INTERNALS_DIR)") \
 
71
                | (cd "$(DESTDIR)$(docdir)" && tar xpf -)
 
72
 
 
73
LOCAL_UNINSTALL += uninstall-apidocs-internals
 
74
uninstall-apidocs-internals:
 
75
        rm -rf "$(DESTDIR)$(docdir)/$(HTML_APIDOC_INTERNALS_DIR)"
 
76
 
 
77
LOCAL_CLEAN += clean-apidocs-internals
 
78
clean-apidocs-internals:
 
79
        rm -rf "$(DOXYGEN_OUTPUT_DIR)/$(HTML_APIDOC_INTERNALS_DIR)"
 
80
        rm -f $(HTML_APIDOC_INTERNALS_DIR).stamp
 
81
        rm -f $(HTML_APIDOC_INTERNALS_DIR).tar.gz
 
82
 
 
83
endif
47
84
 
48
85
all-local: $(DOXYGEN_STAMPS)
49
86
 
50
 
install-data-local: install-apidocs
51
 
 
52
 
uninstall-local: uninstall-apidocs
53
 
 
54
 
clean-local: clean-apidocs
55
 
 
56
 
doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz 
57
 
 
58
 
doc_DATA = $(DOXYGEN_FILES) README.apidocs
59
 
 
60
 
CLEANFILES = $(DOXYGEN_FILES) $(DOXYGEN_STAMPS)
 
87
install-data-local: $(LOCAL_INSTALL)
 
88
 
 
89
uninstall-local: $(LOCAL_UNINSTALL)
 
90
 
 
91
clean-local: $(LOCAL_CLEAN)
 
92
        rm -rf $(DOXYGEN_OUTPUT_DIR)
 
93
 
 
94
doc_EXTRA_DIST = $(HTML_APIDOC_DIR).tar.gz
 
95
 
 
96
doc_DATA = README.apidocs
 
97
 
 
98
CLEANFILES = $(DOXYGEN_STAMPS)
61
99
 
62
100
endif
63
101