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 build_triplet
= @build@
58 DIST_COMMON
= $(srcdir)/Makefile.am
$(srcdir)/Makefile.in \
59 $(top_srcdir
)/gnome-doc-utils.make
61 ACLOCAL_M4
= $(top_srcdir
)/aclocal.m4
62 am__aclocal_m4_deps
= $(top_srcdir
)/m4
/gnome-doc-utils.m4 \
63 $(top_srcdir
)/m4
/intltool.m4
$(top_srcdir
)/m4
/libtool.m4 \
64 $(top_srcdir
)/m4
/ltoptions.m4
$(top_srcdir
)/m4
/ltsugar.m4 \
65 $(top_srcdir
)/m4
/ltversion.m4
$(top_srcdir
)/m4
/lt~obsolete.m4 \
66 $(top_srcdir
)/m4
/python.m4
$(top_srcdir
)/acinclude.m4 \
67 $(top_srcdir
)/configure.ac
68 am__configure_deps
= $(am__aclocal_m4_deps
) $(CONFIGURE_DEPENDENCIES
) \
70 mkinstalldirs
= $(SHELL
) $(top_srcdir
)/mkinstalldirs
71 CONFIG_HEADER
= $(top_builddir
)/config.h
75 DISTFILES
= $(DIST_COMMON
) $(DIST_SOURCES
) $(TEXINFOS
) $(EXTRA_DIST
)
77 ACLOCAL_AMFLAGS
= @ACLOCAL_AMFLAGS@
78 ALL_LINGUAS
= @ALL_LINGUAS@
80 AM_CFLAGS
= @AM_CFLAGS@
81 AM_CPPFLAGS
= @AM_CPPFLAGS@
82 AM_LDFLAGS
= @AM_LDFLAGS@
85 AUTOHEADER
= @AUTOHEADER@
88 BUILD_PLUGINS
= @BUILD_PLUGINS@
90 CATOBJEXT
= @CATOBJEXT@
93 CCASDEPMODE
= @CCASDEPMODE@
94 CCASFLAGS
= @CCASFLAGS@
95 CCDEPMODE
= @CCDEPMODE@
99 CYGPATH_W
= @CYGPATH_W@
101 DATADIRNAME
= @DATADIRNAME@
102 DBUS_BINDING_TOOL
= @DBUS_BINDING_TOOL@
103 DBUS_CFLAGS
= @DBUS_CFLAGS@
104 DBUS_LIBS
= @DBUS_LIBS@
105 DBUS_SERVICES_DIR
= @DBUS_SERVICES_DIR@
108 DEPENDENCIES_CFLAGS
= @DEPENDENCIES_CFLAGS@
109 DEPENDENCIES_LIBS
= @DEPENDENCIES_LIBS@
110 DISABLE_DEPRECATED
= @DISABLE_DEPRECATED@
111 DISTCHECK_CONFIGURE_FLAGS
= @DISTCHECK_CONFIGURE_FLAGS@
112 DIST_PLUGINS
= @DIST_PLUGINS@
113 DOC_USER_FORMATS
= @DOC_USER_FORMATS@
114 DSYMUTIL
= @DSYMUTIL@
122 GCONFTOOL
= @GCONFTOOL@
123 GCONF_SCHEMA_CONFIG_SOURCE
= @GCONF_SCHEMA_CONFIG_SOURCE@
124 GCONF_SCHEMA_FILE_DIR
= @GCONF_SCHEMA_FILE_DIR@
125 GETTEXT_PACKAGE
= @GETTEXT_PACKAGE@
126 GLIB_GENMARSHAL
= @GLIB_GENMARSHAL@
127 GMOFILES
= @GMOFILES@
130 HELP_DIR
= @HELP_DIR@
132 INSTALL_DATA
= @INSTALL_DATA@
133 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
134 INSTALL_SCRIPT
= @INSTALL_SCRIPT@
135 INSTALL_STRIP_PROGRAM
= @INSTALL_STRIP_PROGRAM@
136 INSTOBJEXT
= @INSTOBJEXT@
137 INTLLIBS
= @INTLLIBS@
138 INTLTOOL_EXTRACT
= @INTLTOOL_EXTRACT@
139 INTLTOOL_MERGE
= @INTLTOOL_MERGE@
140 INTLTOOL_PERL
= @INTLTOOL_PERL@
141 INTLTOOL_UPDATE
= @INTLTOOL_UPDATE@
144 LIBCANBERRAGTK_CFLAGS
= @LIBCANBERRAGTK_CFLAGS@
145 LIBCANBERRAGTK_LIBS
= @LIBCANBERRAGTK_LIBS@
146 LIBNOTIFY_CFLAGS
= @LIBNOTIFY_CFLAGS@
147 LIBNOTIFY_LIBS
= @LIBNOTIFY_LIBS@
153 LTLIBOBJS
= @LTLIBOBJS@
155 MAKEINFO
= @MAKEINFO@
157 MKINSTALLDIRS
= @MKINSTALLDIRS@
159 MSGFMT_OPTS
= @MSGFMT_OPTS@
160 MSGMERGE
= @MSGMERGE@
166 OPENSSL_CFLAGS
= @OPENSSL_CFLAGS@
167 OPENSSL_LIBS
= @OPENSSL_LIBS@
171 PACKAGE_BUGREPORT
= @PACKAGE_BUGREPORT@
172 PACKAGE_NAME
= @PACKAGE_NAME@
173 PACKAGE_STRING
= @PACKAGE_STRING@
174 PACKAGE_TARNAME
= @PACKAGE_TARNAME@
175 PACKAGE_VERSION
= @PACKAGE_VERSION@
176 PATH_SEPARATOR
= @PATH_SEPARATOR@
178 PERL_CFLAGS
= @PERL_CFLAGS@
179 PERL_LDFLAGS
= @PERL_LDFLAGS@
180 PKG_CONFIG
= @PKG_CONFIG@
183 PO_IN_DATADIR_FALSE
= @PO_IN_DATADIR_FALSE@
184 PO_IN_DATADIR_TRUE
= @PO_IN_DATADIR_TRUE@
186 PYTHON_CFLAGS
= @PYTHON_CFLAGS@
187 PYTHON_EXEC_PREFIX
= @PYTHON_EXEC_PREFIX@
188 PYTHON_EXTRA_LIBS
= @PYTHON_EXTRA_LIBS@
189 PYTHON_INCLUDES
= @PYTHON_INCLUDES@
190 PYTHON_LIBS
= @PYTHON_LIBS@
191 PYTHON_LIB_LOC
= @PYTHON_LIB_LOC@
192 PYTHON_PLATFORM
= @PYTHON_PLATFORM@
193 PYTHON_PREFIX
= @PYTHON_PREFIX@
194 PYTHON_VERSION
= @PYTHON_VERSION@
197 SET_MAKE
= @SET_MAKE@
200 TCL_CFLAGS
= @TCL_CFLAGS@
201 TCL_LIBS
= @TCL_LIBS@
204 WARN_CFLAGS
= @WARN_CFLAGS@
205 XGETTEXT
= @XGETTEXT@
206 abs_builddir
= @abs_builddir@
207 abs_srcdir
= @abs_srcdir@
208 abs_top_builddir
= @abs_top_builddir@
209 abs_top_srcdir
= @abs_top_srcdir@
210 ac_ct_CC
= @ac_ct_CC@
211 ac_ct_DUMPBIN
= @ac_ct_DUMPBIN@
212 am__include
= @am__include@
213 am__leading_dot
= @am__leading_dot@
214 am__quote
= @am__quote@
216 am__untar
= @am__untar@
219 build_alias
= @build_alias@
220 build_cpu
= @build_cpu@
221 build_os
= @build_os@
222 build_vendor
= @build_vendor@
223 builddir
= @builddir@
225 datarootdir
= @datarootdir@
228 exec_prefix = @
exec_prefix@
230 host_alias
= @host_alias@
231 host_cpu
= @host_cpu@
233 host_vendor
= @host_vendor@
235 includedir = @
includedir@
237 install_sh
= @install_sh@
239 libexecdir
= @libexecdir@
240 localedir
= @localedir@
241 localstatedir
= @localstatedir@
245 oldincludedir = @
oldincludedir@
247 pkgpyexecdir
= @pkgpyexecdir@
248 pkgpythondir
= @pkgpythondir@
250 program_transform_name
= @program_transform_name@
252 pyexecdir
= @pyexecdir@
253 pythondir
= @pythondir@
255 sharedstatedir
= @sharedstatedir@
257 sysconfdir
= @sysconfdir@
258 target_alias
= @target_alias@
259 top_build_prefix
= @top_build_prefix@
260 top_builddir
= @top_builddir@
261 top_srcdir
= @top_srcdir@
262 _clean_doc_header
= $(if
$(DOC_H_FILE
),clean-doc-header
)
263 _DOC_REAL_FORMATS
= $(if
$(DOC_USER_FORMATS
),$(DOC_USER_FORMATS
),$(DOC_FORMATS
))
264 _DOC_REAL_LINGUAS
= $(if
$(filter environment
,$(origin LINGUAS
)), \
265 $(filter $(LINGUAS
),$(DOC_LINGUAS
)), \
268 _DOC_ABS_SRCDIR
= @abs_srcdir@
269 @ENABLE_SK_TRUE@_ENABLE_SK
= true
271 ################################################################################
273 --stringparam db2omf.
basename $(DOC_MODULE
) \
274 --stringparam db2omf.format
$(3) \
275 --stringparam db2omf.dtd \
276 $(shell xmllint
--format
$(2) | grep
-h PUBLIC | head
-n
1 \
277 | sed
-e
's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
278 --stringparam db2omf.lang
$(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
279 --stringparam db2omf.omf_dir
"$(OMF_DIR)" \
280 --stringparam db2omf.help_dir
"$(HELP_DIR)" \
281 --stringparam db2omf.omf_in
"$(_DOC_OMF_IN)" \
282 $(if
$(_ENABLE_SK
), \
283 --stringparam db2omf.scrollkeeper_cl
"$(_skcontentslist)") \
286 _DOC_OMF_IN
= $(if
$(DOC_MODULE
),$(wildcard $(_DOC_ABS_SRCDIR
)/$(DOC_MODULE
).omf.in
))
287 _DOC_OMF_DB
= $(if
$(_DOC_OMF_IN
), \
288 $(foreach lc
,C
$(_DOC_REAL_LINGUAS
),$(DOC_MODULE
)-$(lc
).omf
))
290 _DOC_OMF_HTML
= $(if
$(_DOC_OMF_IN
), \
291 $(foreach lc
,C
$(_DOC_REAL_LINGUAS
),$(DOC_MODULE
)-html-
$(lc
).omf
))
296 $(if
$(filter docbook
,$(_DOC_REAL_FORMATS
)),$(_DOC_OMF_DB
)) \
297 $(if
$(filter html HTML
,$(_DOC_REAL_FORMATS
)),$(_DOC_OMF_HTML
))
300 ################################################################################
301 _DOC_C_MODULE
= $(if
$(DOC_MODULE
),C
/$(DOC_MODULE
).xml
)
302 _DOC_C_ENTITIES
= $(foreach ent
,$(DOC_ENTITIES
),C
/$(ent
))
303 _DOC_C_INCLUDES
= $(foreach inc
,$(DOC_INCLUDES
),C
/$(inc
))
305 $(_DOC_C_ENTITIES
) $(_DOC_C_INCLUDES
) \
308 _DOC_C_DOCS_NOENT
= \
309 $(_DOC_C_MODULE
) $(_DOC_C_INCLUDES
)
311 _DOC_C_FIGURES
= $(if
$(DOC_FIGURES
), \
312 $(foreach fig
,$(DOC_FIGURES
),C
/$(fig
)), \
313 $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C
/figures
/*.png
)))
316 # FIXME: probably have to shell escape to determine the file names
317 _DOC_C_HTML
= $(foreach f
, \
318 $(shell xsltproc
--xinclude \
319 --stringparam db.chunk.
basename "$(DOC_MODULE)" \
320 $(_chunks
) "C/$(DOC_MODULE).xml"), \
324 ###############################################################################
325 _DOC_POFILES
= $(if
$(DOC_MODULE
), \
326 $(foreach lc
,$(_DOC_REAL_LINGUAS
),$(lc
)/$(lc
).po
))
328 _DOC_LC_MODULES
= $(if
$(DOC_MODULE
), \
329 $(foreach lc
,$(_DOC_REAL_LINGUAS
),$(lc
)/$(DOC_MODULE
).xml
))
332 $(foreach lc
,$(_DOC_REAL_LINGUAS
),$(foreach inc
,$(_DOC_C_INCLUDES
), \
333 $(lc
)/$(notdir $(inc
)) ))
336 # FIXME: probably have to shell escape to determine the file names
338 $(foreach lc
,$(_DOC_REAL_LINGUAS
),$(foreach doc
,$(_DOC_C_HTML
), \
339 $(lc
)/$(notdir $(doc
)) ))
342 $(_DOC_LC_MODULES
) $(_DOC_LC_INCLUDES
) \
343 $(if
$(filter html HTML
,$(_DOC_REAL_FORMATS
)),$(_DOC_LC_HTML
))
345 _DOC_LC_FIGURES
= $(foreach lc
,$(_DOC_REAL_LINGUAS
), \
346 $(patsubst C
/%,$(lc
)/%,$(_DOC_C_FIGURES
)) )
349 $(foreach fig
,$(_DOC_C_FIGURES
), $(foreach lc
,C
$(_DOC_REAL_LINGUAS
), \
350 $(wildcard $(srcdir)/$(lc
)/$(patsubst C
/%,%,$(fig
))) ))
352 _DOC_POT
= $(if
$(DOC_MODULE
),$(DOC_MODULE
).pot
)
354 ################################################################################
355 _DOC_HTML_ALL
= $(if
$(filter html HTML
,$(_DOC_REAL_FORMATS
)), \
356 $(_DOC_C_HTML
) $(_DOC_LC_HTML
))
358 _DOC_HTML_TOPS
= $(foreach lc
,C
$(_DOC_REAL_LINGUAS
),$(lc
)/$(DOC_MODULE
).xhtml
)
359 _clean_omf
= $(if
$(_DOC_OMF_IN
),clean-doc-omf
)
360 _clean_dsk
= $(if
$(_DOC_DSK_IN
),clean-doc-dsk
)
361 _clean_lc
= $(if
$(_DOC_REAL_LINGUAS
),clean-doc-lc
)
362 _clean_dir
= $(if
$(DOC_MODULE
),clean-doc-dir
)
363 DOC_MODULE
= xchat-gnome
364 DOC_ENTITIES
= legal.xml
366 DOC_FIGURES
= figures
/xchat-gnome_main_window.png
367 DOC_LINGUAS
= ca de es fr it oc pt_BR sv th
371 $(srcdir)/Makefile.in
: @MAINTAINER_MODE_TRUE@
$(srcdir)/Makefile.am
$(top_srcdir
)/gnome-doc-utils.make
$(am__configure_deps
)
373 case
'$(am__configure_deps)' in \
375 ( cd
$(top_builddir
) && $(MAKE
) $(AM_MAKEFLAGS
) am--refresh
) \
376 && { if
test -f
$@
; then exit
0; else break
; fi
; }; \
380 echo
' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/Makefile'; \
381 cd
$(top_srcdir
) && \
382 $(AUTOMAKE
) --foreign help
/Makefile
384 Makefile
: $(srcdir)/Makefile.in
$(top_builddir
)/config.status
387 cd
$(top_builddir
) && $(MAKE
) $(AM_MAKEFLAGS
) am--refresh
;; \
389 echo
' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
390 cd
$(top_builddir
) && $(SHELL
) .
/config.status
$(subdir
)/$@
$(am__depfiles_maybe
);; \
393 $(top_builddir
)/config.status
: $(top_srcdir
)/configure
$(CONFIG_STATUS_DEPENDENCIES
)
394 cd
$(top_builddir
) && $(MAKE
) $(AM_MAKEFLAGS
) am--refresh
396 $(top_srcdir
)/configure
: @MAINTAINER_MODE_TRUE@
$(am__configure_deps
)
397 cd
$(top_builddir
) && $(MAKE
) $(AM_MAKEFLAGS
) am--refresh
398 $(ACLOCAL_M4
): @MAINTAINER_MODE_TRUE@
$(am__aclocal_m4_deps
)
399 cd
$(top_builddir
) && $(MAKE
) $(AM_MAKEFLAGS
) am--refresh
413 distdir
: $(DISTFILES
)
414 @srcdirstrip
=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
415 topsrcdirstrip
=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
416 list
='$(DISTFILES)'; \
417 dist_files
=`for file in $$list; do echo $$file; done | \
418 sed -e "s|^$$srcdirstrip/||;t" \
419 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
420 case
$$dist_files in \
421 */*) $(MKDIR_P
) `echo "$$dist_files" | \
422 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
425 for file in
$$dist_files; do \
426 if
test -f
$$file ||
test -d
$$file; then d
=.
; else d
=$(srcdir); fi
; \
427 if
test -d
$$d/$$file; then \
428 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
429 if
test -d
$(srcdir)/$$file && test $$d != $(srcdir); then \
430 cp
-pR
$(srcdir)/$$file $(distdir
)$$dir || exit
1; \
432 cp
-pR
$$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
)
467 maintainer-clean-generic
:
468 @echo
"This command is intended for maintainers to use"
469 @echo
"it deletes files that may require special tools to rebuild."
472 clean-am
: clean-generic clean-libtool clean-local mostlyclean-am
474 distclean: distclean-am
476 distclean-am
: clean-am distclean-generic distclean-local
488 install-data-am
: install-data-local
490 install-dvi
: install-dvi-am
494 install-html
: install-html-am
496 install-info
: install-info-am
500 install-pdf
: install-pdf-am
502 install-ps
: install-ps-am
506 maintainer-clean
: maintainer-clean-am
508 maintainer-clean-am
: distclean-am maintainer-clean-generic \
509 maintainer-clean-local
511 mostlyclean: mostlyclean-am
513 mostlyclean-am
: mostlyclean-generic mostlyclean-libtool \
524 uninstall-am
: uninstall-local
526 .MAKE
: install-am install-strip
528 .PHONY
: all all-am
check check-am
clean clean-generic clean-libtool \
529 clean-local dist-hook
distclean distclean-generic \
530 distclean-libtool distclean-local distdir
dvi dvi-am html \
531 html-am
info info-am
install install-am install-data \
532 install-data-am install-data-local install-dvi install-dvi-am \
533 install-exec install-exec-am install-html install-html-am \
534 install-info install-info-am install-man install-pdf \
535 install-pdf-am install-ps install-ps-am install-strip \
536 installcheck installcheck-am
installdirs maintainer-clean \
537 maintainer-clean-generic maintainer-clean-local
mostlyclean \
538 mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
539 pdf-am ps ps-am
uninstall uninstall-am uninstall-local
546 $(DOC_H_FILE
): $(DOC_H_DOCS
);
547 @
rm -f
$@.tmp
; touch
$@.tmp
;
548 echo
'const gchar* documentation_credits[] = {' >> $@.tmp
549 list
='$(DOC_H_DOCS)'; for doc in
$$list; do \
550 xmlpath
="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
551 if
! test -f
"$$doc"; then doc
="$(srcdir)/$$doc"; fi
; \
552 xsltproc
--path
"$$xmlpath" $(_credits
) $$doc; \
554 | awk
'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
555 | sed
-e
's/\\/\\\\/' -e
's/"/\\"/' -e
's/\(.*\)/\t"\1",/' >> $@.tmp
556 echo
' NULL' >> $@.tmp
559 list
='$(DOC_H_DOCS)'; for doc in
$$list; do \
560 xmlpath
="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
561 if
! test -f
"$$doc"; then doc
="$(srcdir)/$$doc"; fi
; \
562 docid
=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
563 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
565 ids
=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
566 for id in
$$ids; do \
567 echo
'#define HELP_'`echo $$docid`'_'`echo $$id \
568 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp
; \
572 cp
$@.tmp
$@
&& rm -f
$@.tmp
575 @HAVE_GNOME_DOC_UTILS_FALSE@ @echo
"*** GNOME Doc Utils must be installed in order to make dist"
576 @HAVE_GNOME_DOC_UTILS_FALSE@ @false
578 .PHONY
: dist-doc-header
579 dist-doc-header
: $(DOC_H_FILE
)
580 @if
test -f
"$(DOC_H_FILE)"; then d
=; else d
="$(srcdir)/"; fi
; \
581 echo
"$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
582 $(INSTALL_DATA
) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
584 doc-dist-hook
: dist-check-gdu
$(if
$(DOC_H_FILE
),dist-doc-header
)
586 .PHONY
: clean-doc-header
587 clean-local
: $(_clean_doc_header
)
588 distclean-local
: $(_clean_doc_header
)
589 mostlyclean-local
: $(_clean_doc_header
)
590 maintainer-clean-local
: $(_clean_doc_header
)
596 ################################################################################
606 DOC_FORMATS ?
= docbook
610 ################################################################################
612 _xml2po ?
= `which xml2po`
614 _db2html ?
= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
615 _db2omf ?
= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
616 _chunks ?
= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome
/xslt
/docbook
/utils
/chunks.xsl
617 _credits ?
= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome
/xslt
/docbook
/utils
/credits.xsl
618 _ids ?
= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome
/xslt
/docbook
/utils
/ids.xsl
619 @ENABLE_SK_TRUE@_skpkgdatadir ?
= `scrollkeeper-config --pkgdatadir`
620 @ENABLE_SK_TRUE@_sklocalstatedir ?
= `scrollkeeper-config --pkglocalstatedir`
621 @ENABLE_SK_TRUE@_skcontentslist ?
= $(_skpkgdatadir
)/Templates
/C
/scrollkeeper_cl.xml
623 $(_DOC_OMF_DB
) : $(_DOC_OMF_IN
)
624 $(_DOC_OMF_DB
) : $(DOC_MODULE
)-%.omf
: %/$(DOC_MODULE
).xml
625 @
test "x$(_ENABLE_SK)" != "xtrue" -o
-f
"$(_skcontentslist)" ||
{ \
626 echo
"The file '$(_skcontentslist)' does not exist." >&2; \
627 echo
"Please check your ScrollKeeper installation." >&2; \
629 xsltproc
-o
$@
$(call db2omf_args
,$@
,$<,'docbook') ||
{ rm -f
"$@"; exit
1; }
631 $(_DOC_OMF_HTML
) : $(_DOC_OMF_IN
)
632 $(_DOC_OMF_HTML
) : $(DOC_MODULE
)-html-
%.omf
: %/$(DOC_MODULE
).xml
633 @ENABLE_SK_TRUE@ @
test "x$(_ENABLE_SK)" != "xtrue" -o
-f
"$(_skcontentslist)" ||
{ \
634 @ENABLE_SK_TRUE@ echo
"The file '$(_skcontentslist)' does not exist" >&2; \
635 @ENABLE_SK_TRUE@ echo
"Please check your ScrollKeeper installation." >&2; \
636 @ENABLE_SK_TRUE@ exit
1; }
637 xsltproc
-o
$@
$(call db2omf_args
,$@
,$<,'xhtml') ||
{ rm -f
"$@"; exit
1; }
646 @if
! test -d
$(dir $@
); then \
647 echo
"mkdir $(dir $@)"; \
650 @if
test ! -f
$@
-a
-f
$(srcdir)/$@
; then \
651 echo
"cp $(srcdir)/$@ $@"; \
652 cp
"$(srcdir)/$@" "$@"; \
655 list
='$(_DOC_C_DOCS_NOENT)'; for doc in
$$list; do \
656 docs
="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
658 if
! test -f
$@
; then \
659 echo
"(cd $(dir $@) && \
660 $(_xml2po) -e $$docs > $(notdir $@).tmp && \
661 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
663 $(_xml2po
) -e
$$docs > $(notdir $@
).tmp
&& \
664 cp
$(notdir $@
).tmp
$(notdir $@
) && rm -f
$(notdir $@
).tmp
); \
666 echo
"(cd $(dir $@) && \
667 $(_xml2po) -e -u $(notdir $@) $$docs)"; \
669 $(_xml2po
) -e
-u
$(notdir $@
) $$docs); \
672 # FIXME: fix the dependancy
673 # FIXME: hook xml2po up
674 $(_DOC_LC_DOCS
) : $(_DOC_POFILES
)
675 $(_DOC_LC_DOCS
) : $(_DOC_C_DOCS
)
676 if
! test -d
$(dir $@
); then mkdir
$(dir $@
); fi
677 if
[ -f
"C/$(notdir $@)" ]; then d
="../"; else d
="$(_DOC_ABS_SRCDIR)/"; fi
; \
680 "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
681 "$${d}C/$(notdir $@)" > $(notdir $@
).tmp
&& \
682 cp
$(notdir $@
).tmp
$(notdir $@
) && rm -f
$(notdir $@
).tmp
)
685 $(_DOC_POT
): $(_DOC_C_DOCS_NOENT
)
686 $(_xml2po
) -e
-o
$@
$^
688 $(_DOC_HTML_TOPS
): $(_DOC_C_DOCS
) $(_DOC_LC_DOCS
)
689 xsltproc
-o
$@
--xinclude
--param db.chunk.chunk_top
"false()" --stringparam db.chunk.
basename "$(DOC_MODULE)" --stringparam db.chunk.extension
".xhtml" $(_db2html
) $(patsubst %.xhtml
,%.xml
,$@
)
691 ################################################################################
694 $(_DOC_C_DOCS
) $(_DOC_LC_DOCS
) \
695 $(_DOC_OMF_ALL
) $(_DOC_DSK_ALL
) \
696 $(_DOC_HTML_ALL
) $(_DOC_POFILES
)
698 .PHONY
: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
700 clean-doc-omf
: ; rm -f
$(_DOC_OMF_DB
) $(_DOC_OMF_HTML
)
701 clean-doc-dsk
: ; rm -f
$(_DOC_DSK_DB
) $(_DOC_DSK_HTML
)
703 rm -f
$(_DOC_LC_DOCS
)
704 @list
='$(_DOC_POFILES)'; for po in
$$list; do \
705 if
! test "$$po" -ef
"$(srcdir)/$$po"; then \
710 @for lc in C
$(_DOC_REAL_LINGUAS
); do \
711 if
test -f
"$$lc/.xml2po.mo"; then \
712 echo
"rm -f $$lc/.xml2po.mo"; \
713 rm -f
"$$lc/.xml2po.mo"; \
717 @for lc in C
$(_DOC_REAL_LINGUAS
); do \
718 for
dir in
`find $$lc -depth -type d`; do \
719 if
! test $$dir -ef
$(srcdir)/$$dir; then \
720 echo
"rmdir $$dir"; \
727 $(_clean_omf
) $(_clean_dsk
) \
728 $(_clean_lc
) $(_clean_dir
)
730 $(_clean_omf
) $(_clean_dsk
) \
731 $(_clean_lc
) $(_clean_dir
)
733 $(_clean_omf
) $(_clean_dsk
) \
734 $(_clean_lc
) $(_clean_dir
)
735 maintainer-clean-local
: \
736 $(_clean_omf
) $(_clean_dsk
) \
737 $(_clean_lc
) $(_clean_dir
)
739 .PHONY
: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
741 $(if
$(DOC_MODULE
),dist-doc-docs
) \
742 $(if
$(_DOC_C_FIGURES
),dist-doc-figs
) \
743 $(if
$(_DOC_OMF_IN
),dist-doc-omf
)
744 # $(if $(_DOC_DSK_IN),dist-doc-dsk)
746 dist-doc-docs
: $(_DOC_C_DOCS
) $(_DOC_LC_DOCS
) $(_DOC_POFILES
)
747 @for lc in C
$(_DOC_REAL_LINGUAS
); do \
748 echo
" $(mkinstalldirs) $(distdir)/$$lc"; \
749 $(mkinstalldirs
) "$(distdir)/$$lc"; \
751 @list
='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
752 for doc in
$$list; do \
753 if
test -f
"$$doc"; then d
=; else d
="$(srcdir)/"; fi
; \
754 docdir
=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
755 if
! test -d
"$(distdir)/$$docdir"; then \
756 echo
"$(mkinstalldirs) $(distdir)/$$docdir"; \
757 $(mkinstalldirs
) "$(distdir)/$$docdir"; \
759 echo
"$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
760 $(INSTALL_DATA
) "$$d$$doc" "$(distdir)/$$doc"; \
763 dist-doc-figs
: $(_DOC_SRC_FIGURES
)
764 @list
='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
765 for fig in
$$list; do \
766 if
test -f
"$$fig"; then d
=; else d
="$(srcdir)/"; fi
; \
767 if
test -f
"$$d$$fig"; then \
768 figdir
=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
769 if
! test -d
"$(distdir)/$$figdir"; then \
770 echo
"$(mkinstalldirs) $(distdir)/$$figdir"; \
771 $(mkinstalldirs
) "$(distdir)/$$figdir"; \
773 echo
"$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
774 $(INSTALL_DATA
) "$$d$$fig" "$(distdir)/$$fig"; \
779 @if
test -f
"$(_DOC_OMF_IN)"; then d
=; else d
="$(srcdir)/"; fi
; \
780 echo
"$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
781 $(INSTALL_DATA
) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
784 @if
test -f
"$(_DOC_DSK_IN)"; then d
=; else d
="$(srcdir)/"; fi
; \
785 echo
"$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
786 $(INSTALL_DATA
) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
788 .PHONY
: check-doc-docs check-doc-omf
790 $(if
$(DOC_MODULE
),check-doc-docs
) \
791 $(if
$(_DOC_OMF_IN
),check-doc-omf
)
793 check-doc-docs
: $(_DOC_C_DOCS
) $(_DOC_LC_DOCS
)
794 @for lc in C
$(_DOC_REAL_LINGUAS
); do \
800 xmlpath
="$$lc:$(srcdir)/$$lc"; \
802 echo
"xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
803 xmllint
--noout
--noent
--path
"$$xmlpath" --xinclude
--postvalid
"$$d$$lc/$(DOC_MODULE).xml"; \
806 check-doc-omf
: $(_DOC_OMF_ALL
)
807 @list
='$(_DOC_OMF_ALL)'; for omf in
$$list; do \
808 echo
"xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
809 xmllint
--noout
--xinclude
--dtdvalid
'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
812 .PHONY
: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
813 install-data-local
: \
814 $(if
$(DOC_MODULE
),install-doc-docs
) \
815 $(if
$(_DOC_HTML_ALL
),install-doc-html
) \
816 $(if
$(_DOC_C_FIGURES
),install-doc-figs
) \
817 $(if
$(_DOC_OMF_IN
),install-doc-omf
)
818 # $(if $(_DOC_DSK_IN),install-doc-dsk)
821 @for lc in C
$(_DOC_REAL_LINGUAS
); do \
822 echo
"$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
823 $(mkinstalldirs
) $(DESTDIR
)$(HELP_DIR
)/$(DOC_MODULE
)/$$lc; \
825 @list
='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in
$$list; do \
826 if
test -f
"$$doc"; then d
=; else d
="$(srcdir)/"; fi
; \
827 docdir
="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
828 docdir
="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
829 if
! test -d
"$$docdir"; then \
830 echo
"$(mkinstalldirs) $$docdir"; \
831 $(mkinstalldirs
) "$$docdir"; \
833 echo
"$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
834 $(INSTALL_DATA
) $$d$$doc $(DESTDIR
)$(HELP_DIR
)/$(DOC_MODULE
)/$$doc; \
838 @list
='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in
$$list; do \
839 for lc in C
$(_DOC_REAL_LINGUAS
); do \
841 if
test -f
"$$lc/$$fig"; then \
842 figfile
="$$lc/$$fig"; \
843 elif
test -f
"$(srcdir)/$$lc/$$fig"; then \
844 figfile
="$(srcdir)/$$lc/$$fig"; \
848 figdir
="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
849 figdir
="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
850 if
! test -d
"$$figdir"; then \
851 echo
"$(mkinstalldirs) $$figdir"; \
852 $(mkinstalldirs
) "$$figdir"; \
854 figbase
=`echo $$fig | sed -e 's/^.*\///'`; \
855 if
$$figsymlink; then \
856 echo
"cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
857 ( cd
"$$figdir" && $(LN_S
) -f
"../../C/$$fig" "$$figbase" ); \
859 echo
"$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
860 $(INSTALL_DATA
) "$$figfile" "$$figdir$$figbase"; \
869 $(mkinstalldirs
) $(DESTDIR
)$(OMF_DIR
)/$(DOC_MODULE
)
870 @list
='$(_DOC_OMF_ALL)'; for omf in
$$list; do \
871 echo
"$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
872 $(INSTALL_DATA
) $$omf $(DESTDIR
)$(OMF_DIR
)/$(DOC_MODULE
)/$$omf; \
874 @if
test "x$(_ENABLE_SK)" = "xtrue"; then \
875 echo
"scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
876 scrollkeeper-update
-p
"$(DESTDIR)$(_sklocalstatedir)" -o
"$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
882 .PHONY
: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
884 $(if
$(DOC_MODULE
),uninstall-doc-docs
) \
885 $(if
$(_DOC_HTML_ALL
),uninstall-doc-html
) \
886 $(if
$(_DOC_C_FIGURES
),uninstall-doc-figs
) \
887 $(if
$(_DOC_OMF_IN
),uninstall-doc-omf
)
888 # $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
891 @list
='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in
$$list; do \
892 echo
" rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
893 rm -f
"$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
897 @list
='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in
$$list; do \
898 echo
"rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
899 rm -f
"$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
903 @list
='$(_DOC_OMF_ALL)'; for omf in
$$list; do \
904 if
test "x$(_ENABLE_SK)" = "xtrue"; then \
905 echo
"scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
906 scrollkeeper-uninstall
-p
"$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
908 echo
"rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
909 rm -f
"$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
911 dist-hook
: doc-dist-hook
912 # Tell versions [3.59,3.63) of GNU make to not export all variables.
913 # Otherwise a system limit (for SysV at least) may be exceeded.