~ubuntu-branches/ubuntu/lucid/gnome-user-docs/lucid-updates

« back to all changes in this revision

Viewing changes to gnome2-system-admin-guide/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthew East
  • Date: 2009-03-27 22:32:30 UTC
  • Revision ID: james.westby@ubuntu.com-20090327223230-waromsgvcc6v3jcr
Tags: 2.26.0+svn20090323ubuntu1
* Version 2.26.0 released
* Merge from upstream svn as at 23.03.2009 - some translation updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile.in generated by automake 1.10.2 from Makefile.am.
 
2
# @configure_input@
 
3
 
 
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 
5
# 2003, 2004, 2005, 2006, 2007, 2008  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
VPATH = @srcdir@
 
41
pkgdatadir = $(datadir)/@PACKAGE@
 
42
pkglibdir = $(libdir)/@PACKAGE@
 
43
pkgincludedir = $(includedir)/@PACKAGE@
 
44
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 
45
install_sh_DATA = $(install_sh) -c -m 644
 
46
install_sh_PROGRAM = $(install_sh) -c
 
47
install_sh_SCRIPT = $(install_sh) -c
 
48
INSTALL_HEADER = $(INSTALL_DATA)
 
49
transform = $(program_transform_name)
 
50
NORMAL_INSTALL = :
 
51
PRE_INSTALL = :
 
52
POST_INSTALL = :
 
53
NORMAL_UNINSTALL = :
 
54
PRE_UNINSTALL = :
 
55
POST_UNINSTALL = :
 
56
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
 
57
        $(top_srcdir)/gnome-doc-utils.make ChangeLog
 
58
subdir = gnome2-system-admin-guide
 
59
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 
60
am__aclocal_m4_deps = $(top_srcdir)/configure.in
 
61
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 
62
        $(ACLOCAL_M4)
 
63
mkinstalldirs = $(install_sh) -d
 
64
CONFIG_CLEAN_FILES =
 
65
SOURCES =
 
66
DIST_SOURCES =
 
67
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
68
ACLOCAL = @ACLOCAL@
 
69
AMTAR = @AMTAR@
 
70
AUTOCONF = @AUTOCONF@
 
71
AUTOHEADER = @AUTOHEADER@
 
72
AUTOMAKE = @AUTOMAKE@
 
73
AWK = @AWK@
 
74
CYGPATH_W = @CYGPATH_W@
 
75
DEFS = @DEFS@
 
76
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
 
77
DOC_USER_FORMATS = @DOC_USER_FORMATS@
 
78
ECHO_C = @ECHO_C@
 
79
ECHO_N = @ECHO_N@
 
80
ECHO_T = @ECHO_T@
 
81
GNOME2_USER_DOCS_CFLAGS = @GNOME2_USER_DOCS_CFLAGS@
 
82
GNOME2_USER_DOCS_LIBS = @GNOME2_USER_DOCS_LIBS@
 
83
HELP_DIR = @HELP_DIR@
 
84
INSTALL = @INSTALL@
 
85
INSTALL_DATA = @INSTALL_DATA@
 
86
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
87
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
88
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 
89
LIBOBJS = @LIBOBJS@
 
90
LIBS = @LIBS@
 
91
LN_S = @LN_S@
 
92
LTLIBOBJS = @LTLIBOBJS@
 
93
MAINT = @MAINT@
 
94
MAKEINFO = @MAKEINFO@
 
95
MKDIR_P = @MKDIR_P@
 
96
OMF_DIR = @OMF_DIR@
 
97
PACKAGE = @PACKAGE@
 
98
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 
99
PACKAGE_NAME = @PACKAGE_NAME@
 
100
PACKAGE_STRING = @PACKAGE_STRING@
 
101
PACKAGE_TARNAME = @PACKAGE_TARNAME@
 
102
PACKAGE_VERSION = @PACKAGE_VERSION@
 
103
PATH_SEPARATOR = @PATH_SEPARATOR@
 
104
PKG_CONFIG = @PKG_CONFIG@
 
105
SET_MAKE = @SET_MAKE@
 
106
SHELL = @SHELL@
 
107
STRIP = @STRIP@
 
108
VERSION = @VERSION@
 
109
abs_builddir = @abs_builddir@
 
110
abs_srcdir = @abs_srcdir@
 
111
abs_top_builddir = @abs_top_builddir@
 
112
abs_top_srcdir = @abs_top_srcdir@
 
113
am__leading_dot = @am__leading_dot@
 
114
am__tar = @am__tar@
 
115
am__untar = @am__untar@
 
116
bindir = @bindir@
 
117
build_alias = @build_alias@
 
118
builddir = @builddir@
 
119
datadir = @datadir@
 
120
datarootdir = @datarootdir@
 
121
docdir = @docdir@
 
122
dvidir = @dvidir@
 
123
exec_prefix = @exec_prefix@
 
124
host_alias = @host_alias@
 
125
htmldir = @htmldir@
 
126
includedir = @includedir@
 
127
infodir = @infodir@
 
128
install_sh = @install_sh@
 
129
libdir = @libdir@
 
130
libexecdir = @libexecdir@
 
131
localedir = @localedir@
 
132
localstatedir = @localstatedir@
 
133
mandir = @mandir@
 
134
mkdir_p = @mkdir_p@
 
135
oldincludedir = @oldincludedir@
 
136
pdfdir = @pdfdir@
 
137
prefix = @prefix@
 
138
program_transform_name = @program_transform_name@
 
139
psdir = @psdir@
 
140
sbindir = @sbindir@
 
141
sharedstatedir = @sharedstatedir@
 
142
srcdir = @srcdir@
 
143
sysconfdir = @sysconfdir@
 
144
target_alias = @target_alias@
 
145
top_build_prefix = @top_build_prefix@
 
146
top_builddir = @top_builddir@
 
147
top_srcdir = @top_srcdir@
 
148
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
 
149
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
 
150
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),               \
 
151
        $(filter $(LINGUAS),$(DOC_LINGUAS)),                                    \
 
152
        $(DOC_LINGUAS))
 
153
 
 
154
_DOC_ABS_SRCDIR = @abs_srcdir@
 
155
@ENABLE_SK_TRUE@_ENABLE_SK = true
 
156
 
 
157
################################################################################
 
158
db2omf_args = \
 
159
        --stringparam db2omf.basename $(DOC_MODULE)                             \
 
160
        --stringparam db2omf.format $(3)                                        \
 
161
        --stringparam db2omf.dtd                                                \
 
162
        $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1              \
 
163
                | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/')                     \
 
164
        --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
 
165
        --stringparam db2omf.omf_dir "$(OMF_DIR)"                               \
 
166
        --stringparam db2omf.help_dir "$(HELP_DIR)"                             \
 
167
        --stringparam db2omf.omf_in "$(_DOC_OMF_IN)"                            \
 
168
        $(if $(_ENABLE_SK),                                                     \
 
169
          --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)")            \
 
170
        $(_db2omf) $(2)
 
171
 
 
172
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
 
173
_DOC_OMF_DB = $(if $(_DOC_OMF_IN),                                              \
 
174
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
 
175
 
 
176
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
 
177
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
 
178
 
 
179
 
 
180
# FIXME
 
181
_DOC_OMF_ALL = \
 
182
        $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))             \
 
183
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
 
184
 
 
185
 
 
186
################################################################################
 
187
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
 
188
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
 
189
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
 
190
_DOC_C_DOCS = \
 
191
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
 
192
        $(_DOC_C_MODULE)
 
193
 
 
194
_DOC_C_DOCS_NOENT = \
 
195
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)
 
196
 
 
197
_DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
 
198
        $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
 
199
        $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
 
200
 
 
201
 
 
202
# FIXME: probably have to shell escape to determine the file names
 
203
_DOC_C_HTML = $(foreach f,                                              \
 
204
        $(shell xsltproc --xinclude                                     \
 
205
          --stringparam db.chunk.basename "$(DOC_MODULE)"               \
 
206
          $(_chunks) "C/$(DOC_MODULE).xml"),                            \
 
207
        C/$(f).xhtml)
 
208
 
 
209
 
 
210
###############################################################################
 
211
_DOC_POFILES = $(if $(DOC_MODULE),                                              \
 
212
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
 
213
 
 
214
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
 
215
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
 
216
 
 
217
_DOC_LC_INCLUDES = \
 
218
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),     \
 
219
                $(lc)/$(notdir $(inc)) ))
 
220
 
 
221
 
 
222
# FIXME: probably have to shell escape to determine the file names
 
223
_DOC_LC_HTML = \
 
224
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML),         \
 
225
                $(lc)/$(notdir $(doc)) ))
 
226
 
 
227
_DOC_LC_DOCS = \
 
228
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                             \
 
229
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
 
230
 
 
231
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS),                            \
 
232
        $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
 
233
 
 
234
_DOC_SRC_FIGURES = \
 
235
        $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS),   \
 
236
                $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
 
237
 
 
238
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
 
239
 
 
240
################################################################################
 
241
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
 
242
        $(_DOC_C_HTML) $(_DOC_LC_HTML))
 
243
 
 
244
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
 
245
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
 
246
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
 
247
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
 
248
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
 
249
DOC_MODULE = system-admin-guide
 
250
DOC_ENTITIES = \
 
251
        appendixa.xml           \
 
252
        appendixb.xml           \
 
253
        fontconfig.xml          \
 
254
        gconf.xml               \
 
255
        glossary.xml            \
 
256
        help.xml                \
 
257
        lockdown.xml            \
 
258
        menustructure.xml       \
 
259
        mimetypes.xml           \
 
260
        performance.xml         \
 
261
        screensavers.xml        \
 
262
        sessions.xml            \
 
263
        themes.xml              \
 
264
        legal.xml
 
265
 
 
266
DOC_LINGUAS = ca de el es eu fi fr it ja ko oc pa pt sv zh_CN
 
267
all: all-am
 
268
 
 
269
.SUFFIXES:
 
270
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
 
271
        @for dep in $?; do \
 
272
          case '$(am__configure_deps)' in \
 
273
            *$$dep*) \
 
274
              ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
 
275
                && { if test -f $@; then exit 0; else break; fi; }; \
 
276
              exit 1;; \
 
277
          esac; \
 
278
        done; \
 
279
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  gnome2-system-admin-guide/Makefile'; \
 
280
        cd $(top_srcdir) && \
 
281
          $(AUTOMAKE) --gnu  gnome2-system-admin-guide/Makefile
 
282
.PRECIOUS: Makefile
 
283
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 
284
        @case '$?' in \
 
285
          *config.status*) \
 
286
            cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
 
287
          *) \
 
288
            echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
 
289
            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
 
290
        esac;
 
291
 
 
292
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 
293
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
294
 
 
295
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
 
296
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
297
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
 
298
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
299
tags: TAGS
 
300
TAGS:
 
301
 
 
302
ctags: CTAGS
 
303
CTAGS:
 
304
 
 
305
 
 
306
distdir: $(DISTFILES)
 
307
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 
308
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 
309
        list='$(DISTFILES)'; \
 
310
          dist_files=`for file in $$list; do echo $$file; done | \
 
311
          sed -e "s|^$$srcdirstrip/||;t" \
 
312
              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
 
313
        case $$dist_files in \
 
314
          */*) $(MKDIR_P) `echo "$$dist_files" | \
 
315
                           sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
 
316
                           sort -u` ;; \
 
317
        esac; \
 
318
        for file in $$dist_files; do \
 
319
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
 
320
          if test -d $$d/$$file; then \
 
321
            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
 
322
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
 
323
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
 
324
            fi; \
 
325
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
 
326
          else \
 
327
            test -f $(distdir)/$$file \
 
328
            || cp -p $$d/$$file $(distdir)/$$file \
 
329
            || exit 1; \
 
330
          fi; \
 
331
        done
 
332
        $(MAKE) $(AM_MAKEFLAGS) \
 
333
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
 
334
          dist-hook
 
335
check-am: all-am
 
336
check: check-am
 
337
all-am: Makefile
 
338
installdirs:
 
339
install: install-am
 
340
install-exec: install-exec-am
 
341
install-data: install-data-am
 
342
uninstall: uninstall-am
 
343
 
 
344
install-am: all-am
 
345
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
346
 
 
347
installcheck: installcheck-am
 
348
install-strip:
 
349
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 
350
          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
 
351
          `test -z '$(STRIP)' || \
 
352
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 
353
mostlyclean-generic:
 
354
 
 
355
clean-generic:
 
356
 
 
357
distclean-generic:
 
358
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
359
 
 
360
maintainer-clean-generic:
 
361
        @echo "This command is intended for maintainers to use"
 
362
        @echo "it deletes files that may require special tools to rebuild."
 
363
clean: clean-am
 
364
 
 
365
clean-am: clean-generic clean-local mostlyclean-am
 
366
 
 
367
distclean: distclean-am
 
368
        -rm -f Makefile
 
369
distclean-am: clean-am distclean-generic distclean-local
 
370
 
 
371
dvi: dvi-am
 
372
 
 
373
dvi-am:
 
374
 
 
375
html: html-am
 
376
 
 
377
info: info-am
 
378
 
 
379
info-am:
 
380
 
 
381
install-data-am: install-data-local
 
382
 
 
383
install-dvi: install-dvi-am
 
384
 
 
385
install-exec-am:
 
386
 
 
387
install-html: install-html-am
 
388
 
 
389
install-info: install-info-am
 
390
 
 
391
install-man:
 
392
 
 
393
install-pdf: install-pdf-am
 
394
 
 
395
install-ps: install-ps-am
 
396
 
 
397
installcheck-am:
 
398
 
 
399
maintainer-clean: maintainer-clean-am
 
400
        -rm -f Makefile
 
401
maintainer-clean-am: distclean-am maintainer-clean-generic \
 
402
        maintainer-clean-local
 
403
 
 
404
mostlyclean: mostlyclean-am
 
405
 
 
406
mostlyclean-am: mostlyclean-generic mostlyclean-local
 
407
 
 
408
pdf: pdf-am
 
409
 
 
410
pdf-am:
 
411
 
 
412
ps: ps-am
 
413
 
 
414
ps-am:
 
415
 
 
416
uninstall-am: uninstall-local
 
417
 
 
418
.MAKE: install-am install-strip
 
419
 
 
420
.PHONY: all all-am check check-am clean clean-generic clean-local \
 
421
        dist-hook distclean distclean-generic distclean-local distdir \
 
422
        dvi dvi-am html html-am info info-am install install-am \
 
423
        install-data install-data-am install-data-local install-dvi \
 
424
        install-dvi-am install-exec install-exec-am install-html \
 
425
        install-html-am install-info install-info-am install-man \
 
426
        install-pdf install-pdf-am install-ps install-ps-am \
 
427
        install-strip installcheck installcheck-am installdirs \
 
428
        maintainer-clean maintainer-clean-generic \
 
429
        maintainer-clean-local mostlyclean mostlyclean-generic \
 
430
        mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
 
431
        uninstall-local
 
432
 
 
433
 
 
434
DOC_H_FILE ?=
 
435
 
 
436
DOC_H_DOCS ?=
 
437
 
 
438
$(DOC_H_FILE): $(DOC_H_DOCS);
 
439
        @rm -f $@.tmp; touch $@.tmp;
 
440
        echo 'const gchar* documentation_credits[] = {' >> $@.tmp
 
441
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
442
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
443
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
444
          xsltproc --path "$$xmlpath" $(_credits) $$doc; \
 
445
        done | sort | uniq \
 
446
          | 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}}' \
 
447
          | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
 
448
        echo '  NULL' >> $@.tmp
 
449
        echo '};' >> $@.tmp
 
450
        echo >> $@.tmp
 
451
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
452
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
453
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
454
          docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
 
455
            | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
 
456
          echo $$xmlpath; \
 
457
          ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
 
458
          for id in $$ids; do \
 
459
            echo '#define HELP_'`echo $$docid`'_'`echo $$id \
 
460
              | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
 
461
          done; \
 
462
          echo >> $@.tmp; \
 
463
        done;
 
464
        cp $@.tmp $@ && rm -f $@.tmp
 
465
 
 
466
dist-check-gdu:
 
467
@HAVE_GNOME_DOC_UTILS_FALSE@    @echo "*** GNOME Doc Utils must be installed in order to make dist"
 
468
@HAVE_GNOME_DOC_UTILS_FALSE@    @false
 
469
 
 
470
.PHONY: dist-doc-header
 
471
dist-doc-header: $(DOC_H_FILE)
 
472
        @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
 
473
        echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
 
474
        $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
 
475
 
 
476
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
 
477
 
 
478
.PHONY: clean-doc-header
 
479
clean-local: $(_clean_doc_header)
 
480
distclean-local: $(_clean_doc_header)
 
481
mostlyclean-local: $(_clean_doc_header)
 
482
maintainer-clean-local: $(_clean_doc_header)
 
483
clean-doc-header:
 
484
        rm -f $(DOC_H_FILE)
 
485
 
 
486
all: $(DOC_H_FILE)
 
487
 
 
488
################################################################################
 
489
 
 
490
DOC_MODULE ?=
 
491
 
 
492
DOC_ENTITIES ?=
 
493
 
 
494
DOC_INCLUDES ?=
 
495
 
 
496
DOC_FIGURES ?=
 
497
 
 
498
DOC_FORMATS ?= docbook
 
499
 
 
500
DOC_LINGUAS ?=
 
501
 
 
502
################################################################################
 
503
 
 
504
_xml2po ?= `which xml2po`
 
505
 
 
506
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
 
507
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
 
508
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
 
509
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
 
510
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
 
511
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
 
512
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
 
513
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
 
514
 
 
515
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
 
516
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
 
517
        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
 
518
          echo "The file '$(_skcontentslist)' does not exist." >&2;             \
 
519
          echo "Please check your ScrollKeeper installation." >&2;              \
 
520
          exit 1; }
 
521
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
 
522
 
 
523
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
 
524
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
 
525
@ENABLE_SK_TRUE@        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
 
526
@ENABLE_SK_TRUE@          echo "The file '$(_skcontentslist)' does not exist" >&2;              \
 
527
@ENABLE_SK_TRUE@          echo "Please check your ScrollKeeper installation." >&2;              \
 
528
@ENABLE_SK_TRUE@          exit 1; }
 
529
        xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
 
530
 
 
531
.PHONY: omf
 
532
omf: $(_DOC_OMF_ALL)
 
533
 
 
534
.PHONY: po
 
535
po: $(_DOC_POFILES)
 
536
 
 
537
$(_DOC_POFILES):
 
538
        @if ! test -d $(dir $@); then \
 
539
          echo "mkdir $(dir $@)"; \
 
540
          mkdir "$(dir $@)"; \
 
541
        fi
 
542
        @if test ! -f $@ -a -f $(srcdir)/$@; then \
 
543
          echo "cp $(srcdir)/$@ $@"; \
 
544
          cp "$(srcdir)/$@" "$@"; \
 
545
        fi;
 
546
        @docs=; \
 
547
        list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
 
548
          docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
 
549
        done; \
 
550
        if ! test -f $@; then \
 
551
          echo "(cd $(dir $@) && \
 
552
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
553
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
 
554
          (cd $(dir $@) && \
 
555
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
556
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
 
557
        else \
 
558
          echo "(cd $(dir $@) && \
 
559
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
560
          (cd $(dir $@) && \
 
561
            $(_xml2po) -e -u $(notdir $@) $$docs); \
 
562
        fi
 
563
 
 
564
# FIXME: fix the dependancy
 
565
# FIXME: hook xml2po up
 
566
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
 
567
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
 
568
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
 
569
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 
570
        (cd $(dir $@) && \
 
571
          $(_xml2po) -e -p \
 
572
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
 
573
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
 
574
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
 
575
.PHONY: pot
 
576
pot: $(_DOC_POT)
 
577
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
 
578
        $(_xml2po) -e -o $@ $^
 
579
 
 
580
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
581
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
 
582
 
 
583
################################################################################
 
584
 
 
585
all:                                                    \
 
586
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
 
587
        $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
 
588
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
 
589
 
 
590
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
 
591
 
 
592
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
 
593
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
 
594
clean-doc-lc:
 
595
        rm -f $(_DOC_LC_DOCS)
 
596
        @list='$(_DOC_POFILES)'; for po in $$list; do \
 
597
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
 
598
            echo "rm -f $$po"; \
 
599
            rm -f "$$po"; \
 
600
          fi; \
 
601
        done
 
602
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
603
          if test -f "$$lc/.xml2po.mo"; then \
 
604
            echo "rm -f $$lc/.xml2po.mo"; \
 
605
            rm -f "$$lc/.xml2po.mo"; \
 
606
          fi; \
 
607
        done
 
608
clean-doc-dir:
 
609
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
610
          for dir in `find $$lc -depth -type d`; do \
 
611
            if ! test $$dir -ef $(srcdir)/$$dir; then \
 
612
              echo "rmdir $$dir"; \
 
613
              rmdir "$$dir"; \
 
614
           fi; \
 
615
          done; \
 
616
        done
 
617
 
 
618
clean-local:                                            \
 
619
        $(_clean_omf)           $(_clean_dsk)           \
 
620
        $(_clean_lc)            $(_clean_dir)
 
621
distclean-local:                                        \
 
622
        $(_clean_omf)           $(_clean_dsk)           \
 
623
        $(_clean_lc)            $(_clean_dir)
 
624
mostlyclean-local:                                      \
 
625
        $(_clean_omf)           $(_clean_dsk)           \
 
626
        $(_clean_lc)            $(_clean_dir)
 
627
maintainer-clean-local:                                 \
 
628
        $(_clean_omf)           $(_clean_dsk)           \
 
629
        $(_clean_lc)            $(_clean_dir)
 
630
 
 
631
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
 
632
doc-dist-hook:                                  \
 
633
        $(if $(DOC_MODULE),dist-doc-docs)       \
 
634
        $(if $(_DOC_C_FIGURES),dist-doc-figs)   \
 
635
        $(if $(_DOC_OMF_IN),dist-doc-omf)
 
636
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
 
637
 
 
638
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
 
639
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
640
          echo " $(mkinstalldirs) $(distdir)/$$lc"; \
 
641
          $(mkinstalldirs) "$(distdir)/$$lc"; \
 
642
        done
 
643
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
 
644
        for doc in $$list; do \
 
645
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
646
            docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
647
            if ! test -d "$(distdir)/$$docdir"; then \
 
648
              echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
 
649
              $(mkinstalldirs) "$(distdir)/$$docdir"; \
 
650
            fi; \
 
651
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
 
652
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
 
653
        done
 
654
 
 
655
dist-doc-figs: $(_DOC_SRC_FIGURES)
 
656
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
 
657
        for fig in $$list; do \
 
658
          if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
 
659
          if test -f "$$d$$fig"; then \
 
660
            figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
661
            if ! test -d "$(distdir)/$$figdir"; then \
 
662
              echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
 
663
              $(mkinstalldirs) "$(distdir)/$$figdir"; \
 
664
            fi; \
 
665
            echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
 
666
            $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
 
667
          fi; \
 
668
        done;
 
669
 
 
670
dist-doc-omf:
 
671
        @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
672
        echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
 
673
        $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
 
674
 
 
675
dist-doc-dsk:
 
676
        @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
677
        echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
 
678
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
 
679
 
 
680
.PHONY: check-doc-docs check-doc-omf
 
681
check:                                                  \
 
682
        $(if $(DOC_MODULE),check-doc-docs)              \
 
683
        $(if $(_DOC_OMF_IN),check-doc-omf)
 
684
 
 
685
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
686
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
687
          if test -f "$$lc"; \
 
688
            then d=; \
 
689
            xmlpath="$$lc"; \
 
690
          else \
 
691
            d="$(srcdir)/"; \
 
692
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
693
          fi; \
 
694
          echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
 
695
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
 
696
        done
 
697
 
 
698
check-doc-omf: $(_DOC_OMF_ALL)
 
699
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
700
          echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
 
701
          xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
 
702
        done
 
703
 
 
704
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
 
705
install-data-local:                                     \
 
706
        $(if $(DOC_MODULE),install-doc-docs)            \
 
707
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
 
708
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
 
709
        $(if $(_DOC_OMF_IN),install-doc-omf)
 
710
#       $(if $(_DOC_DSK_IN),install-doc-dsk)
 
711
 
 
712
install-doc-docs:
 
713
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
714
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
715
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
 
716
        done
 
717
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
718
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
719
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
720
          docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
 
721
          if ! test -d "$$docdir"; then \
 
722
            echo "$(mkinstalldirs) $$docdir"; \
 
723
            $(mkinstalldirs) "$$docdir"; \
 
724
          fi; \
 
725
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
726
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
 
727
        done
 
728
 
 
729
install-doc-figs:
 
730
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
 
731
          for lc in C $(_DOC_REAL_LINGUAS); do \
 
732
            figsymlink=false; \
 
733
            if test -f "$$lc/$$fig"; then \
 
734
              figfile="$$lc/$$fig"; \
 
735
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
 
736
              figfile="$(srcdir)/$$lc/$$fig"; \
 
737
            else \
 
738
              figsymlink=true; \
 
739
            fi; \
 
740
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
741
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
 
742
            if ! test -d "$$figdir"; then \
 
743
              echo "$(mkinstalldirs) $$figdir"; \
 
744
              $(mkinstalldirs) "$$figdir"; \
 
745
            fi; \
 
746
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
 
747
            if $$figsymlink; then \
 
748
              echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
 
749
              ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
 
750
            else \
 
751
              echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
752
              $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
753
            fi; \
 
754
          done; \
 
755
        done
 
756
 
 
757
install-doc-html:
 
758
        echo install-html
 
759
 
 
760
install-doc-omf:
 
761
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
 
762
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
763
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
764
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
 
765
        done
 
766
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
767
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
768
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
769
        fi;
 
770
 
 
771
install-doc-dsk:
 
772
        echo install-dsk
 
773
 
 
774
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
 
775
uninstall-local:                                        \
 
776
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
 
777
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
 
778
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
 
779
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
 
780
#       $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
 
781
 
 
782
uninstall-doc-docs:
 
783
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
784
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
785
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
786
        done
 
787
 
 
788
uninstall-doc-figs:
 
789
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
 
790
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
791
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
792
        done;
 
793
 
 
794
uninstall-doc-omf:
 
795
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
796
          if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
797
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
798
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
799
          fi; \
 
800
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
801
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
802
        done
 
803
dist-hook: doc-dist-hook
 
804
 
 
805
install-data-local: install-doc-pdf
 
806
install-doc-pdf:
 
807
        for lc in C $(DOC_LINGUAS); do \
 
808
          pdf="$$lc/$(DOC_MODULE).pdf"; \
 
809
          if [ -f "$$pdf" ]; then spdf="$$pdf"; else spdf="$(srcdir)/$$pdf"; fi; \
 
810
          if [ -f "$$spdf" ]; then \
 
811
            $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
812
            $(INSTALL_DATA) "$$spdf" "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$pdf"; \
 
813
          fi; \
 
814
        done
 
815
# Tell versions [3.59,3.63) of GNU make to not export all variables.
 
816
# Otherwise a system limit (for SysV at least) may be exceeded.
 
817
.NOEXPORT: