1
# Makefile.in generated by automake 1.9.6 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005 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
top_srcdir = @top_srcdir@
43
pkgdatadir = $(datadir)/@PACKAGE@
44
pkglibdir = $(libdir)/@PACKAGE@
45
pkgincludedir = $(includedir)/@PACKAGE@
47
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
49
install_sh_DATA = $(install_sh) -c -m 644
50
install_sh_PROGRAM = $(install_sh) -c
51
install_sh_SCRIPT = $(install_sh) -c
52
INSTALL_HEADER = $(INSTALL_DATA)
53
transform = $(program_transform_name)
60
build_triplet = @build@
62
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
63
$(top_srcdir)/gnome-doc-utils.make ChangeLog
65
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
67
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
69
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
70
CONFIG_HEADER = $(top_builddir)/config.h
74
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76
ALL_LINGUAS = @ALL_LINGUAS@
77
AMDEP_FALSE = @AMDEP_FALSE@
78
AMDEP_TRUE = @AMDEP_TRUE@
82
AUTOHEADER = @AUTOHEADER@
86
CATOBJEXT = @CATOBJEXT@
88
CCDEPMODE = @CCDEPMODE@
94
CXXDEPMODE = @CXXDEPMODE@
96
CYGPATH_W = @CYGPATH_W@
97
DATADIRNAME = @DATADIRNAME@
100
DOC_USER_FORMATS = @DOC_USER_FORMATS@
101
DSYMUTIL = @DSYMUTIL@
107
ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
108
ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
112
GCONF2_CFLAGS = @GCONF2_CFLAGS@
113
GCONF2_LIBS = @GCONF2_LIBS@
114
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
115
GLADE2_CFLAGS = @GLADE2_CFLAGS@
116
GLADE2_LIBS = @GLADE2_LIBS@
117
GMOFILES = @GMOFILES@
120
GTK_CFLAGS = @GTK_CFLAGS@
121
GTK_LIBS = @GTK_LIBS@
122
HAVE_GNOME_DOC_UTILS_FALSE = @HAVE_GNOME_DOC_UTILS_FALSE@
123
HAVE_GNOME_DOC_UTILS_TRUE = @HAVE_GNOME_DOC_UTILS_TRUE@
124
HELP_DIR = @HELP_DIR@
125
INSTALL_DATA = @INSTALL_DATA@
126
INSTALL_PROGRAM = @INSTALL_PROGRAM@
127
INSTALL_SCRIPT = @INSTALL_SCRIPT@
128
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129
INSTOBJEXT = @INSTOBJEXT@
130
INTLLIBS = @INTLLIBS@
131
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
132
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
133
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
134
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
135
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
136
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
137
INTLTOOL_MERGE = @INTLTOOL_MERGE@
138
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
139
INTLTOOL_PERL = @INTLTOOL_PERL@
140
INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
141
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
142
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
143
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
144
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
145
INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
146
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
147
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
148
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
149
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
150
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
151
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
152
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
153
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
159
LTLIBOBJS = @LTLIBOBJS@
160
MAKEINFO = @MAKEINFO@
161
MKINSTALLDIRS = @MKINSTALLDIRS@
163
MSGFMT_OPTS = @MSGFMT_OPTS@
164
MSGMERGE = @MSGMERGE@
169
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
170
PACKAGE_NAME = @PACKAGE_NAME@
171
PACKAGE_STRING = @PACKAGE_STRING@
172
PACKAGE_TARNAME = @PACKAGE_TARNAME@
173
PACKAGE_VERSION = @PACKAGE_VERSION@
174
PATH_SEPARATOR = @PATH_SEPARATOR@
175
PKG_CONFIG = @PKG_CONFIG@
178
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
179
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
182
SET_MAKE = @SET_MAKE@
187
XGETTEXT = @XGETTEXT@
188
ac_ct_CC = @ac_ct_CC@
189
ac_ct_CXX = @ac_ct_CXX@
190
ac_ct_F77 = @ac_ct_F77@
191
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
192
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
193
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
194
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
195
am__include = @am__include@
196
am__leading_dot = @am__leading_dot@
197
am__quote = @am__quote@
199
am__untar = @am__untar@
202
build_alias = @build_alias@
203
build_cpu = @build_cpu@
204
build_os = @build_os@
205
build_vendor = @build_vendor@
207
datarootdir = @datarootdir@
210
exec_prefix = @exec_prefix@
212
host_alias = @host_alias@
213
host_cpu = @host_cpu@
215
host_vendor = @host_vendor@
217
includedir = @includedir@
219
install_sh = @install_sh@
221
libexecdir = @libexecdir@
222
localedir = @localedir@
223
localstatedir = @localstatedir@
226
oldincludedir = @oldincludedir@
229
program_transform_name = @program_transform_name@
232
sharedstatedir = @sharedstatedir@
233
sysconfdir = @sysconfdir@
234
target_alias = @target_alias@
235
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
236
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
237
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
238
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
241
_DOC_ABS_SRCDIR = @abs_srcdir@
242
@ENABLE_SK_TRUE@_ENABLE_SK = true
244
################################################################################
246
--stringparam db2omf.basename $(DOC_MODULE) \
247
--stringparam db2omf.format $(3) \
248
--stringparam db2omf.dtd \
249
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
250
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
251
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
252
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
253
--stringparam db2omf.help_dir "$(HELP_DIR)" \
254
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
255
$(if $(_ENABLE_SK), \
256
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
259
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
260
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
261
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
263
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
264
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
269
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
270
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
273
################################################################################
274
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
275
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
276
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
278
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
281
_DOC_C_DOCS_NOENT = \
282
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES)
284
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
285
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
286
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
289
# FIXME: probably have to shell escape to determine the file names
290
_DOC_C_HTML = $(foreach f, \
291
$(shell xsltproc --xinclude \
292
--stringparam db.chunk.basename "$(DOC_MODULE)" \
293
$(_chunks) "C/$(DOC_MODULE).xml"), \
297
###############################################################################
298
_DOC_POFILES = $(if $(DOC_MODULE), \
299
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
301
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
302
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
305
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
306
$(lc)/$(notdir $(inc)) ))
309
# FIXME: probably have to shell escape to determine the file names
311
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
312
$(lc)/$(notdir $(doc)) ))
315
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
316
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
318
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
319
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
322
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
323
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
325
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
327
################################################################################
328
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
329
$(_DOC_C_HTML) $(_DOC_LC_HTML))
331
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
332
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
333
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
334
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
335
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
336
DOC_MODULE = gsynaptics
337
DOC_ENTITIES = legal.xml
344
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
346
case '$(am__configure_deps)' in \
348
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
353
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/Makefile'; \
354
cd $(top_srcdir) && \
355
$(AUTOMAKE) --foreign help/Makefile
357
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
360
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
362
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
363
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
366
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
367
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
369
$(top_srcdir)/configure: $(am__configure_deps)
370
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
371
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
372
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
390
distdir: $(DISTFILES)
391
$(mkdir_p) $(distdir)/..
392
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
393
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
394
list='$(DISTFILES)'; for file in $$list; do \
396
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
397
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
399
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
400
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
401
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
403
$(mkdir_p) "$(distdir)$$dir"; \
407
if test -d $$d/$$file; then \
408
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
409
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
411
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
413
test -f $(distdir)/$$file \
414
|| cp -p $$d/$$file $(distdir)/$$file \
418
$(MAKE) $(AM_MAKEFLAGS) \
419
top_distdir="$(top_distdir)" distdir="$(distdir)" \
426
install-exec: install-exec-am
427
install-data: install-data-am
428
uninstall: uninstall-am
431
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
433
installcheck: installcheck-am
435
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
436
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
437
`test -z '$(STRIP)' || \
438
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
444
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
446
maintainer-clean-generic:
447
@echo "This command is intended for maintainers to use"
448
@echo "it deletes files that may require special tools to rebuild."
451
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
453
distclean: distclean-am
455
distclean-am: clean-am distclean-generic distclean-libtool \
468
install-data-am: install-data-local
472
install-info: install-info-am
478
maintainer-clean: maintainer-clean-am
480
maintainer-clean-am: distclean-am maintainer-clean-generic \
481
maintainer-clean-local
483
mostlyclean: mostlyclean-am
485
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
496
uninstall-am: uninstall-info-am uninstall-local
498
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
499
clean-local dist-hook distclean distclean-generic \
500
distclean-libtool distclean-local distdir dvi dvi-am html \
501
html-am info info-am install install-am install-data \
502
install-data-am install-data-local install-exec \
503
install-exec-am install-info install-info-am install-man \
504
install-strip installcheck installcheck-am installdirs \
505
maintainer-clean maintainer-clean-generic \
506
maintainer-clean-local mostlyclean mostlyclean-generic \
507
mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \
508
uninstall uninstall-am uninstall-info-am uninstall-local
515
$(DOC_H_FILE): $(DOC_H_DOCS);
516
@rm -f $@.tmp; touch $@.tmp;
517
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
518
list='$(DOC_H_DOCS)'; for doc in $$list; do \
519
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
520
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
521
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
523
| 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}}' \
524
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
525
echo ' NULL' >> $@.tmp
528
list='$(DOC_H_DOCS)'; for doc in $$list; do \
529
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
530
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
531
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
532
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
534
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
535
for id in $$ids; do \
536
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
537
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
541
cp $@.tmp $@ && rm -f $@.tmp
544
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
545
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
547
.PHONY: dist-doc-header
548
dist-doc-header: $(DOC_H_FILE)
549
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
550
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
551
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
553
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
555
.PHONY: clean-doc-header
556
clean-local: $(_clean_doc_header)
557
distclean-local: $(_clean_doc_header)
558
mostlyclean-local: $(_clean_doc_header)
559
maintainer-clean-local: $(_clean_doc_header)
565
################################################################################
575
DOC_FORMATS ?= docbook
579
################################################################################
581
_xml2po ?= `which xml2po`
583
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
584
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
585
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
586
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
587
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
588
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
589
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
590
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
592
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
593
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
594
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
595
echo "The file '$(_skcontentslist)' does not exist." >&2; \
596
echo "Please check your ScrollKeeper installation." >&2; \
598
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
600
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
601
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
602
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
603
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
604
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
605
@ENABLE_SK_TRUE@ exit 1; }
606
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
615
@if ! test -d $(dir $@); then \
616
echo "mkdir $(dir $@)"; \
619
@if test ! -f $@ -a -f $(srcdir)/$@; then \
620
echo "cp $(srcdir)/$@ $@"; \
621
cp "$(srcdir)/$@" "$@"; \
624
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
625
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
627
if ! test -f $@; then \
628
echo "(cd $(dir $@) && \
629
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
630
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
632
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
633
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
635
echo "(cd $(dir $@) && \
636
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
638
$(_xml2po) -e -u $(notdir $@) $$docs); \
641
# FIXME: fix the dependancy
642
# FIXME: hook xml2po up
643
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
644
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
645
if ! test -d $(dir $@); then mkdir $(dir $@); fi
646
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
649
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
650
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
651
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
654
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
655
$(_xml2po) -e -o $@ $^
657
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
658
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
660
################################################################################
663
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
664
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
665
$(_DOC_HTML_ALL) $(_DOC_POFILES)
667
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
669
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
670
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
672
rm -f $(_DOC_LC_DOCS)
673
@list='$(_DOC_POFILES)'; for po in $$list; do \
674
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
679
@for lc in C $(_DOC_REAL_LINGUAS); do \
680
if test -f "$$lc/.xml2po.mo"; then \
681
echo "rm -f $$lc/.xml2po.mo"; \
682
rm -f "$$lc/.xml2po.mo"; \
686
@for lc in C $(_DOC_REAL_LINGUAS); do \
687
for dir in `find $$lc -depth -type d`; do \
688
if ! test $$dir -ef $(srcdir)/$$dir; then \
689
echo "rmdir $$dir"; \
696
$(_clean_omf) $(_clean_dsk) \
697
$(_clean_lc) $(_clean_dir)
699
$(_clean_omf) $(_clean_dsk) \
700
$(_clean_lc) $(_clean_dir)
702
$(_clean_omf) $(_clean_dsk) \
703
$(_clean_lc) $(_clean_dir)
704
maintainer-clean-local: \
705
$(_clean_omf) $(_clean_dsk) \
706
$(_clean_lc) $(_clean_dir)
708
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
710
$(if $(DOC_MODULE),dist-doc-docs) \
711
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
712
$(if $(_DOC_OMF_IN),dist-doc-omf)
713
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
715
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
716
@for lc in C $(_DOC_REAL_LINGUAS); do \
717
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
718
$(mkinstalldirs) "$(distdir)/$$lc"; \
720
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
721
for doc in $$list; do \
722
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
723
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
724
if ! test -d "$(distdir)/$$docdir"; then \
725
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
726
$(mkinstalldirs) "$(distdir)/$$docdir"; \
728
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
729
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
732
dist-doc-figs: $(_DOC_SRC_FIGURES)
733
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
734
for fig in $$list; do \
735
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
736
if test -f "$$d$$fig"; then \
737
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
738
if ! test -d "$(distdir)/$$figdir"; then \
739
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
740
$(mkinstalldirs) "$(distdir)/$$figdir"; \
742
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
743
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
748
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
749
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
750
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
753
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
754
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
755
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
757
.PHONY: check-doc-docs check-doc-omf
759
$(if $(DOC_MODULE),check-doc-docs) \
760
$(if $(_DOC_OMF_IN),check-doc-omf)
762
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
763
@for lc in C $(_DOC_REAL_LINGUAS); do \
769
xmlpath="$$lc:$(srcdir)/$$lc"; \
771
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
772
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
775
check-doc-omf: $(_DOC_OMF_ALL)
776
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
777
echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
778
xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
781
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
782
install-data-local: \
783
$(if $(DOC_MODULE),install-doc-docs) \
784
$(if $(_DOC_HTML_ALL),install-doc-html) \
785
$(if $(_DOC_C_FIGURES),install-doc-figs) \
786
$(if $(_DOC_OMF_IN),install-doc-omf)
787
# $(if $(_DOC_DSK_IN),install-doc-dsk)
790
@for lc in C $(_DOC_REAL_LINGUAS); do \
791
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
792
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
794
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
795
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
796
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
797
docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
798
if ! test -d "$$docdir"; then \
799
echo "$(mkinstalldirs) $$docdir"; \
800
$(mkinstalldirs) "$$docdir"; \
802
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
803
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
807
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
808
for lc in C $(_DOC_REAL_LINGUAS); do \
809
if test -f "$$lc/$$fig"; then \
810
figfile="$$lc/$$fig"; \
811
elif test -f "$(srcdir)/$$lc/$$fig"; then \
812
figfile="$(srcdir)/$$lc/$$fig"; \
813
elif test -f "C/$$fig"; then \
816
figfile="$(srcdir)/C/$$fig"; \
818
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
819
figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
820
if ! test -d "$$figdir"; then \
821
echo "$(mkinstalldirs) $$figdir"; \
822
$(mkinstalldirs) "$$figdir"; \
824
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
825
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
826
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
834
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
835
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
836
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
837
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
839
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
840
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
841
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
847
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
849
$(if $(DOC_MODULE),uninstall-doc-docs) \
850
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
851
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
852
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
853
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
856
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
857
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
858
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
862
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
863
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
864
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
868
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
869
if test "x$(_ENABLE_SK)" = "xtrue"; then \
870
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
871
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
873
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
874
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
876
dist-hook: doc-dist-hook
877
# Tell versions [3.59,3.63) of GNU make to not export all variables.
878
# Otherwise a system limit (for SysV at least) may be exceeded.