1
# Makefile.in generated by automake 1.11.1 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7
# This Makefile.in is free software; the Free Software Foundation
8
# gives unlimited permission to copy and/or distribute it,
9
# with or without modifications, as long as this notice is preserved.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18
# gnome-doc-utils.make - make magic for building documentation
19
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
21
# This program is free software; you can redistribute it and/or modify
22
# it under the terms of the GNU General Public License as published by
23
# the Free Software Foundation; either version 2 of the License, or
24
# (at your option) any later version.
26
# This program is distributed in the hope that it will be useful,
27
# but WITHOUT ANY WARRANTY; without even the implied warranty of
28
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
# GNU General Public License for more details.
31
# You should have received a copy of the GNU General Public License
32
# along with this program; if not, write to the Free Software Foundation,
33
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35
# As a special exception to the GNU General Public License, if you
36
# distribute this file as part of a program that contains a
37
# configuration script generated by Autoconf, you may include it under
38
# the same distribution terms that you use for the rest of that program.
40
################################################################################
42
pkgdatadir = $(datadir)/@PACKAGE@
43
pkgincludedir = $(includedir)/@PACKAGE@
44
pkglibdir = $(libdir)/@PACKAGE@
45
pkglibexecdir = $(libexecdir)/@PACKAGE@
46
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
47
install_sh_DATA = $(install_sh) -c -m 644
48
install_sh_PROGRAM = $(install_sh) -c
49
install_sh_SCRIPT = $(install_sh) -c
50
INSTALL_HEADER = $(INSTALL_DATA)
51
transform = $(program_transform_name)
58
build_triplet = @build@
60
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
61
$(top_srcdir)/gnome-doc-utils.make ChangeLog
63
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
64
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
65
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
67
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
68
CONFIG_HEADER = $(top_builddir)/sensors-applet/config.h
70
CONFIG_CLEAN_VPATH_FILES =
71
AM_V_GEN = $(am__v_GEN_$(V))
72
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
73
am__v_GEN_0 = @echo " GEN " $@;
74
AM_V_at = $(am__v_at_$(V))
75
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
79
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
81
ALL_LINGUAS = @ALL_LINGUAS@
83
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
85
ATICONFIG_EXE = @ATICONFIG_EXE@
87
AUTOHEADER = @AUTOHEADER@
90
CAIRO_CFLAGS = @CAIRO_CFLAGS@
91
CAIRO_LIBS = @CAIRO_LIBS@
93
CATOBJEXT = @CATOBJEXT@
95
CCDEPMODE = @CCDEPMODE@
99
CYGPATH_W = @CYGPATH_W@
100
DATADIRNAME = @DATADIRNAME@
101
DBUSGLIB_CFLAGS = @DBUSGLIB_CFLAGS@
102
DBUSGLIB_LIBS = @DBUSGLIB_LIBS@
105
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
107
DOC_USER_FORMATS = @DOC_USER_FORMATS@
108
DSYMUTIL = @DSYMUTIL@
116
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
117
GLIB_CFLAGS = @GLIB_CFLAGS@
118
GLIB_LIBS = @GLIB_LIBS@
119
GMOFILES = @GMOFILES@
121
GNOME_CFLAGS = @GNOME_CFLAGS@
122
GNOME_LIBS = @GNOME_LIBS@
124
GTK_CFLAGS = @GTK_CFLAGS@
125
GTK_LIBS = @GTK_LIBS@
126
HELP_DIR = @HELP_DIR@
128
INSTALL_DATA = @INSTALL_DATA@
129
INSTALL_PROGRAM = @INSTALL_PROGRAM@
130
INSTALL_SCRIPT = @INSTALL_SCRIPT@
131
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
132
INSTOBJEXT = @INSTOBJEXT@
133
INTLLIBS = @INTLLIBS@
134
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
135
INTLTOOL_MERGE = @INTLTOOL_MERGE@
136
INTLTOOL_PERL = @INTLTOOL_PERL@
137
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
140
LIBATASMART_CFLAGS = @LIBATASMART_CFLAGS@
141
LIBATASMART_LIBS = @LIBATASMART_LIBS@
142
LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
143
LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
145
LIBPANEL_APPLET_DIR = @LIBPANEL_APPLET_DIR@
147
LIBSENSORS_CFLAGS = @LIBSENSORS_CFLAGS@
148
LIBSENSORS_LIBS = @LIBSENSORS_LIBS@
152
LTLIBOBJS = @LTLIBOBJS@
154
MAKEINFO = @MAKEINFO@
155
MANIFEST_TOOL = @MANIFEST_TOOL@
157
MKINSTALLDIRS = @MKINSTALLDIRS@
159
MSGFMT_OPTS = @MSGFMT_OPTS@
160
MSGMERGE = @MSGMERGE@
163
NVIDIA_CFLAGS = @NVIDIA_CFLAGS@
164
NVIDIA_LIBS = @NVIDIA_LIBS@
171
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
172
PACKAGE_NAME = @PACKAGE_NAME@
173
PACKAGE_STRING = @PACKAGE_STRING@
174
PACKAGE_TARNAME = @PACKAGE_TARNAME@
175
PACKAGE_URL = @PACKAGE_URL@
176
PACKAGE_VERSION = @PACKAGE_VERSION@
177
PATH_SEPARATOR = @PATH_SEPARATOR@
178
PKG_CONFIG = @PKG_CONFIG@
179
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
180
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
181
PLUGIN_LIBTOOL_FLAGS = @PLUGIN_LIBTOOL_FLAGS@
184
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
185
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
188
SET_MAKE = @SET_MAKE@
193
WARN_CFLAGS = @WARN_CFLAGS@
194
XGETTEXT = @XGETTEXT@
195
XSLTPROC = @XSLTPROC@
196
abs_builddir = @abs_builddir@
197
abs_srcdir = @abs_srcdir@
198
abs_top_builddir = @abs_top_builddir@
199
abs_top_srcdir = @abs_top_srcdir@
200
ac_ct_AR = @ac_ct_AR@
201
ac_ct_CC = @ac_ct_CC@
202
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
203
am__include = @am__include@
204
am__leading_dot = @am__leading_dot@
205
am__quote = @am__quote@
207
am__untar = @am__untar@
210
build_alias = @build_alias@
211
build_cpu = @build_cpu@
212
build_os = @build_os@
213
build_vendor = @build_vendor@
214
builddir = @builddir@
216
datarootdir = @datarootdir@
219
exec_prefix = @exec_prefix@
221
host_alias = @host_alias@
222
host_cpu = @host_cpu@
224
host_vendor = @host_vendor@
226
includedir = @includedir@
228
install_sh = @install_sh@
230
libexecdir = @libexecdir@
231
localedir = @localedir@
232
localstatedir = @localstatedir@
235
oldincludedir = @oldincludedir@
238
program_transform_name = @program_transform_name@
241
sharedstatedir = @sharedstatedir@
243
sysconfdir = @sysconfdir@
244
target_alias = @target_alias@
245
top_build_prefix = @top_build_prefix@
246
top_builddir = @top_builddir@
247
top_srcdir = @top_srcdir@
248
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
249
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
250
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
251
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
254
_DOC_ABS_SRCDIR = @abs_srcdir@
255
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
256
@ENABLE_SK_TRUE@_ENABLE_SK = true
258
################################################################################
260
--stringparam db2omf.basename $(DOC_MODULE) \
261
--stringparam db2omf.format $(3) \
262
--stringparam db2omf.dtd \
263
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
264
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
265
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
266
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
267
--stringparam db2omf.help_dir "$(HELP_DIR)" \
268
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
269
$(if $(_ENABLE_SK), \
270
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
273
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
274
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
275
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
277
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
278
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
283
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
284
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
287
################################################################################
288
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
289
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
290
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
291
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
293
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
294
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
296
_DOC_C_DOCS_NOENT = \
297
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
300
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
301
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
302
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
305
# FIXME: probably have to shell escape to determine the file names
306
_DOC_C_HTML = $(foreach f, \
307
$(shell xsltproc --xinclude \
308
--stringparam db.chunk.basename "$(DOC_MODULE)" \
309
$(_chunks) "C/$(DOC_MODULE).xml"), \
313
###############################################################################
314
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
315
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
317
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
318
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
319
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
322
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
323
$(lc)/$(notdir $(page)) ))
326
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
327
$(lc)/$(notdir $(inc)) ))
330
# FIXME: probably have to shell escape to determine the file names
332
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
333
$(lc)/$(notdir $(doc)) ))
336
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
337
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
339
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
340
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
343
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
344
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
346
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
348
################################################################################
349
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
350
$(_DOC_C_HTML) $(_DOC_LC_HTML))
352
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
353
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
354
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
355
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
356
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
357
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
358
DOC_MODULE = sensors-applet
359
DOC_ENTITIES = legal.xml
360
DOC_FIGURES = figures/applet_in_panel.png
366
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
368
case '$(am__configure_deps)' in \
370
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
371
&& { if test -f $@; then exit 0; else break; fi; }; \
375
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
376
$(am__cd) $(top_srcdir) && \
377
$(AUTOMAKE) --gnu help/Makefile
379
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
382
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
384
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
385
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
388
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
389
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
391
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
392
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
393
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
394
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
395
$(am__aclocal_m4_deps):
409
distdir: $(DISTFILES)
410
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412
list='$(DISTFILES)'; \
413
dist_files=`for file in $$list; do echo $$file; done | \
414
sed -e "s|^$$srcdirstrip/||;t" \
415
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416
case $$dist_files in \
417
*/*) $(MKDIR_P) `echo "$$dist_files" | \
418
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
421
for file in $$dist_files; do \
422
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423
if test -d $$d/$$file; then \
424
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425
if test -d "$(distdir)/$$file"; then \
426
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
428
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
429
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
430
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
432
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
434
test -f "$(distdir)/$$file" \
435
|| cp -p $$d/$$file "$(distdir)/$$file" \
439
$(MAKE) $(AM_MAKEFLAGS) \
440
top_distdir="$(top_distdir)" distdir="$(distdir)" \
447
install-exec: install-exec-am
448
install-data: install-data-am
449
uninstall: uninstall-am
452
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
454
installcheck: installcheck-am
456
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
457
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
458
`test -z '$(STRIP)' || \
459
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
465
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
466
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
468
maintainer-clean-generic:
469
@echo "This command is intended for maintainers to use"
470
@echo "it deletes files that may require special tools to rebuild."
473
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
475
distclean: distclean-am
477
distclean-am: clean-am distclean-generic distclean-local
491
install-data-am: install-data-local
493
install-dvi: install-dvi-am
499
install-html: install-html-am
503
install-info: install-info-am
509
install-pdf: install-pdf-am
513
install-ps: install-ps-am
519
maintainer-clean: maintainer-clean-am
521
maintainer-clean-am: distclean-am maintainer-clean-generic \
522
maintainer-clean-local
524
mostlyclean: mostlyclean-am
526
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
537
uninstall-am: uninstall-local
539
.MAKE: install-am install-strip
541
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
542
clean-local dist-hook distclean distclean-generic \
543
distclean-libtool distclean-local distdir dvi dvi-am html \
544
html-am info info-am install install-am install-data \
545
install-data-am install-data-local install-dvi install-dvi-am \
546
install-exec install-exec-am install-html install-html-am \
547
install-info install-info-am install-man install-pdf \
548
install-pdf-am install-ps install-ps-am install-strip \
549
installcheck installcheck-am installdirs maintainer-clean \
550
maintainer-clean-generic maintainer-clean-local mostlyclean \
551
mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
552
pdf-am ps ps-am uninstall uninstall-am uninstall-local
559
$(DOC_H_FILE): $(DOC_H_DOCS);
560
@rm -f $@.tmp; touch $@.tmp;
561
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
562
list='$(DOC_H_DOCS)'; for doc in $$list; do \
563
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
564
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
565
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
567
| 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}}' \
568
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
569
echo ' NULL' >> $@.tmp
572
list='$(DOC_H_DOCS)'; for doc in $$list; do \
573
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
574
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
575
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
576
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
578
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
579
for id in $$ids; do \
580
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
581
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
585
cp $@.tmp $@ && rm -f $@.tmp
588
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
589
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
591
.PHONY: dist-doc-header
592
dist-doc-header: $(DOC_H_FILE)
593
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
594
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
595
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
597
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
599
.PHONY: clean-doc-header
600
clean-local: $(_clean_doc_header)
601
distclean-local: $(_clean_doc_header)
602
mostlyclean-local: $(_clean_doc_header)
603
maintainer-clean-local: $(_clean_doc_header)
609
################################################################################
623
DOC_FORMATS ?= docbook
627
################################################################################
629
_xml2po ?= `which xml2po`
631
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
632
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
633
_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
634
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
635
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
636
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
637
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
638
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
639
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
641
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
642
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
643
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
644
echo "The file '$(_skcontentslist)' does not exist." >&2; \
645
echo "Please check your ScrollKeeper installation." >&2; \
647
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
649
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
650
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
651
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
652
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
653
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
654
@ENABLE_SK_TRUE@ exit 1; }
655
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
667
@if ! test -d $(dir $@); then \
668
echo "mkdir $(dir $@)"; \
671
@if test ! -f $@ -a -f $(srcdir)/$@; then \
672
echo "cp $(srcdir)/$@ $@"; \
673
cp "$(srcdir)/$@" "$@"; \
676
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
677
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
679
if ! test -f $@; then \
680
echo "(cd $(dir $@) && \
681
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
682
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
684
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
685
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
687
echo "(cd $(dir $@) && \
688
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
690
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
693
$(_DOC_MOFILES): %.mo: %.po
694
@if ! test -d $(dir $@); then \
695
echo "mkdir $(dir $@)"; \
700
# FIXME: fix the dependancy
701
# FIXME: hook xml2po up
702
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
703
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
704
if ! test -d $(dir $@); then mkdir $(dir $@); fi
705
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
706
mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
707
if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
709
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
710
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
711
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
714
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
715
$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
717
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
718
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
720
################################################################################
723
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
724
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
725
$(_DOC_HTML_ALL) $(_DOC_POFILES)
727
################################################################################
729
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
731
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
732
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
734
rm -f $(_DOC_LC_DOCS)
735
rm -f $(_DOC_MOFILES)
736
@list='$(_DOC_POFILES)'; for po in $$list; do \
737
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
742
# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
743
@for lc in C $(_DOC_REAL_LINGUAS); do \
744
if test -f "$$lc/.xml2po.mo"; then \
745
echo "rm -f $$lc/.xml2po.mo"; \
746
rm -f "$$lc/.xml2po.mo"; \
749
clean-doc-dir: clean-doc-lc
750
@for lc in C $(_DOC_REAL_LINGUAS); do \
751
for dir in `find $$lc -depth -type d`; do \
752
if ! test $$dir -ef $(srcdir)/$$dir; then \
753
echo "rmdir $$dir"; \
760
$(_clean_omf) $(_clean_dsk) \
761
$(_clean_lc) $(_clean_dir)
763
$(_clean_omf) $(_clean_dsk) \
764
$(_clean_lc) $(_clean_dir)
766
$(_clean_omf) $(_clean_dsk) \
767
$(_clean_lc) $(_clean_dir)
768
maintainer-clean-local: \
769
$(_clean_omf) $(_clean_dsk) \
770
$(_clean_lc) $(_clean_dir)
772
################################################################################
774
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
776
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
777
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
778
$(if $(_DOC_OMF_IN),dist-doc-omf)
779
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
781
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
782
@for lc in C $(_DOC_REAL_LINGUAS); do \
783
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
784
$(mkinstalldirs) "$(distdir)/$$lc"; \
786
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
787
for doc in $$list; do \
788
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
789
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
790
if ! test -d "$(distdir)/$$docdir"; then \
791
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
792
$(mkinstalldirs) "$(distdir)/$$docdir"; \
794
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
795
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
798
dist-doc-figs: $(_DOC_SRC_FIGURES)
799
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
800
for fig in $$list; do \
801
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
802
if test -f "$$d$$fig"; then \
803
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
804
if ! test -d "$(distdir)/$$figdir"; then \
805
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
806
$(mkinstalldirs) "$(distdir)/$$figdir"; \
808
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
809
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
814
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
815
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
816
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
819
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
820
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
821
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
823
################################################################################
825
.PHONY: check-doc-docs check-doc-omf
827
$(if $(DOC_MODULE),check-doc-docs) \
828
$(if $(DOC_ID),check-doc-pages) \
829
$(if $(_DOC_OMF_IN),check-doc-omf)
831
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
832
@for lc in C $(_DOC_REAL_LINGUAS); do \
838
xmlpath="$$lc:$(srcdir)/$$lc"; \
840
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
841
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
844
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
845
for lc in C $(_DOC_REAL_LINGUAS); do \
851
xmlpath="$$lc:$(srcdir)/$$lc"; \
853
for page in $(DOC_PAGES); do \
854
echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
855
xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
859
check-doc-omf: $(_DOC_OMF_ALL)
860
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
861
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
862
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
865
################################################################################
867
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
869
install-data-local: \
870
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
871
$(if $(_DOC_HTML_ALL),install-doc-html) \
872
$(if $(_DOC_C_FIGURES),install-doc-figs) \
873
$(if $(_DOC_OMF_IN),install-doc-omf)
874
# $(if $(_DOC_DSK_IN),install-doc-dsk)
877
@for lc in C $(_DOC_REAL_LINGUAS); do \
878
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
879
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
881
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
882
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
883
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
884
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
885
if ! test -d "$$docdir"; then \
886
echo "$(mkinstalldirs) $$docdir"; \
887
$(mkinstalldirs) "$$docdir"; \
889
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
890
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
894
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
895
for lc in C $(_DOC_REAL_LINGUAS); do \
897
if test -f "$$lc/$$fig"; then \
898
figfile="$$lc/$$fig"; \
899
elif test -f "$(srcdir)/$$lc/$$fig"; then \
900
figfile="$(srcdir)/$$lc/$$fig"; \
904
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
905
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
906
if ! test -d "$$figdir"; then \
907
echo "$(mkinstalldirs) $$figdir"; \
908
$(mkinstalldirs) "$$figdir"; \
910
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
911
if $$figsymlink; then \
912
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
913
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
915
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
916
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
925
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
926
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
927
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
928
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
930
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
931
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
932
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
938
################################################################################
940
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
942
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
943
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
944
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
945
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
946
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
949
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
950
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
951
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
955
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
956
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
957
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
961
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
962
if test "x$(_ENABLE_SK)" = "xtrue"; then \
963
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
964
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
966
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
967
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
969
dist-hook: doc-dist-hook
971
# Tell versions [3.59,3.63) of GNU make to not export all variables.
972
# Otherwise a system limit (for SysV at least) may be exceeded.