1
# Makefile.in generated by automake 1.10.2 from Makefile.am.
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.
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
17
# gnome-doc-utils.make - make magic for building documentation
18
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
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.
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.
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.
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.
39
################################################################################
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)
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) \
63
mkinstalldirs = $(install_sh) -d
67
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71
AUTOHEADER = @AUTOHEADER@
74
CYGPATH_W = @CYGPATH_W@
76
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
77
DOC_USER_FORMATS = @DOC_USER_FORMATS@
81
GNOME2_USER_DOCS_CFLAGS = @GNOME2_USER_DOCS_CFLAGS@
82
GNOME2_USER_DOCS_LIBS = @GNOME2_USER_DOCS_LIBS@
85
INSTALL_DATA = @INSTALL_DATA@
86
INSTALL_PROGRAM = @INSTALL_PROGRAM@
87
INSTALL_SCRIPT = @INSTALL_SCRIPT@
88
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
92
LTLIBOBJS = @LTLIBOBJS@
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@
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@
115
am__untar = @am__untar@
117
build_alias = @build_alias@
118
builddir = @builddir@
120
datarootdir = @datarootdir@
123
exec_prefix = @exec_prefix@
124
host_alias = @host_alias@
126
includedir = @includedir@
128
install_sh = @install_sh@
130
libexecdir = @libexecdir@
131
localedir = @localedir@
132
localstatedir = @localstatedir@
135
oldincludedir = @oldincludedir@
138
program_transform_name = @program_transform_name@
141
sharedstatedir = @sharedstatedir@
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)), \
154
_DOC_ABS_SRCDIR = @abs_srcdir@
155
@ENABLE_SK_TRUE@_ENABLE_SK = true
157
################################################################################
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)") \
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))
176
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
177
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
182
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
183
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
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))
191
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
194
_DOC_C_DOCS_NOENT = \
195
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES)
197
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
198
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
199
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
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"), \
210
###############################################################################
211
_DOC_POFILES = $(if $(DOC_MODULE), \
212
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
214
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
215
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
218
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
219
$(lc)/$(notdir $(inc)) ))
222
# FIXME: probably have to shell escape to determine the file names
224
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
225
$(lc)/$(notdir $(doc)) ))
228
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
229
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
231
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
232
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
235
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
236
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
238
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
240
################################################################################
241
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
242
$(_DOC_C_HTML) $(_DOC_LC_HTML))
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
266
DOC_LINGUAS = ca de el es eu fi fr it ja ko oc pa pt sv zh_CN
270
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
272
case '$(am__configure_deps)' in \
274
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
275
&& { if test -f $@; then exit 0; else break; fi; }; \
279
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gnome2-system-admin-guide/Makefile'; \
280
cd $(top_srcdir) && \
281
$(AUTOMAKE) --gnu gnome2-system-admin-guide/Makefile
283
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
286
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
288
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
289
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
292
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
293
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
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
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,/[^/]*$$,,' | \
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; \
325
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
327
test -f $(distdir)/$$file \
328
|| cp -p $$d/$$file $(distdir)/$$file \
332
$(MAKE) $(AM_MAKEFLAGS) \
333
top_distdir="$(top_distdir)" distdir="$(distdir)" \
340
install-exec: install-exec-am
341
install-data: install-data-am
342
uninstall: uninstall-am
345
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
347
installcheck: installcheck-am
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
358
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
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."
365
clean-am: clean-generic clean-local mostlyclean-am
367
distclean: distclean-am
369
distclean-am: clean-am distclean-generic distclean-local
381
install-data-am: install-data-local
383
install-dvi: install-dvi-am
387
install-html: install-html-am
389
install-info: install-info-am
393
install-pdf: install-pdf-am
395
install-ps: install-ps-am
399
maintainer-clean: maintainer-clean-am
401
maintainer-clean-am: distclean-am maintainer-clean-generic \
402
maintainer-clean-local
404
mostlyclean: mostlyclean-am
406
mostlyclean-am: mostlyclean-generic mostlyclean-local
416
uninstall-am: uninstall-local
418
.MAKE: install-am install-strip
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 \
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; \
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
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'`; \
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; \
464
cp $@.tmp $@ && rm -f $@.tmp
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
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)";
476
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
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)
488
################################################################################
498
DOC_FORMATS ?= docbook
502
################################################################################
504
_xml2po ?= `which xml2po`
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
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; \
521
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
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; }
538
@if ! test -d $(dir $@); then \
539
echo "mkdir $(dir $@)"; \
542
@if test ! -f $@ -a -f $(srcdir)/$@; then \
543
echo "cp $(srcdir)/$@ $@"; \
544
cp "$(srcdir)/$@" "$@"; \
547
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
548
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
550
if ! test -f $@; then \
551
echo "(cd $(dir $@) && \
552
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
553
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
555
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
556
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
558
echo "(cd $(dir $@) && \
559
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
561
$(_xml2po) -e -u $(notdir $@) $$docs); \
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; \
572
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
573
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
574
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
577
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
578
$(_xml2po) -e -o $@ $^
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,$@)
583
################################################################################
586
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
587
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
588
$(_DOC_HTML_ALL) $(_DOC_POFILES)
590
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
592
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
593
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
595
rm -f $(_DOC_LC_DOCS)
596
@list='$(_DOC_POFILES)'; for po in $$list; do \
597
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
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"; \
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"; \
619
$(_clean_omf) $(_clean_dsk) \
620
$(_clean_lc) $(_clean_dir)
622
$(_clean_omf) $(_clean_dsk) \
623
$(_clean_lc) $(_clean_dir)
625
$(_clean_omf) $(_clean_dsk) \
626
$(_clean_lc) $(_clean_dir)
627
maintainer-clean-local: \
628
$(_clean_omf) $(_clean_dsk) \
629
$(_clean_lc) $(_clean_dir)
631
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
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)
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"; \
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"; \
651
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
652
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
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"; \
665
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
666
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
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))"
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))"
680
.PHONY: check-doc-docs check-doc-omf
682
$(if $(DOC_MODULE),check-doc-docs) \
683
$(if $(_DOC_OMF_IN),check-doc-omf)
685
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
686
@for lc in C $(_DOC_REAL_LINGUAS); do \
692
xmlpath="$$lc:$(srcdir)/$$lc"; \
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"; \
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; \
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)
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; \
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"; \
725
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
726
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
730
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
731
for lc in C $(_DOC_REAL_LINGUAS); do \
733
if test -f "$$lc/$$fig"; then \
734
figfile="$$lc/$$fig"; \
735
elif test -f "$(srcdir)/$$lc/$$fig"; then \
736
figfile="$(srcdir)/$$lc/$$fig"; \
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"; \
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" ); \
751
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
752
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
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; \
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)"; \
774
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
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)
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"; \
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"; \
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"; \
800
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
801
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
803
dist-hook: doc-dist-hook
805
install-data-local: 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"; \
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.