Debian Codegraph @

subprojects/fontconfig/doc/Makefile.am

raw
1 # -*- encoding: utf-8 -*-
2 #
3 # fontconfig/doc/Makefile.am
4 #
5 # Copyright © 2003 Keith Packard
6 #
7 # Permission to use, copy, modify, distribute, and sell this software and its
8 # documentation for any purpose is hereby granted without fee, provided that
9 # the above copyright notice appear in all copies and that both that
10 # copyright notice and this permission notice appear in supporting
11 # documentation, and that the name of the author(s) not be used in
12 # advertising or publicity pertaining to distribution of the software without
13 # specific, written prior permission. The authors make no
14 # representations about the suitability of this software for any purpose. It
15 # is provided "as is" without express or implied warranty.
16 #
17 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 # PERFORMANCE OF THIS SOFTWARE.
24
25 NULL =
26 EXTRA_DIST = \
27 $(BUILT_DOCS) \
28 $(DOC_FUNCS_FNCS) \
29 $(SGML_FILES) \
30 $(check_SCRIPTS) \
31 confdir.sgml.in \
32 func.sgml \
33 $(NULL)
34 BUILT_SOURCES = \
35 $(DOC_FUNCS_SGML) \
36 $(NULL)
37
38 if USEDOCBOOK
39 maintainerdoccleanfiles = \
40 $(NULL)
41 cleandocfiles = \
42 $(BUILT_DOCS) \
43 $(NULL)
44 else
45 maintainerdoccleanfiles = \
46 $(BUILT_DOCS) \
47 $(NULL)
48 cleandocfiles = \
49 $(NULL)
50 endif
51 MAINTAINERCLEANFILES = \
52 $(DOC_FUNCS_SGML) \
53 $(maintainerdoccleanfiles) \
54 $(NULL)
55 CLEANFILES = \
56 $(cleandocfiles) \
57 $(LOCAL_SGML_FILES) \
58 confdir.sgml \
59 func.refs \
60 $(NULL)
61 SUFFIXES = \
62 .fncs \
63 .sgml \
64 .txt \
65 .html \
66 $(NULL)
67 TESTS = \
68 check-missing-doc \
69 check-whitespace-in-args \
70 $(NULL)
71 TESTS_ENVIRONMENT = \
72 top_srcdir=${top_srcdir}; export top_srcdir; \
73 $(NULL)
74 LOG_COMPILER = sh
75 #
76 DOC2HTML = docbook2html
77 DOC2TXT = docbook2txt
78 DOC2MAN = docbook2man
79 DOC2PDF = docbook2pdf
80
81 DOC_FUNCS_FNCS = \
82 fcatomic.fncs \
83 fcblanks.fncs \
84 fccache.fncs \
85 fccharset.fncs \
86 fcconfig.fncs \
87 fcconstant.fncs \
88 fcdircache.fncs \
89 fcfile.fncs \
90 fcfontset.fncs \
91 fcformat.fncs \
92 fcfreetype.fncs \
93 fcfontations.fncs \
94 fcinit.fncs \
95 fclangset.fncs \
96 fcmatrix.fncs \
97 fcobjectset.fncs \
98 fcobjecttype.fncs \
99 fcpattern.fncs \
100 fcrange.fncs \
101 fcstring.fncs \
102 fcstrset.fncs \
103 fcvalue.fncs \
104 fcweight.fncs \
105 $(NULL)
106 SGML_FILES = \
107 fontconfig-user.sgml \
108 fontconfig-devel.sgml \
109 $(NULL)
110 LOCAL_SGML_FILES = \
111 local-fontconfig-user.sgml \
112 local-fontconfig-devel.sgml \
113 $(NULL)
114
115 DOC_FUNCS_SGML = $(DOC_FUNCS_FNCS:.fncs=.sgml)
116 BUILT_DOCS = \
117 $(HTML_FILES) \
118 $(PDF_FILES) \
119 $(TXT_FILES) \
120 $(man3_MANS) \
121 $(man5_MANS) \
122 $(NULL)
123 DOCS_DEPS = \
124 $(DOC_FUNCS_SGML) \
125 cache-version.sgml \
126 confdir.sgml \
127 version.sgml \
128 $(NULL)
129
130 TXT_FILES = $(SGML_FILES:.sgml=.txt)
131 PDF_FILES = $(SGML_FILES:.sgml=.pdf)
132 HTML_FILES = \
133 fontconfig-user.html \
134 fontconfig-devel.html \
135 $(NULL)
136 #
137 noinst_PROGRAMS = \
138 $(NULL)
139 noinst_SCRIPTS = \
140 edit-sgml.py \
141 $(NULL)
142 ##
143 check_SCRIPTS = \
144 check-missing-doc \
145 check-missing-doc.py \
146 check-whitespace-in-args \
147 check-whitespace-in-args.py \
148 $(NULL)
149 #
150 man3_MANS = \
151 $(DOCMAN3) \
152 $(NULL)
153 man5_MANS = \
154 fonts-conf.5 \
155 $(NULL)
156 #
157 doc_DATA = \
158 $(TXT_FILES) \
159 $(PDF_FILES) \
160 $(HTML_FILES) \
161 $(NULL)
162 #
163 if USEDOCBOOK
164 BUILT_SOURCES += \
165 $(LOCAL_SGML_FILES) \
166 $(NULL)
167
168 ##
169 .fncs.sgml:
170 $(AM_V_GEN) $(RM) $@; \
171 $(PYTHON) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml '$(srcdir)/$*.fncs' $*.sgml
172 .sgml.txt:
173 $(AM_V_GEN) $(RM) $@; \
174 $(DOC2TXT) $*.sgml
175 .sgml.pdf:
176 $(AM_V_GEN) $(RM) $@; \
177 $(DOC2PDF) $*.sgml
178 .sgml.html:
179 $(AM_V_GEN) $(RM) $@; \
180 $(DOC2HTML) -u $*.sgml > $@
181 ##
182 fonts-conf.5: local-fontconfig-user.sgml cache-version.sgml version.sgml confdir.sgml
183 $(AM_V_GEN) $(RM) $@; \
184 $(DOC2MAN) local-fontconfig-user.sgml && \
185 $(RM) manpage.*
186 ##
187 $(man3_MANS): func.refs
188 func.refs: local-fontconfig-devel.sgml $(DOCS_DEPS)
189 $(AM_V_GEN) $(RM) $@; \
190 $(DOC2MAN) -o devel-man local-fontconfig-devel.sgml && \
191 mv devel-man/manpage.refs func.refs && \
192 mv devel-man/*.3 . && \
193 $(RM) devel-man/manpage.* && \
194 rmdir devel-man || rm $@ || :
195 confdir.sgml: $(srcdir)/confdir.sgml.in
196 $(AM_V_GEN) sed -e 's,@BASECONFIGDIR\@,${BASECONFIGDIR},' $(srcdir)/[email protected] | awk '{if (NR > 1) printf("\n"); printf("%s", $$0);}' > $@
197 ##
198 $(DOC_FUNCS_SGML): $(DOC_FUNCS_FNCS) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml
199 $(TXT_FILES): $(DOCS_DEPS)
200 $(PDF_FILES): $(DOCS_DEPS)
201 $(HTML_FILES): $(DOCS_DEPS)
202 local-fontconfig-user.sgml: $(srcdir)/fontconfig-user.sgml
203 $(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-user.sgml $@; \
204 [ ! -f $(builddir)/fontconfig-user.sgml ] && cp -a $(srcdir)/fontconfig-user.sgml $(builddir)/fontconfig-user.sgml || :
205 local-fontconfig-devel.sgml: $(srcdir)/fontconfig-devel.sgml
206 $(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-devel.sgml $@; \
207 [ ! -f $(builddir)/fontconfig-devel.sgml ] && cp -a $(srcdir)/fontconfig-devel.sgml $(builddir)/fontconfig-devel.sgml || :
208 #
209 all-local: $(BUILT_DOCS)
210 clean-local:
211 $(RM) -r devel-man
212 [ "x$(builddir)" != "x$(srcdir)" ] && $(RM) $(builddir)/*.sgml || :
213 dist-local-check-docs-enabled:
214 @true
215 else
216 .fncs.sgml:
217 $(AM_V_GEN) $(RM) $@; \
218 touch -r $< $@
219 all-local:
220 clean-local:
221 dist-local-check-docs-enabled:
222 @echo "*** --enable-man must be used in order to make dist"
223 @false
224 endif
225
226 # force doc rebuild after configure
227 dist-hook-local: dist-local-check-docs-enabled
228
229 -include $(top_srcdir)/git.mk