blob: b04486b3ad8d56c9917990ee87e296a199742379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
SUBDIRS = api figures
# distribute manual Portable Document Format (PDF) if possible
# manual_pdf = gphoto2.pdf
manual_pdf =
# distribute manual in PostScript (PS) format if possible
# manual_ps = gphoto2.ps
manual_ps =
# build HTML manual if possible
manual_html = manual
# manual_html =
EXTRA_DIST = DAEMON build_OS2.txt \
camlib_devel.lyx \
camlib_devel-portmon.eps camlib_devel-repeater.eps \
camlib_devel.sgml camlib_devel.txt camlib_devel-y.eps \
frontend_devel.lyx frontend_devel.sgml frontend_devel.txt \
gphoto2-cli.txt gphoto2.txt \
gphoto2.xml $(man_MANS) $(manual_pdf) $(manual_ps) \
FAQ
man_MANS = gphoto2.1 gphoto2.3 gphoto2_port.3
docdir = @DOC_DIR@
doc_DATA = gphoto2-cli.txt gphoto2.txt FAQ
########################################################################
# The following rules are for regenerating man pages, pdf, html and ps
# docs from gphoto2.xml. This is only done when xmlto is found, which
# can be obtained from <URL:http://cyberelk.net/tim/xmlto/>.
#
# We should not forget the alternative dummy targets, as otherwise
# the build process will barf when xmlto is not present.
########################################################################
########################################################################
if XMLTOPDF
gphoto2.pdf: gphoto2.xml
xmlto pdf $<
endif
########################################################################
########################################################################
if XMLTOPS
gphoto2.ps: gphoto2.xml
xmlto ps $<
endif
########################################################################
########################################################################
if XMLTOMAN
$(man_MANS): gphoto2.xml
xmlto man $<
endif
########################################################################
.PHONY: clean-local-manual
.PHONY: install-data-local-manual
.PHONY: dist-hook-manual
########################################################################
if XMLTOHTML
# do not empty this variable
manual_dir=manual
htmldir=@HTML_DIR@
TARGET_DIR=$(htmldir)/$(manual_dir)
manual: gphoto2.xml
xmlto html -o "$@" "$<"
touch "$@"
clean_local_manual = clean-local-manual
clean-local-manual:
rm -rf "$(manual_dir)/"
install_data_local_manual = install-data-local-manual
install-data-local-manual:
$(INSTALL) -d -m 0755 $(DESTDIR)$(TARGET_DIR)
$(INSTALL_DATA) ./$(manual_dir)/*.html $(DESTDIR)$(TARGET_DIR)
dist_hook_manual = dist-hook-manual
dist-hook-manual:
(cd $(srcdir) ; tar cvf - $(manual_dir)) | (cd $(distdir); tar xf -)
endif
########################################################################
########################################################################
clean-local: $(clean_local_manual)
@echo "Dummy $@ target"
install-data-local: $(install_data_local_manual)
@echo "Dummy $@ target"
dist-hook: $(dist_hook_manual)
@echo "Dummy $@ target"
all-local: $(man_MANS) $(manual_pdf) $(manual_ps) $(manual_html)
@echo "Dummy $@ target"
|