~ubuntu-branches/debian/stretch/sensors-applet/stretch

« back to all changes in this revision

Viewing changes to help/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Sam Morris
  • Date: 2006-03-24 16:25:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060324162534-ve0y6abed8w8map7
Tags: 1.6.1-1
* New upstream release
  - use libsensors instead of reading directly from /sys (closes: #353899).
* Build-depend on libsensors-dev
* Add NEWS file describing how to upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile.in generated by automake 1.7.9 from Makefile.am.
 
2
# @configure_input@
 
3
 
 
4
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
5
# Free Software Foundation, Inc.
 
6
# This Makefile.in is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy and/or distribute it,
 
8
# with or without modifications, as long as this notice is preserved.
 
9
 
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
13
# PARTICULAR PURPOSE.
 
14
 
 
15
@SET_MAKE@
 
16
 
 
17
# gnome-doc-utils.make - make magic for building documentation
 
18
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
 
19
#
 
20
# This program is free software; you can redistribute it and/or modify
 
21
# it under the terms of the GNU General Public License as published by
 
22
# the Free Software Foundation; either version 2 of the License, or
 
23
# (at your option) any later version.
 
24
#
 
25
# This program is distributed in the hope that it will be useful,
 
26
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
27
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
28
# GNU General Public License for more details.
 
29
#
 
30
# You should have received a copy of the GNU General Public License
 
31
# along with this program; if not, write to the Free Software Foundation,
 
32
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
33
#
 
34
# As a special exception to the GNU General Public License, if you
 
35
# distribute this file as part of a program that contains a
 
36
# configuration script generated by Autoconf, you may include it under
 
37
# the same distribution terms that you use for the rest of that program.
 
38
 
 
39
################################################################################
 
40
 
 
41
srcdir = @srcdir@
 
42
top_srcdir = @top_srcdir@
 
43
VPATH = @srcdir@
 
44
pkgdatadir = $(datadir)/@PACKAGE@
 
45
pkglibdir = $(libdir)/@PACKAGE@
 
46
pkgincludedir = $(includedir)/@PACKAGE@
 
47
top_builddir = ..
 
48
 
 
49
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 
50
INSTALL = @INSTALL@
 
51
install_sh_DATA = $(install_sh) -c -m 644
 
52
install_sh_PROGRAM = $(install_sh) -c
 
53
install_sh_SCRIPT = $(install_sh) -c
 
54
INSTALL_HEADER = $(INSTALL_DATA)
 
55
transform = $(program_transform_name)
 
56
NORMAL_INSTALL = :
 
57
PRE_INSTALL = :
 
58
POST_INSTALL = :
 
59
NORMAL_UNINSTALL = :
 
60
PRE_UNINSTALL = :
 
61
POST_UNINSTALL = :
 
62
ACLOCAL = @ACLOCAL@
 
63
AMDEP_FALSE = @AMDEP_FALSE@
 
64
AMDEP_TRUE = @AMDEP_TRUE@
 
65
AMTAR = @AMTAR@
 
66
AUTOCONF = @AUTOCONF@
 
67
AUTOHEADER = @AUTOHEADER@
 
68
AUTOMAKE = @AUTOMAKE@
 
69
AWK = @AWK@
 
70
CATALOGS = @CATALOGS@
 
71
CATOBJEXT = @CATOBJEXT@
 
72
CC = @CC@
 
73
CCDEPMODE = @CCDEPMODE@
 
74
CFLAGS = @CFLAGS@
 
75
CPP = @CPP@
 
76
CPPFLAGS = @CPPFLAGS@
 
77
CYGPATH_W = @CYGPATH_W@
 
78
DATADIRNAME = @DATADIRNAME@
 
79
DEFS = @DEFS@
 
80
DEPDIR = @DEPDIR@
 
81
DOC_USER_FORMATS = @DOC_USER_FORMATS@
 
82
ECHO_C = @ECHO_C@
 
83
ECHO_N = @ECHO_N@
 
84
ECHO_T = @ECHO_T@
 
85
EGREP = @EGREP@
 
86
ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
 
87
ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
 
88
EXEEXT = @EXEEXT@
 
89
GDU_MODULE_VERSION_CHECK_CFLAGS = @GDU_MODULE_VERSION_CHECK_CFLAGS@
 
90
GDU_MODULE_VERSION_CHECK_LIBS = @GDU_MODULE_VERSION_CHECK_LIBS@
 
91
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
 
92
GLIB_CFLAGS = @GLIB_CFLAGS@
 
93
GLIB_LIBS = @GLIB_LIBS@
 
94
GMOFILES = @GMOFILES@
 
95
GMSGFMT = @GMSGFMT@
 
96
GNOME_CFLAGS = @GNOME_CFLAGS@
 
97
GNOME_LIBS = @GNOME_LIBS@
 
98
GTK26TEST_CFLAGS = @GTK26TEST_CFLAGS@
 
99
GTK26TEST_LIBS = @GTK26TEST_LIBS@
 
100
GTK_CFLAGS = @GTK_CFLAGS@
 
101
GTK_LIBS = @GTK_LIBS@
 
102
HELP_DIR = @HELP_DIR@
 
103
INSTALL_DATA = @INSTALL_DATA@
 
104
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
105
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
106
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 
107
INSTOBJEXT = @INSTOBJEXT@
 
108
INTLLIBS = @INTLLIBS@
 
109
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
 
110
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
 
111
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
 
112
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
 
113
INTLTOOL_ICONV = @INTLTOOL_ICONV@
 
114
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
 
115
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
 
116
INTLTOOL_MERGE = @INTLTOOL_MERGE@
 
117
INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@
 
118
INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@
 
119
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
 
120
INTLTOOL_PERL = @INTLTOOL_PERL@
 
121
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
 
122
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
 
123
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
 
124
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
 
125
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
 
126
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
 
127
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
 
128
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
 
129
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
 
130
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
 
131
INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@
 
132
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
 
133
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
 
134
LDFLAGS = @LDFLAGS@
 
135
LIBOBJS = @LIBOBJS@
 
136
LIBS = @LIBS@
 
137
LIBSENSORS_FALSE = @LIBSENSORS_FALSE@
 
138
LIBSENSORS_TRUE = @LIBSENSORS_TRUE@
 
139
LTLIBOBJS = @LTLIBOBJS@
 
140
MAINT = @MAINT@
 
141
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
 
142
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
 
143
MAKEINFO = @MAKEINFO@
 
144
MKINSTALLDIRS = @MKINSTALLDIRS@
 
145
MSGFMT = @MSGFMT@
 
146
OBJEXT = @OBJEXT@
 
147
OMF_DIR = @OMF_DIR@
 
148
PACKAGE = @PACKAGE@
 
149
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 
150
PACKAGE_NAME = @PACKAGE_NAME@
 
151
PACKAGE_STRING = @PACKAGE_STRING@
 
152
PACKAGE_TARNAME = @PACKAGE_TARNAME@
 
153
PACKAGE_VERSION = @PACKAGE_VERSION@
 
154
PATH_SEPARATOR = @PATH_SEPARATOR@
 
155
PKG_CONFIG = @PKG_CONFIG@
 
156
POFILES = @POFILES@
 
157
POSUB = @POSUB@
 
158
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
 
159
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
 
160
SENSORS_CFLAGS = @SENSORS_CFLAGS@
 
161
SENSORS_LIBS = @SENSORS_LIBS@
 
162
SET_MAKE = @SET_MAKE@
 
163
SHELL = @SHELL@
 
164
STRIP = @STRIP@
 
165
USE_NLS = @USE_NLS@
 
166
VERSION = @VERSION@
 
167
WARN_CFLAGS = @WARN_CFLAGS@
 
168
XGETTEXT = @XGETTEXT@
 
169
XSLTPROC = @XSLTPROC@
 
170
ac_ct_CC = @ac_ct_CC@
 
171
ac_ct_STRIP = @ac_ct_STRIP@
 
172
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
 
173
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
 
174
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
 
175
am__include = @am__include@
 
176
am__leading_dot = @am__leading_dot@
 
177
am__quote = @am__quote@
 
178
bindir = @bindir@
 
179
build_alias = @build_alias@
 
180
datadir = @datadir@
 
181
exec_prefix = @exec_prefix@
 
182
host_alias = @host_alias@
 
183
includedir = @includedir@
 
184
infodir = @infodir@
 
185
install_sh = @install_sh@
 
186
libdir = @libdir@
 
187
libexecdir = @libexecdir@
 
188
localstatedir = @localstatedir@
 
189
mandir = @mandir@
 
190
oldincludedir = @oldincludedir@
 
191
prefix = @prefix@
 
192
program_transform_name = @program_transform_name@
 
193
sbindir = @sbindir@
 
194
sharedstatedir = @sharedstatedir@
 
195
sysconfdir = @sysconfdir@
 
196
target_alias = @target_alias@
 
197
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
 
198
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
 
199
 
 
200
 
 
201
################################################################################
 
202
rngdoc_args = \
 
203
        --stringparam rngdoc.id                                                 \
 
204
        $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
 
205
        $(_rngdoc) $(filter %/$(basename $(notdir $(1))).rng,$(_RNGDOC_RNGS))
 
206
 
 
207
 
 
208
_RNGDOC_RNGS = $(sort $(patsubst ./%, %, $(foreach dir,$(RNGDOC_DIRS),          \
 
209
        $(wildcard $(dir)/*.rng) $(wildcard $(srcdir)/$(dir)/*.rng))))
 
210
 
 
211
 
 
212
_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), C/$(basename $(notdir $(rng))).xml)
 
213
 
 
214
################################################################################
 
215
 
 
216
# FIXME: _XSLDOC_XSLS is getting dupes with relative/absolute in some
 
217
# cases.  Right now, I'm just taking the first, but that's just a bad
 
218
# work-around.  Fix the real problem.
 
219
xsldoc_args = \
 
220
        --stringparam xsldoc.id                                                 \
 
221
        $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
 
222
        $(_xsldoc)                                                              \
 
223
        $(word 1,$(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS)))
 
224
 
 
225
 
 
226
_XSLDOC_XSLS = $(sort $(patsubst ./%, %, $(foreach dir,$(XSLDOC_DIRS),          \
 
227
        $(wildcard $(dir)/*.xsl) $(wildcard $(srcdir)/$(dir)/*.xsl))))
 
228
 
 
229
 
 
230
_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), C/$(basename $(notdir $(xsl))).xml)
 
231
 
 
232
 
 
233
################################################################################
 
234
db2omf_args = \
 
235
        --stringparam db2omf.basename $(DOC_MODULE)                             \
 
236
        --stringparam db2omf.format $(3)                                        \
 
237
        --stringparam db2omf.dtd                                                \
 
238
        $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1              \
 
239
                | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/')                     \
 
240
        --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
 
241
        --stringparam db2omf.omf_dir "$(OMF_DIR)"                               \
 
242
        --stringparam db2omf.help_dir "$(HELP_DIR)"                             \
 
243
        --stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)"                      \
 
244
        $(_db2omf) $(2)
 
245
 
 
246
 
 
247
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
 
248
 
 
249
_DOC_OMF_DB = $(if $(_DOC_OMF_IN),                                              \
 
250
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-$(lc).omf))
 
251
 
 
252
 
 
253
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
 
254
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
 
255
 
 
256
 
 
257
# FIXME
 
258
_DOC_OMF_ALL = \
 
259
        $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))         \
 
260
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
 
261
 
 
262
 
 
263
 
 
264
################################################################################
 
265
_DOC_DSK_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).desktop.in))
 
266
 
 
267
_DOC_DSK_DB = $(if $(_DOC_DSK_IN),                                              \
 
268
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).db.$(lc).desktop))
 
269
 
 
270
 
 
271
_DOC_DSK_HTML = $(if $(_DOC_DSK_IN),                                            \
 
272
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).html.$(lc).desktop))
 
273
 
 
274
 
 
275
# FIXME
 
276
_DOC_DSK_ALL = \
 
277
        $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_DB))         \
 
278
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_HTML))
 
279
 
 
280
 
 
281
 
 
282
################################################################################
 
283
_CVSIGNORE_TOP = $(if $(DOC_MODULE), .cvsignore)
 
284
 
 
285
_CVSIGNORE_C = $(if $(DOC_MODULE), C/.cvsignore)
 
286
 
 
287
_CVSIGNORE_LC = $(if $(DOC_MODULE),$(foreach lc,$(DOC_LINGUAS),$(lc)/.cvsignore))
 
288
 
 
289
_CVSIGNORE_TOP_FILES = $(_DOC_OMF_ALL) $(_DOC_DSK_ALL)
 
290
 
 
291
_CVSIGNORE_C_FILES = $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
 
292
 
 
293
_CVSIGNORE_LC_FILES = $(_DOC_LC_DOCS)
 
294
 
 
295
 
 
296
################################################################################
 
297
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
 
298
 
 
299
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
 
300
 
 
301
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
 
302
 
 
303
_DOC_C_DOCS = \
 
304
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
 
305
        $(_RNGDOC_C_DOCS)       $(_XSLDOC_C_DOCS)                       \
 
306
        $(_DOC_C_MODULE)
 
307
 
 
308
 
 
309
_DOC_C_DOCS_NOENT = \
 
310
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
 
311
        $(_RNGDOC_C_DOCS)       $(_XSLDOC_C_DOCS)
 
312
 
 
313
 
 
314
_DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
 
315
        $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
 
316
        $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
 
317
 
 
318
 
 
319
# FIXME: probably have to shell escape to determine the file names
 
320
_DOC_C_HTML = $(shell xsltproc --xinclude                               \
 
321
        --stringparam db.chunk.basename "$(DOC_MODULE)"                 \
 
322
        $(_chunks) "C/$(DOC_MODULE).xml")
 
323
 
 
324
 
 
325
 
 
326
###############################################################################
 
327
_DOC_POFILES = $(if $(DOC_MODULE),                                      \
 
328
        $(foreach lc,$(DOC_LINGUAS),$(lc)/$(lc).po))
 
329
 
 
330
 
 
331
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                   \
 
332
        $(foreach lc,$(DOC_LINGUAS),$(lc)/$(DOC_MODULE).xml))
 
333
 
 
334
 
 
335
_DOC_LC_INCLUDES = \
 
336
        $(foreach lc,$(DOC_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),   \
 
337
                $(lc)/$(notdir $(inc)) ))
 
338
 
 
339
 
 
340
_RNGDOC_LC_DOCS = \
 
341
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS),    \
 
342
                $(lc)/$(notdir $(doc)) ))
 
343
 
 
344
 
 
345
_XSLDOC_LC_DOCS = \
 
346
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS),    \
 
347
                $(lc)/$(notdir $(doc)) ))
 
348
 
 
349
 
 
350
# FIXME: probably have to shell escape to determine the file names
 
351
_DOC_LC_HTML = \
 
352
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_DOC_C_HTML),       \
 
353
                $(lc)/$(notdir $(doc)) ))
 
354
 
 
355
 
 
356
_DOC_LC_DOCS = \
 
357
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                     \
 
358
        $(_RNGDOC_LC_DOCS)      $(_XSLDOC_LC_DOCS)                      \
 
359
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
 
360
 
 
361
 
 
362
_DOC_LC_FIGURES = $(foreach lc,$(DOC_LINGUAS),                          \
 
363
        $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
 
364
 
 
365
 
 
366
_DOC_SRC_FIGURES = \
 
367
        $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(DOC_LINGUAS), \
 
368
                $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
 
369
 
 
370
 
 
371
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
 
372
 
 
373
 
 
374
################################################################################
 
375
_DOC_HTML_ALL = $(if $(findstring html,$(_DOC_REAL_FORMATS)), \
 
376
        $(_DOC_C_HTML) $(_DOC_LC_HTML))
 
377
 
 
378
 
 
379
_DOC_HTML_TOPS = $(foreach lc,C $(DOC_LINGUAS),$(lc)/$(DOC_MODULE).html)
 
380
 
 
381
 
 
382
################################################################################
 
383
@ENABLE_SK_TRUE@_ENABLE_SK = true
 
384
@ENABLE_SK_FALSE@_ENABLE_SK = false
 
385
 
 
386
_clean_rngdoc = $(if $(RNGDOC_DIRS),clean-doc-rngdoc)
 
387
_clean_xsldoc = $(if $(XSLDOC_DIRS),clean-doc-xsldoc)
 
388
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
 
389
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
 
390
_clean_lc = $(if $(DOC_LINGUAS),clean-doc-lc)
 
391
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
 
392
 
 
393
DOC_MODULE = sensors-applet
 
394
DOC_ENTITIES = legal.xml
 
395
DOC_FIGURES = figures/applet_in_panel.png
 
396
DOC_INCLUDES = 
 
397
DOC_LINGUAS = 
 
398
subdir = help
 
399
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 
400
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 
401
CONFIG_HEADER = $(top_builddir)/src/config.h
 
402
CONFIG_CLEAN_FILES =
 
403
DIST_SOURCES =
 
404
DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/gnome-doc-utils.make \
 
405
        ChangeLog Makefile.am
 
406
all: all-am
 
407
 
 
408
.SUFFIXES:
 
409
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/gnome-doc-utils.make $(top_srcdir)/configure.ac $(ACLOCAL_M4)
 
410
        cd $(top_srcdir) && \
 
411
          $(AUTOMAKE) --gnu  help/Makefile
 
412
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
 
413
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
 
414
uninstall-info-am:
 
415
tags: TAGS
 
416
TAGS:
 
417
 
 
418
ctags: CTAGS
 
419
CTAGS:
 
420
 
 
421
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
422
 
 
423
top_distdir = ..
 
424
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
425
 
 
426
distdir: $(DISTFILES)
 
427
        $(mkinstalldirs) $(distdir)/..
 
428
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
 
429
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
 
430
        list='$(DISTFILES)'; for file in $$list; do \
 
431
          case $$file in \
 
432
            $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
 
433
            $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
 
434
          esac; \
 
435
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
 
436
          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
 
437
          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
 
438
            dir="/$$dir"; \
 
439
            $(mkinstalldirs) "$(distdir)$$dir"; \
 
440
          else \
 
441
            dir=''; \
 
442
          fi; \
 
443
          if test -d $$d/$$file; then \
 
444
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
 
445
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
 
446
            fi; \
 
447
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
 
448
          else \
 
449
            test -f $(distdir)/$$file \
 
450
            || cp -p $$d/$$file $(distdir)/$$file \
 
451
            || exit 1; \
 
452
          fi; \
 
453
        done
 
454
        $(MAKE) $(AM_MAKEFLAGS) \
 
455
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
 
456
          dist-hook
 
457
check-am: all-am
 
458
check: check-am
 
459
all-am: Makefile
 
460
 
 
461
installdirs:
 
462
install: install-am
 
463
install-exec: install-exec-am
 
464
install-data: install-data-am
 
465
uninstall: uninstall-am
 
466
 
 
467
install-am: all-am
 
468
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
469
 
 
470
installcheck: installcheck-am
 
471
install-strip:
 
472
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 
473
          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
 
474
          `test -z '$(STRIP)' || \
 
475
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 
476
mostlyclean-generic:
 
477
 
 
478
clean-generic:
 
479
 
 
480
distclean-generic:
 
481
        -rm -f $(CONFIG_CLEAN_FILES)
 
482
 
 
483
maintainer-clean-generic:
 
484
        @echo "This command is intended for maintainers to use"
 
485
        @echo "it deletes files that may require special tools to rebuild."
 
486
clean: clean-am
 
487
 
 
488
clean-am: clean-generic clean-local mostlyclean-am
 
489
 
 
490
distclean: distclean-am
 
491
        -rm -f Makefile
 
492
distclean-am: clean-am distclean-generic distclean-local
 
493
 
 
494
dvi: dvi-am
 
495
 
 
496
dvi-am:
 
497
 
 
498
info: info-am
 
499
 
 
500
info-am:
 
501
 
 
502
install-data-am: install-data-local
 
503
 
 
504
install-exec-am:
 
505
 
 
506
install-info: install-info-am
 
507
 
 
508
install-man:
 
509
 
 
510
installcheck-am:
 
511
 
 
512
maintainer-clean: maintainer-clean-am
 
513
        -rm -f Makefile
 
514
maintainer-clean-am: distclean-am maintainer-clean-generic \
 
515
        maintainer-clean-local
 
516
 
 
517
mostlyclean: mostlyclean-am
 
518
 
 
519
mostlyclean-am: mostlyclean-generic mostlyclean-local
 
520
 
 
521
pdf: pdf-am
 
522
 
 
523
pdf-am:
 
524
 
 
525
ps: ps-am
 
526
 
 
527
ps-am:
 
528
 
 
529
uninstall-am: uninstall-info-am uninstall-local
 
530
 
 
531
.PHONY: all all-am check check-am clean clean-generic clean-local \
 
532
        distclean distclean-generic distclean-local distdir dvi dvi-am \
 
533
        info info-am install install-am install-data install-data-am \
 
534
        install-data-local install-exec install-exec-am install-info \
 
535
        install-info-am install-man install-strip installcheck \
 
536
        installcheck-am installdirs maintainer-clean \
 
537
        maintainer-clean-generic maintainer-clean-local mostlyclean \
 
538
        mostlyclean-generic mostlyclean-local pdf pdf-am ps ps-am \
 
539
        uninstall uninstall-am uninstall-info-am uninstall-local
 
540
 
 
541
 
 
542
DOC_H_FILE ?=
 
543
 
 
544
DOC_H_DOCS ?=
 
545
 
 
546
$(DOC_H_FILE): $(DOC_H_DOCS);
 
547
        @rm -f $@.tmp; touch $@.tmp;
 
548
        echo 'const gchar* documentation_credits[] = {' >> $@.tmp
 
549
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
550
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
551
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
552
          xsltproc --path "$$xmlpath" $(_credits) $$doc; \
 
553
        done | sort | uniq \
 
554
          | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
 
555
          | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
 
556
        echo '  NULL' >> $@.tmp
 
557
        echo '};' >> $@.tmp
 
558
        echo >> $@.tmp
 
559
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
560
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
561
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
562
          docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
 
563
            | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
 
564
          echo $$xmlpath; \
 
565
          ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
 
566
          for id in $$ids; do \
 
567
            echo '#define HELP_'`echo $$docid`'_'`echo $$id \
 
568
              | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
 
569
          done; \
 
570
          echo >> $@.tmp; \
 
571
        done;
 
572
        cp $@.tmp $@ && rm -f $@.tmp
 
573
 
 
574
.PHONY: dist-doc-header
 
575
dist-doc-header: $(DOC_H_FILE)
 
576
        @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
 
577
        echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
 
578
        $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
 
579
 
 
580
doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
 
581
 
 
582
.PHONY: clean-doc-header
 
583
clean-local: $(_clean_doc_header)
 
584
distclean-local: $(_clean_doc_header)
 
585
mostlyclean-local: $(_clean_doc_header)
 
586
maintainer-clean-local: $(_clean_doc_header)
 
587
clean-doc-header:
 
588
        rm -f $(DOC_H_FILE)
 
589
 
 
590
all: $(DOC_H_FILE)
 
591
 
 
592
################################################################################
 
593
 
 
594
DOC_MODULE ?=
 
595
 
 
596
DOC_ENTITIES ?=
 
597
 
 
598
DOC_INCLUDES ?=
 
599
 
 
600
DOC_FIGURES ?=
 
601
 
 
602
DOC_FORMATS ?= docbook
 
603
 
 
604
DOC_LINGUAS ?=
 
605
 
 
606
RNGDOC_DIRS ?=
 
607
 
 
608
XSLDOC_DIRS ?=
 
609
 
 
610
################################################################################
 
611
 
 
612
_xml2po ?= `which xml2po`
 
613
 
 
614
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
 
615
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
 
616
_rngdoc  ?= `$(PKG_CONFIG) --variable rngdoc gnome-doc-utils`
 
617
_xsldoc  ?= `$(PKG_CONFIG) --variable xsldoc gnome-doc-utils`
 
618
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
 
619
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
 
620
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
 
621
 
 
622
_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
 
623
 
 
624
# FIXME: Fix the dependancies
 
625
$(_RNGDOC_C_DOCS) : $(_RNGDOC_RNGS)
 
626
        if ! test -d $(dir $@); then mkdir $(dir $@); fi;
 
627
        xsltproc $(call rngdoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
 
628
          cp $@.tmp $@ && rm -f $@.tmp
 
629
 
 
630
.PHONY: rngdoc
 
631
rngdoc: $(_RNGDOC_C_DOCS)
 
632
 
 
633
# FIXME: Fix the dependancies
 
634
$(_XSLDOC_C_DOCS) : $(_XSLDOC_XSLS)
 
635
        if ! test -d $(dir $@); then mkdir $(dir $@); fi;
 
636
        xsltproc $(call xsldoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
 
637
          cp $@.tmp $@ && rm -f $@.tmp
 
638
 
 
639
.PHONY: xsldoc
 
640
xsldoc: $(_XSLDOC_C_DOCS)
 
641
 
 
642
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
 
643
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
 
644
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
 
645
 
 
646
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
 
647
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
 
648
        xsltproc -o $@ $(call db2omf_args,$@,$<,'html')
 
649
 
 
650
.PHONY: omf
 
651
omf: $(_DOC_OMF_ALL)
 
652
 
 
653
# FIXME
 
654
$(_DOC_DSK_DB) : $(_DOC_DSK_IN)
 
655
$(_DOC_DSK_DB) : $(DOC_MODULE).db.%.desktop : %/$(DOC_MODULE).xml
 
656
        cp $(_DOC_DSK_IN) $@
 
657
 
 
658
$(_DOC_DSK_HTML) : $(_DOC_DSK_IN)
 
659
$(_DOC_DSK_HTML) : $(DOC_MODULE).html.%.desktop : %/$(DOC_MODULE).xml
 
660
        cp $(_DOC_DSK_IN) $@
 
661
 
 
662
.PHONY: dsk
 
663
dsk: $(_DOC_DSK_ALL)
 
664
 
 
665
$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
 
666
        if ! test -f $@; then touch $@; fi
 
667
        cat $@ > $@.tmp
 
668
        list='$^'; for file in $$list; do \
 
669
          echo $$file >> $@.tmp; \
 
670
        done
 
671
        cat $@.tmp | sort | uniq > $@
 
672
        rm $@.tmp
 
673
 
 
674
$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
 
675
        if ! test -f $@; then touch $@; fi
 
676
        cat $@ > $@.tmp
 
677
        list='$^'; for file in $$list; do \
 
678
          echo $$file | sed -e 's/.*\///' >> $@.tmp; \
 
679
        done
 
680
        cat $@.tmp | sort | uniq > $@
 
681
        rm $@.tmp
 
682
 
 
683
$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
 
684
        if ! test -f $@; then touch $@; fi
 
685
        cat $@ > $@.tmp
 
686
        list='$(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*)'; \
 
687
        for file in $$list; do \
 
688
          echo $$file | sed -e 's/.*\///' >> $@.tmp; \
 
689
        done
 
690
        cat $@.tmp | sort | uniq > $@
 
691
        rm $@.tmp
 
692
 
 
693
.PHONY: cvsignore
 
694
cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
 
695
 
 
696
.PHONY: po
 
697
po: $(_DOC_POFILES)
 
698
 
 
699
$(_DOC_POFILES): $(_DOC_C_DOCS)
 
700
        @if ! test -d $(dir $@); then \
 
701
          echo "mkdir $(dir $@)"; \
 
702
          mkdir "$(dir $@)"; \
 
703
        fi
 
704
        @if test ! -f $@ -a -f $(srcdir)/$@; then \
 
705
          echo "cp $(srcdir)/$@ $@"; \
 
706
          cp "$(srcdir)/$@" "$@"; \
 
707
        fi;
 
708
        @docs=; \
 
709
        list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
 
710
          if test -f $$doc; then \
 
711
            docs="$$docs ../$$doc"; \
 
712
          else \
 
713
            docs="$$docs ../$(srcdir)/$$doc"; \
 
714
          fi; \
 
715
        done; \
 
716
        if ! test -f $@; then \
 
717
          echo "(cd $(dir $@) && \
 
718
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
719
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
 
720
          (cd $(dir $@) && \
 
721
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
722
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
 
723
        else \
 
724
          echo "(cd $(dir $@) && \
 
725
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
726
          (cd $(dir $@) && \
 
727
            $(_xml2po) -e -u $(notdir $@) $$docs); \
 
728
        fi
 
729
 
 
730
# FIXME: fix the dependancy
 
731
# FIXME: hook xml2po up
 
732
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
 
733
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
 
734
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
 
735
        case "$(srcdir)" in /*) sd="$(srcdir)";; *) sd="../$(srcdir)";; esac; \
 
736
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$sd/"; fi; \
 
737
        (cd $(dir $@) && \
 
738
          $(_xml2po) -e -p \
 
739
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
 
740
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
 
741
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
 
742
.PHONY: pot
 
743
pot: $(_DOC_POT)
 
744
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
 
745
        $(_xml2po) -e -o $@ $^
 
746
 
 
747
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
748
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".html" $(_db2html) $(patsubst %.html,%.xml,$@)
 
749
 
 
750
all:                                                    \
 
751
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
 
752
        $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
 
753
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
 
754
 
 
755
.PHONY: clean-doc-rngdoc clean-doc-xsldoc clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
 
756
 
 
757
clean-doc-rngdoc: ; rm -f $(_RNGDOC_C_DOCS) $(_RNGDOC_LC_DOCS)
 
758
clean-doc-xsldoc: ; rm -f $(_XSLDOC_C_DOCS) $(_XSLDOC_LC_DOCS)
 
759
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
 
760
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
 
761
clean-doc-lc:
 
762
        rm -f $(_DOC_LC_DOCS)
 
763
        @list='$(_DOC_POFILES)'; for po in $$list; do \
 
764
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
 
765
            echo "rm -f $$po"; \
 
766
            rm -f "$$po"; \
 
767
          fi; \
 
768
        done
 
769
        @for lc in C $(DOC_LINGUAS); do \
 
770
          if test -f "$$lc/.xml2po.mo"; then \
 
771
            echo "rm -f $$lc/.xml2po.mo"; \
 
772
            rm -f "$$lc/.xml2po.mo"; \
 
773
          fi; \
 
774
        done
 
775
clean-doc-dir:
 
776
        @for lc in C $(DOC_LINGUAS); do \
 
777
          for dir in `find $$lc -depth -type d`; do \
 
778
            if ! test $$dir -ef $(srcdir)/$$dir; then \
 
779
              echo "rmdir $$dir"; \
 
780
              rmdir "$$dir"; \
 
781
           fi; \
 
782
          done; \
 
783
        done
 
784
 
 
785
clean-local:                                            \
 
786
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
787
        $(_clean_omf)           $(_clean_dsk)           \
 
788
        $(_clean_lc)            $(_clean_dir)
 
789
distclean-local:                                        \
 
790
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
791
        $(_clean_omf)           $(_clean_dsk)           \
 
792
        $(_clean_lc)            $(_clean_dir)
 
793
mostlyclean-local:                                      \
 
794
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
795
        $(_clean_omf)           $(_clean_dsk)           \
 
796
        $(_clean_lc)            $(_clean_dir)
 
797
maintainer-clean-local:                                 \
 
798
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
799
        $(_clean_omf)           $(_clean_dsk)           \
 
800
        $(_clean_lc)            $(_clean_dir)
 
801
 
 
802
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
 
803
doc-dist-hook:                                  \
 
804
        $(if $(DOC_MODULE),dist-doc-docs)       \
 
805
        $(if $(_DOC_C_FIGURES),dist-doc-figs)   \
 
806
        $(if $(_DOC_OMF_IN),dist-doc-omf)
 
807
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
 
808
 
 
809
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
 
810
        @for lc in C $(DOC_LINGUAS); do \
 
811
          echo " $(mkinstalldirs) $(distdir)/$$lc"; \
 
812
          $(mkinstalldirs) "$(distdir)/$$lc"; \
 
813
        done
 
814
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
 
815
        for doc in $$list; do \
 
816
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
817
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
 
818
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
 
819
        done
 
820
 
 
821
dist-doc-figs: $(_DOC_SRC_FIGURES)
 
822
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
 
823
        for fig in $$list; do \
 
824
          if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
 
825
          if test -f "$$d$$fig"; then \
 
826
            figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
827
            if ! test -d "$(distdir)/$$figdir"; then \
 
828
              echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
 
829
              $(mkinstalldirs) "$(distdir)/$$figdir"; \
 
830
            fi; \
 
831
            echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
 
832
            $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
 
833
          fi; \
 
834
        done;
 
835
 
 
836
dist-doc-omf:
 
837
        @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
838
        echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
 
839
        $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
 
840
 
 
841
dist-doc-dsk:
 
842
        @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
843
        echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
 
844
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
 
845
 
 
846
.PHONY: check-doc-docs check-doc-omf
 
847
check:                                                  \
 
848
        $(if $(DOC_MODULE),check-doc-docs)              \
 
849
        $(if $(_DOC_OMF_IN),check-doc-omf)
 
850
 
 
851
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
852
        @for lc in C $(DOC_LINGUAS); do \
 
853
          if test -f "$$lc"; \
 
854
            then d=; \
 
855
            xmlpath="$$lc"; \
 
856
          else \
 
857
            d="$(srcdir)/"; \
 
858
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
859
          fi; \
 
860
          echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
 
861
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
 
862
        done
 
863
 
 
864
check-doc-omf: $(_DOC_OMF_ALL)
 
865
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
866
          echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
 
867
          xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
 
868
        done
 
869
 
 
870
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
 
871
install-data-local:                                     \
 
872
        $(if $(DOC_MODULE),install-doc-docs)            \
 
873
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
 
874
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
 
875
        $(if $(_DOC_OMF_IN),install-doc-omf)
 
876
#       $(if $(_DOC_DSK_IN),install-doc-dsk)
 
877
 
 
878
install-doc-docs:
 
879
        @for lc in C $(DOC_LINGUAS); do \
 
880
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
881
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
 
882
        done
 
883
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
884
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
885
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
886
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
 
887
        done
 
888
 
 
889
install-doc-figs:
 
890
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
 
891
          for lc in C $(DOC_LINGUAS); do \
 
892
            if test -f "$$lc/$$fig"; then \
 
893
              figfile="$$lc/$$fig"; \
 
894
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
 
895
              figfile="$(srcdir)/$$lc/$$fig"; \
 
896
            elif test -f "C/$$fig"; then \
 
897
              figfile="C/$$fig"; \
 
898
            else \
 
899
              figfile="$(srcdir)/C/$$fig"; \
 
900
            fi; \
 
901
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
902
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
 
903
            if ! test -d "$$figdir"; then \
 
904
              echo "$(mkinstalldirs) $$figdir"; \
 
905
              $(mkinstalldirs) "$$figdir"; \
 
906
            fi; \
 
907
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
 
908
            echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
909
            $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
910
          done; \
 
911
        done
 
912
 
 
913
install-doc-html:
 
914
        echo install-html
 
915
 
 
916
install-doc-omf:
 
917
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
 
918
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
919
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
920
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
 
921
        done
 
922
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
923
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
924
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
925
        fi;
 
926
 
 
927
install-doc-dsk:
 
928
        echo install-dsk
 
929
 
 
930
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
 
931
uninstall-local:                                        \
 
932
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
 
933
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
 
934
        $(if $(DOC_FIGURES),uninstall-doc-figs)         \
 
935
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
 
936
#       $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
 
937
 
 
938
uninstall-doc-docs:
 
939
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
940
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
941
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
942
        done
 
943
 
 
944
uninstall-doc-figs:
 
945
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
 
946
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
947
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
948
        done;
 
949
 
 
950
uninstall-doc-omf:
 
951
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
952
          if test "x$(_ENABLE_SK)" == "xtrue"; then \
 
953
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
954
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
955
          fi; \
 
956
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
957
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
958
        done
 
959
dist-hook: doc-dist-hook
 
960
# Tell versions [3.59,3.63) of GNU make to not export all variables.
 
961
# Otherwise a system limit (for SysV at least) may be exceeded.
 
962
.NOEXPORT: