1# Makefile.in generated by automake 1.16.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2018 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = { \
18  if test -z '$(MAKELEVEL)'; then \
19    false; \
20  elif test -n '$(MAKE_HOST)'; then \
21    true; \
22  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23    true; \
24  else \
25    false; \
26  fi; \
27}
28am__make_running_with_option = \
29  case $${target_option-} in \
30      ?) ;; \
31      *) echo "am__make_running_with_option: internal error: invalid" \
32              "target option '$${target_option-}' specified" >&2; \
33         exit 1;; \
34  esac; \
35  has_opt=no; \
36  sane_makeflags=$$MAKEFLAGS; \
37  if $(am__is_gnu_make); then \
38    sane_makeflags=$$MFLAGS; \
39  else \
40    case $$MAKEFLAGS in \
41      *\\[\ \	]*) \
42        bs=\\; \
43        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
45    esac; \
46  fi; \
47  skip_next=no; \
48  strip_trailopt () \
49  { \
50    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51  }; \
52  for flg in $$sane_makeflags; do \
53    test $$skip_next = yes && { skip_next=no; continue; }; \
54    case $$flg in \
55      *=*|--*) continue;; \
56        -*I) strip_trailopt 'I'; skip_next=yes;; \
57      -*I?*) strip_trailopt 'I';; \
58        -*O) strip_trailopt 'O'; skip_next=yes;; \
59      -*O?*) strip_trailopt 'O';; \
60        -*l) strip_trailopt 'l'; skip_next=yes;; \
61      -*l?*) strip_trailopt 'l';; \
62      -[dEDm]) skip_next=yes;; \
63      -[JT]) skip_next=yes;; \
64    esac; \
65    case $$flg in \
66      *$$target_option*) has_opt=yes; break;; \
67    esac; \
68  done; \
69  test $$has_opt = yes
70am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72pkgdatadir = $(datadir)/@PACKAGE@
73pkgincludedir = $(includedir)/@PACKAGE@
74pkglibdir = $(libdir)/@PACKAGE@
75pkglibexecdir = $(libexecdir)/@PACKAGE@
76am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77install_sh_DATA = $(install_sh) -c -m 644
78install_sh_PROGRAM = $(install_sh) -c
79install_sh_SCRIPT = $(install_sh) -c
80INSTALL_HEADER = $(INSTALL_DATA)
81transform = $(program_transform_name)
82NORMAL_INSTALL = :
83PRE_INSTALL = :
84POST_INSTALL = :
85NORMAL_UNINSTALL = :
86PRE_UNINSTALL = :
87POST_UNINSTALL = :
88build_triplet = @build@
89host_triplet = @host@
90subdir = doc
91ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92am__aclocal_m4_deps = $(top_srcdir)/config.classpath \
93	$(top_srcdir)/configure.ac
94am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
95	$(ACLOCAL_M4)
96DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/version.texi \
97	$(srcdir)/stamp-vti $(am__DIST_COMMON)
98mkinstalldirs = $(install_sh) -d
99CONFIG_CLEAN_FILES =
100CONFIG_CLEAN_VPATH_FILES =
101AM_V_P = $(am__v_P_@AM_V@)
102am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
103am__v_P_0 = false
104am__v_P_1 = :
105AM_V_GEN = $(am__v_GEN_@AM_V@)
106am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
107am__v_GEN_0 = @echo "  GEN     " $@;
108am__v_GEN_1 =
109AM_V_at = $(am__v_at_@AM_V@)
110am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111am__v_at_0 = @
112am__v_at_1 =
113SOURCES =
114DIST_SOURCES =
115AM_V_DVIPS = $(am__v_DVIPS_@AM_V@)
116am__v_DVIPS_ = $(am__v_DVIPS_@AM_DEFAULT_V@)
117am__v_DVIPS_0 = @echo "  DVIPS   " $@;
118am__v_DVIPS_1 =
119AM_V_MAKEINFO = $(am__v_MAKEINFO_@AM_V@)
120am__v_MAKEINFO_ = $(am__v_MAKEINFO_@AM_DEFAULT_V@)
121am__v_MAKEINFO_0 = @echo "  MAKEINFO" $@;
122am__v_MAKEINFO_1 =
123AM_V_INFOHTML = $(am__v_INFOHTML_@AM_V@)
124am__v_INFOHTML_ = $(am__v_INFOHTML_@AM_DEFAULT_V@)
125am__v_INFOHTML_0 = @echo "  INFOHTML" $@;
126am__v_INFOHTML_1 =
127AM_V_TEXI2DVI = $(am__v_TEXI2DVI_@AM_V@)
128am__v_TEXI2DVI_ = $(am__v_TEXI2DVI_@AM_DEFAULT_V@)
129am__v_TEXI2DVI_0 = @echo "  TEXI2DVI" $@;
130am__v_TEXI2DVI_1 =
131AM_V_TEXI2PDF = $(am__v_TEXI2PDF_@AM_V@)
132am__v_TEXI2PDF_ = $(am__v_TEXI2PDF_@AM_DEFAULT_V@)
133am__v_TEXI2PDF_0 = @echo "  TEXI2PDF" $@;
134am__v_TEXI2PDF_1 =
135AM_V_texinfo = $(am__v_texinfo_@AM_V@)
136am__v_texinfo_ = $(am__v_texinfo_@AM_DEFAULT_V@)
137am__v_texinfo_0 = -q
138am__v_texinfo_1 =
139AM_V_texidevnull = $(am__v_texidevnull_@AM_V@)
140am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@)
141am__v_texidevnull_0 = > /dev/null
142am__v_texidevnull_1 =
143INFO_DEPS = kawa.info
144TEXINFO_TEX = $(top_srcdir)/build-aux/texinfo.tex
145am__TEXINFO_TEX_DIR = $(top_srcdir)/build-aux
146PDFS = kawa.pdf
147PSS = kawa.ps
148TEXINFOS = kawa.texi
149TEXI2DVI = texi2dvi
150MAKEINFOHTML = $(MAKEINFO) --html
151AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
152DVIPS = dvips
153am__can_run_installinfo = \
154  case $$AM_UPDATE_INFO_DIR in \
155    n|no|NO) false;; \
156    *) (install-info --version) >/dev/null 2>&1;; \
157  esac
158am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)"
159am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
160am__vpath_adj = case $$p in \
161    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
162    *) f=$$p;; \
163  esac;
164am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
165am__install_max = 40
166am__nobase_strip_setup = \
167  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
168am__nobase_strip = \
169  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
170am__nobase_list = $(am__nobase_strip_setup); \
171  for p in $$list; do echo "$$p $$p"; done | \
172  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
173  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
174    if (++n[$$2] == $(am__install_max)) \
175      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
176    END { for (dir in files) print dir, files[dir] }'
177am__base_list = \
178  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
179  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
180am__uninstall_files_from_dir = { \
181  test -z "$$files" \
182    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
183    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
184         $(am__cd) "$$dir" && rm -f $$files; }; \
185  }
186man1dir = $(mandir)/man1
187NROFF = nroff
188MANS = $(man1_MANS)
189am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
190am__DIST_COMMON = $(kawa_TEXINFOS) $(srcdir)/Makefile.in \
191	$(top_srcdir)/build-aux/mdate-sh \
192	$(top_srcdir)/build-aux/texinfo.tex ChangeLog mdate-sh \
193	texinfo.tex
194DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
195ACLOCAL = @ACLOCAL@
196AMTAR = @AMTAR@
197AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
198AUTOCONF = @AUTOCONF@
199AUTOHEADER = @AUTOHEADER@
200AUTOMAKE = @AUTOMAKE@
201AWK = @AWK@
202BYTECODE_VERSION = @BYTECODE_VERSION@
203CLASSPATH_SEPARATOR = @CLASSPATH_SEPARATOR@
204CYGPATH_W = @CYGPATH_W@
205DEFS = @DEFS@
206DOCBOOK_STYLESHEETS_PATH = @DOCBOOK_STYLESHEETS_PATH@
207ECHO_C = @ECHO_C@
208ECHO_N = @ECHO_N@
209ECHO_T = @ECHO_T@
210FIND = @FIND@
211INSTALL = @INSTALL@
212INSTALL_DATA = @INSTALL_DATA@
213INSTALL_PROGRAM = @INSTALL_PROGRAM@
214INSTALL_SCRIPT = @INSTALL_SCRIPT@
215INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
216JAVA = @JAVA@
217JAVAC = @JAVAC@
218JAVACFLAGS = @JAVACFLAGS@
219JAVA_SOURCE = @JAVA_SOURCE@
220JAVA_SOURCE_SELECTOR = @JAVA_SOURCE_SELECTOR@
221JEMACS_VERSION = @JEMACS_VERSION@
222KAWA_SCRIPT = @KAWA_SCRIPT@
223KAWA_SHELL = @KAWA_SHELL@
224LIBOBJS = @LIBOBJS@
225LIBS = @LIBS@
226LN_S = @LN_S@
227LTLIBOBJS = @LTLIBOBJS@
228MAINT = @MAINT@
229MAKEINFO = @MAKEINFO@
230MKDIR_P = @MKDIR_P@
231PACKAGE = @PACKAGE@
232PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
233PACKAGE_NAME = @PACKAGE_NAME@
234PACKAGE_STRING = @PACKAGE_STRING@
235PACKAGE_TARNAME = @PACKAGE_TARNAME@
236PACKAGE_URL = @PACKAGE_URL@
237PACKAGE_VERSION = @PACKAGE_VERSION@
238PATH_SEPARATOR = @PATH_SEPARATOR@
239SAX2_PREPROCESS = @SAX2_PREPROCESS@
240SET_MAKE = @SET_MAKE@
241SHELL = @SHELL@
242STRIP = @STRIP@
243TOP_BUILDDIR = @TOP_BUILDDIR@
244VERSION = @VERSION@
245WITH_DOMTERM_ARG = @WITH_DOMTERM_ARG@
246WITH_GSON_PATH = @WITH_GSON_PATH@
247WITH_JAVAFX_ARG = @WITH_JAVAFX_ARG@
248WITH_JAVAFX_MODULE = @WITH_JAVAFX_MODULE@
249WITH_JLINE3 = @WITH_JLINE3@
250WITH_JLINE_PATH = @WITH_JLINE_PATH@
251WITH_LSP4J_JSONRPC_PATH = @WITH_LSP4J_JSONRPC_PATH@
252WITH_LSP4J_PATH = @WITH_LSP4J_PATH@
253WITH_SERVLET_ARG = @WITH_SERVLET_ARG@
254XQTS_PATH = @XQTS_PATH@
255abs_builddir = @abs_builddir@
256abs_srcdir = @abs_srcdir@
257abs_top_builddir = @abs_top_builddir@
258abs_top_srcdir = @abs_top_srcdir@
259am__leading_dot = @am__leading_dot@
260am__tar = @am__tar@
261am__untar = @am__untar@
262bindir = @bindir@
263build = @build@
264build_alias = @build_alias@
265build_cpu = @build_cpu@
266build_os = @build_os@
267build_vendor = @build_vendor@
268builddir = @builddir@
269conf_classpath = @conf_classpath@
270datadir = @datadir@
271datarootdir = @datarootdir@
272docdir = @docdir@
273dvidir = @dvidir@
274exec_prefix = @exec_prefix@
275filesep = @filesep@
276host = @host@
277host_alias = @host_alias@
278host_cpu = @host_cpu@
279host_os = @host_os@
280host_vendor = @host_vendor@
281htmldir = @htmldir@
282includedir = @includedir@
283infodir = @infodir@
284install_sh = @install_sh@
285libdir = @libdir@
286libexecdir = @libexecdir@
287localedir = @localedir@
288localstatedir = @localstatedir@
289mandir = @mandir@
290mkdir_p = @mkdir_p@
291oldincludedir = @oldincludedir@
292pathsep = @pathsep@
293pdfdir = @pdfdir@
294prefix = @prefix@
295program_transform_name = @program_transform_name@
296psdir = @psdir@
297run_classpath = @run_classpath@
298sbindir = @sbindir@
299sharedstatedir = @sharedstatedir@
300srcdir = @srcdir@
301subdirs = @subdirs@
302sysconfdir = @sysconfdir@
303target_alias = @target_alias@
304top_build_prefix = @top_build_prefix@
305top_builddir = @top_builddir@
306top_srcdir = @top_srcdir@
307SUFFIXES = .pdf
308# We cannot build kawa.dvi because of the png-only images
309DVIS =
310KAWA_HTMLDIR = kawa-html
311KAWA_HTMLS = $(KAWA_HTMLDIR)/index.html
312HTMLS = $(KAWA_HTMLS)
313TEXI2PDF = texi2pdf
314man1_MANS = kawa.man qexo.man
315DOC_IMAGES = \
316  images/border-1.png \
317  images/fill-circ-1.png \
318  images/image-scaled-1.png \
319  images/image-cat-1a.png \
320  images/image-cat-1b.png \
321  images/padding-1.png \
322  images/paint-circ-1.png \
323  images/paint-circ-2.png \
324  images/paint-circ-3.png \
325  images/paint-circ-4.png \
326  images/polygon-1.png \
327  images/polyline-1.png \
328  images/re-center-1.png \
329  images/re-center-2.png \
330  images/show-draw-1.png \
331  images/show-draw-2.png \
332  images/show-draw-3.png \
333  images/domterm-pictures-1.png
334
335EXTRA_DIST = scm2java.html kawa.man qexo.man mdate-sh +default+ README-epub \
336  style/docbook-to-html.xsl style/kawa-epub.xsl style/kawa.xsl \
337  style/kawa-1col.css style/kawa-ebook.css style/kawa-l.css \
338  style/kawa-r.css style/kawa.css style/top-navbar.css \
339  style/kawa-logo.png $(DOC_IMAGES)
340
341info_TEXINFOS = kawa.texi
342kawa_TEXINFOS = news.texi
343MOSTLYCLEANFILES = kawa.xml \
344  kawa.vr kawa.aux kawa.fn kawa.log kawa.cp kawa.toc \
345  kawa.cps kawa.fns kawa.vrs
346
347MAINTAINERCLEANFILES = kawa.txt *.info
348HTML_HOME = $$HOME/public_html
349XSLT = xsltproc
350HTML_TARGET_DIRECTORY = $(builddir)/web
351DOCBOOK_XSL_DIR = @DOCBOOK_STYLESHEETS_PATH@
352all: all-am
353
354.SUFFIXES:
355.SUFFIXES: .pdf .dvi .ps .texi
356$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
357	@for dep in $?; do \
358	  case '$(am__configure_deps)' in \
359	    *$$dep*) \
360	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
361	        && { if test -f $@; then exit 0; else break; fi; }; \
362	      exit 1;; \
363	  esac; \
364	done; \
365	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
366	$(am__cd) $(top_srcdir) && \
367	  $(AUTOMAKE) --foreign doc/Makefile
368Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
369	@case '$?' in \
370	  *config.status*) \
371	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
372	  *) \
373	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
374	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
375	esac;
376
377$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
378	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
379
380$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
381	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
382$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
383	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
384$(am__aclocal_m4_deps):
385
386kawa.info: kawa.texi $(srcdir)/version.texi $(kawa_TEXINFOS)
387	$(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
388	rm -rf $$backupdir && mkdir $$backupdir && \
389	if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
390	  for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
391	    if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
392	  done; \
393	else :; fi && \
394	if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
395	 -o $@ `test -f 'kawa.texi' || echo '$(srcdir)/'`kawa.texi; \
396	then \
397	  rc=0; \
398	else \
399	  rc=$$?; \
400	  $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
401	fi; \
402	rm -rf $$backupdir; exit $$rc
403
404kawa.dvi: kawa.texi $(srcdir)/version.texi $(kawa_TEXINFOS)
405	$(AM_V_TEXI2DVI)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
406	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
407	$(TEXI2DVI) $(AM_V_texinfo) --build-dir=$(@:.dvi=.t2d) -o $@ $(AM_V_texidevnull) \
408	`test -f 'kawa.texi' || echo '$(srcdir)/'`kawa.texi
409
410kawa.pdf: kawa.texi $(srcdir)/version.texi $(kawa_TEXINFOS)
411	$(AM_V_TEXI2PDF)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
412	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
413	$(TEXI2PDF) $(AM_V_texinfo) --build-dir=$(@:.pdf=.t2p) -o $@ $(AM_V_texidevnull) \
414	`test -f 'kawa.texi' || echo '$(srcdir)/'`kawa.texi
415
416kawa.html: kawa.texi $(srcdir)/version.texi $(kawa_TEXINFOS)
417	$(AM_V_MAKEINFO)rm -rf $(@:.html=.htp)
418	$(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
419	 -o $(@:.html=.htp) `test -f 'kawa.texi' || echo '$(srcdir)/'`kawa.texi; \
420	then \
421	  rm -rf $@ && mv $(@:.html=.htp) $@; \
422	else \
423	  rm -rf $(@:.html=.htp); exit 1; \
424	fi
425$(srcdir)/version.texi: @MAINTAINER_MODE_TRUE@ $(srcdir)/stamp-vti
426$(srcdir)/stamp-vti: kawa.texi $(top_srcdir)/configure
427	@(dir=.; test -f ./kawa.texi || dir=$(srcdir); \
428	set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/kawa.texi`; \
429	echo "@set UPDATED $$1 $$2 $$3"; \
430	echo "@set UPDATED-MONTH $$2 $$3"; \
431	echo "@set EDITION $(VERSION)"; \
432	echo "@set VERSION $(VERSION)") > vti.tmp$$$$ && \
433	(cmp -s vti.tmp$$$$ $(srcdir)/version.texi \
434	  || (echo "Updating $(srcdir)/version.texi" && \
435	      cp vti.tmp$$$$ $(srcdir)/version.texi.tmp$$$$ && \
436	      mv $(srcdir)/version.texi.tmp$$$$ $(srcdir)/version.texi)) && \
437	rm -f vti.tmp$$$$ $(srcdir)/version.texi.$$$$
438	@cp $(srcdir)/version.texi $@
439
440mostlyclean-vti:
441	-rm -f vti.tmp* $(srcdir)/version.texi.tmp*
442
443maintainer-clean-vti:
444@MAINTAINER_MODE_TRUE@	-rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
445.dvi.ps:
446	$(AM_V_DVIPS)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
447	$(DVIPS) $(AM_V_texinfo) -o $@ $<
448
449uninstall-dvi-am:
450	@$(NORMAL_UNINSTALL)
451	@list='$(DVIS)'; test -n "$(dvidir)" || list=; \
452	for p in $$list; do \
453	  $(am__strip_dir) \
454	  echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
455	  rm -f "$(DESTDIR)$(dvidir)/$$f"; \
456	done
457
458uninstall-html-am:
459	@$(NORMAL_UNINSTALL)
460	@list='$(HTMLS)'; test -n "$(htmldir)" || list=; \
461	for p in $$list; do \
462	  $(am__strip_dir) \
463	  echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
464	  rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
465	done
466
467uninstall-info-am:
468	@$(PRE_UNINSTALL)
469	@if test -d '$(DESTDIR)$(infodir)' && $(am__can_run_installinfo); then \
470	  list='$(INFO_DEPS)'; \
471	  for file in $$list; do \
472	    relfile=`echo "$$file" | sed 's|^.*/||'`; \
473	    echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
474	    if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
475	    then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
476	  done; \
477	else :; fi
478	@$(NORMAL_UNINSTALL)
479	@list='$(INFO_DEPS)'; \
480	for file in $$list; do \
481	  relfile=`echo "$$file" | sed 's|^.*/||'`; \
482	  relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
483	  (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \
484	     echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
485	     rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
486	   else :; fi); \
487	done
488
489uninstall-pdf-am:
490	@$(NORMAL_UNINSTALL)
491	@list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
492	for p in $$list; do \
493	  $(am__strip_dir) \
494	  echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
495	  rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
496	done
497
498uninstall-ps-am:
499	@$(NORMAL_UNINSTALL)
500	@list='$(PSS)'; test -n "$(psdir)" || list=; \
501	for p in $$list; do \
502	  $(am__strip_dir) \
503	  echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
504	  rm -f "$(DESTDIR)$(psdir)/$$f"; \
505	done
506
507dist-info: $(INFO_DEPS)
508	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
509	list='$(INFO_DEPS)'; \
510	for base in $$list; do \
511	  case $$base in \
512	    $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
513	  esac; \
514	  if test -f $$base; then d=.; else d=$(srcdir); fi; \
515	  base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
516	  for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
517	    if test -f $$file; then \
518	      relfile=`expr "$$file" : "$$d/\(.*\)"`; \
519	      test -f "$(distdir)/$$relfile" || \
520		cp -p $$file "$(distdir)/$$relfile"; \
521	    else :; fi; \
522	  done; \
523	done
524
525mostlyclean-aminfo:
526	-rm -rf kawa.t2d kawa.t2p
527
528clean-aminfo:
529	-test -z "kawa.dvi kawa.pdf kawa.ps kawa.html" \
530	|| rm -rf kawa.dvi kawa.pdf kawa.ps kawa.html
531
532maintainer-clean-aminfo:
533	@list='$(INFO_DEPS)'; for i in $$list; do \
534	  i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \
535	  echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \
536	  rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
537	done
538install-man1: $(man1_MANS)
539	@$(NORMAL_INSTALL)
540	@list1='$(man1_MANS)'; \
541	list2=''; \
542	test -n "$(man1dir)" \
543	  && test -n "`echo $$list1$$list2`" \
544	  || exit 0; \
545	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
546	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
547	{ for i in $$list1; do echo "$$i"; done;  \
548	if test -n "$$list2"; then \
549	  for i in $$list2; do echo "$$i"; done \
550	    | sed -n '/\.1[a-z]*$$/p'; \
551	fi; \
552	} | while read p; do \
553	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
554	  echo "$$d$$p"; echo "$$p"; \
555	done | \
556	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
557	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
558	sed 'N;N;s,\n, ,g' | { \
559	list=; while read file base inst; do \
560	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
561	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
562	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
563	  fi; \
564	done; \
565	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
566	while read files; do \
567	  test -z "$$files" || { \
568	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
569	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
570	done; }
571
572uninstall-man1:
573	@$(NORMAL_UNINSTALL)
574	@list='$(man1_MANS)'; test -n "$(man1dir)" || exit 0; \
575	files=`{ for i in $$list; do echo "$$i"; done; \
576	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
577	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
578	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
579tags TAGS:
580
581ctags CTAGS:
582
583cscope cscopelist:
584
585
586distdir: $(BUILT_SOURCES)
587	$(MAKE) $(AM_MAKEFLAGS) distdir-am
588
589distdir-am: $(DISTFILES)
590	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
591	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
592	list='$(DISTFILES)'; \
593	  dist_files=`for file in $$list; do echo $$file; done | \
594	  sed -e "s|^$$srcdirstrip/||;t" \
595	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
596	case $$dist_files in \
597	  */*) $(MKDIR_P) `echo "$$dist_files" | \
598			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
599			   sort -u` ;; \
600	esac; \
601	for file in $$dist_files; do \
602	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
603	  if test -d $$d/$$file; then \
604	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
605	    if test -d "$(distdir)/$$file"; then \
606	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
607	    fi; \
608	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
609	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
610	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
611	    fi; \
612	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
613	  else \
614	    test -f "$(distdir)/$$file" \
615	    || cp -p $$d/$$file "$(distdir)/$$file" \
616	    || exit 1; \
617	  fi; \
618	done
619	$(MAKE) $(AM_MAKEFLAGS) \
620	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
621	  dist-info
622check-am: all-am
623check: check-am
624@WITH_DOCBOOK_STYLESHEETS_FALSE@all-local:
625all-am: Makefile $(INFO_DEPS) $(MANS) all-local
626installdirs:
627	for dir in "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)"; do \
628	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
629	done
630install: install-am
631install-exec: install-exec-am
632install-data: install-data-am
633uninstall: uninstall-am
634
635install-am: all-am
636	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
637
638installcheck: installcheck-am
639install-strip:
640	if test -z '$(STRIP)'; then \
641	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
642	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
643	      install; \
644	else \
645	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
646	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
647	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
648	fi
649mostlyclean-generic:
650	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
651
652clean-generic:
653
654distclean-generic:
655	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
656	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
657
658maintainer-clean-generic:
659	@echo "This command is intended for maintainers to use"
660	@echo "it deletes files that may require special tools to rebuild."
661	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
662clean: clean-am
663
664clean-am: clean-aminfo clean-generic clean-local mostlyclean-am
665
666distclean: distclean-am
667	-rm -f Makefile
668distclean-am: clean-am distclean-generic
669
670dvi: dvi-am
671
672dvi-am: $(DVIS)
673
674html-am: $(HTMLS)
675
676info: info-am
677
678info-am: $(INFO_DEPS)
679
680install-data-am: install-info-am install-man
681
682install-dvi: install-dvi-am
683
684install-dvi-am: $(DVIS)
685	@$(NORMAL_INSTALL)
686	@list='$(DVIS)'; test -n "$(dvidir)" || list=; \
687	if test -n "$$list"; then \
688	  echo " $(MKDIR_P) '$(DESTDIR)$(dvidir)'"; \
689	  $(MKDIR_P) "$(DESTDIR)$(dvidir)" || exit 1; \
690	fi; \
691	for p in $$list; do \
692	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
693	  echo "$$d$$p"; \
694	done | $(am__base_list) | \
695	while read files; do \
696	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \
697	  $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \
698	done
699install-exec-am:
700
701install-html: install-html-am
702
703install-html-am: $(HTMLS)
704	@$(NORMAL_INSTALL)
705	@list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \
706	if test -n "$$list"; then \
707	  echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \
708	  $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \
709	fi; \
710	for p in $$list; do \
711	  if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
712	  $(am__strip_dir) \
713	  d2=$$d$$p; \
714	  if test -d "$$d2"; then \
715	    echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
716	    $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
717	    echo " $(INSTALL_DATA) '$$d2'/* '$(DESTDIR)$(htmldir)/$$f'"; \
718	    $(INSTALL_DATA) "$$d2"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
719	  else \
720	    list2="$$list2 $$d2"; \
721	  fi; \
722	done; \
723	test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \
724	while read files; do \
725	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \
726	  $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \
727	done; }
728install-info: install-info-am
729
730install-info-am: $(INFO_DEPS)
731	@$(NORMAL_INSTALL)
732	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
733	list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
734	if test -n "$$list"; then \
735	  echo " $(MKDIR_P) '$(DESTDIR)$(infodir)'"; \
736	  $(MKDIR_P) "$(DESTDIR)$(infodir)" || exit 1; \
737	fi; \
738	for file in $$list; do \
739	  case $$file in \
740	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
741	  esac; \
742	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
743	  file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
744	  for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
745	               $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
746	    if test -f $$ifile; then \
747	      echo "$$ifile"; \
748	    else : ; fi; \
749	  done; \
750	done | $(am__base_list) | \
751	while read files; do \
752	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \
753	  $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done
754	@$(POST_INSTALL)
755	@if $(am__can_run_installinfo); then \
756	  list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
757	  for file in $$list; do \
758	    relfile=`echo "$$file" | sed 's|^.*/||'`; \
759	    echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
760	    install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
761	  done; \
762	else : ; fi
763install-man: install-man1
764
765install-pdf: install-pdf-am
766
767install-pdf-am: $(PDFS)
768	@$(NORMAL_INSTALL)
769	@list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
770	if test -n "$$list"; then \
771	  echo " $(MKDIR_P) '$(DESTDIR)$(pdfdir)'"; \
772	  $(MKDIR_P) "$(DESTDIR)$(pdfdir)" || exit 1; \
773	fi; \
774	for p in $$list; do \
775	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
776	  echo "$$d$$p"; \
777	done | $(am__base_list) | \
778	while read files; do \
779	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \
780	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done
781install-ps: install-ps-am
782
783install-ps-am: $(PSS)
784	@$(NORMAL_INSTALL)
785	@list='$(PSS)'; test -n "$(psdir)" || list=; \
786	if test -n "$$list"; then \
787	  echo " $(MKDIR_P) '$(DESTDIR)$(psdir)'"; \
788	  $(MKDIR_P) "$(DESTDIR)$(psdir)" || exit 1; \
789	fi; \
790	for p in $$list; do \
791	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
792	  echo "$$d$$p"; \
793	done | $(am__base_list) | \
794	while read files; do \
795	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \
796	  $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done
797installcheck-am:
798
799maintainer-clean: maintainer-clean-am
800	-rm -f Makefile
801maintainer-clean-am: distclean-am maintainer-clean-aminfo \
802	maintainer-clean-generic maintainer-clean-vti
803
804mostlyclean: mostlyclean-am
805
806mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
807
808pdf: pdf-am
809
810pdf-am: $(PDFS)
811
812ps: ps-am
813
814ps-am: $(PSS)
815
816uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \
817	uninstall-man uninstall-pdf-am uninstall-ps-am
818
819uninstall-man: uninstall-man1
820
821.MAKE: install-am install-strip
822
823.PHONY: all all-am all-local check check-am clean clean-aminfo \
824	clean-generic clean-local cscopelist-am ctags-am dist-info \
825	distclean distclean-generic distdir dvi dvi-am html html-am \
826	info info-am install install-am install-data install-data-am \
827	install-dvi install-dvi-am install-exec install-exec-am \
828	install-html install-html-am install-info install-info-am \
829	install-man install-man1 install-pdf install-pdf-am install-ps \
830	install-ps-am install-strip installcheck installcheck-am \
831	installdirs maintainer-clean maintainer-clean-aminfo \
832	maintainer-clean-generic maintainer-clean-vti mostlyclean \
833	mostlyclean-aminfo mostlyclean-generic mostlyclean-vti pdf \
834	pdf-am ps ps-am tags-am uninstall uninstall-am \
835	uninstall-dvi-am uninstall-html-am uninstall-info-am \
836	uninstall-man uninstall-man1 uninstall-pdf-am uninstall-ps-am
837
838.PRECIOUS: Makefile
839
840
841@WITH_DOCBOOK_STYLESHEETS_TRUE@all-local: kawa-manual.epub
842
843kawa.txt:  $(srcdir)/kawa.texi version.texi
844	$(MAKEINFO) -I$(srcdir) \
845	    --no-split --no-headers --paragraph-indent=asis $< -o - \
846          | sed -e '/^Concept Index/,$$d' \
847             -e '/Making info file /,/END-INFO-DIR-ENTRY/d' \
848          >$@
849$(KAWA_HTMLS):  $(srcdir)/kawa.texi version.texi
850	$(MAKEINFO) -I$(srcdir) --html --no-node-files $< -o $(KAWA_HTMLDIR)
851
852html: $(KAWA_HTMLS)
853
854.texi.pdf:
855	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
856	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2PDF) -E $<
857
858../kawa-doc-$(VERSION).tar.gz: kawa.info $(KAWA_HTMLDIR)/index.html kawa.pdf
859	tar cf - $(KAWA_HTMLDIR)/*.html kawa.pdf|gzip -c --best >$@
860
861clean-local:
862	-rm -rf $(KAWA_HTMLDIR) tpm-qexo1 tpm-qexo1 kawa.1 qexo.1 kawa-manual.epub web ebook
863
864# Redundant if configured with  --enable-maintainer-mode.
865# Work around a questionable autoconf feature.
866version.texi: stamp-vti
867
868#install-html:
869#	-mkdir $(HTML_HOME)/kawa
870#	cp $(KAWA_HTML_PARTS) $(HTML_HOME)/kawa/
871#	cp kawa_toc.html $(HTML_HOME)/kawa/kawa_toc.html
872#	cp kawa_toc.html $(HTML_HOME)/kawa/index.html
873#	sed -e 's|HREF="kawa_|HREF="kawa/kawa_|g' -e 's|HREF="../|HREF="|g' \
874#		<kawa_toc.html >$(HTML_HOME)/kawa.html
875
876kawa.xml: $(srcdir)/kawa.texi
877	$(MAKEINFO) -I=$(srcdir) --docbook $(srcdir)/kawa.texi -o - | \
878	sed \
879	-e '/<!DOCTYPE book/,/^\]>/d' \
880	-e 's|_002d|-|g' \
881	-e 's|<book id="-" lang="en">|<book id="book" xmlns="http://docbook.org/ns/docbook" lang="en"><?dbhtml filename="top.html"?>|' \
882	-e 's|<chapter label="" id="Top">|<chapter label="Top" id="Top"><?dbhtml filename="index.html"?>|' \
883	-e 's|<chapter label="1" id="News">|<chapter label="1" id="News"><?dbhtml filename="news.html"?>|' \
884	-e 's|id="Tutorial">|\0<?dbhtml filename="tutorial/index.html"?>|' \
885	-e 's|id="Tutorial---\([^"]*\)">|\0<?dbhtml filename="tutorial/\1.html"?>|' \
886	-e 's|<title>Compiling to byte-code or an executable</title>|\0<titleabbrev>Compiling</titleabbrev>|' \
887	-e 's|<title>Scheme Extensions and Language Reference</title>|\0<titleabbrev>Language Reference</titleabbrev>|' \
888	-e 's|<title>Summary of Kawa Scheme Features</title>|\0<titleabbrev>Feature Summary</titleabbrev>|' \
889	-e 's|<title>Input, output, and file handling</title>|\0<titleabbrev>Input, output, files</titleabbrev>|' \
890	-e 's|<title>How to start up and run Kawa</title>|\0<titleabbrev>Usage Reference (running Kawa)</titleabbrev>|' \
891	-e 's|<title>Technical Support for Kawa</title>|\0<titleabbrev>Technical Support</titleabbrev>|' \
892	-e 's|<title>Quantities and Numbers</title>|\0<titleabbrev>Numbers</titleabbrev>|' \
893	-e 's|<title>Features of Kawa Scheme</title>|\0<titleabbrev>Scheme Features</titleabbrev>|' \
894	-e 's|<title>Building and installing Kawa</title>|\0<titleabbrev>Building and installing</titleabbrev>|' \
895	-e 's|<title>The Kawa Scheme system</title>|\0<titleabbrev>Kawa Home</titleabbrev>|' \
896	-e 's|\([^<>]*\)<userinput>|<prompt>\1</prompt><userinput>|' \
897	-e 's|<appendix .*id="Overall-Index">|<chapter label="" id="Overall-Index">|' \
898	-e 's|</appendix>|</chapter>|' \
899	-e '/@ifnotdocbook/,/@end ifnotdocbook/d' \
900	> kawa.xml
901
902$(HTML_TARGET_DIRECTORY)/index.html: kawa.xml Makefile
903	sed \
904	  -e '/<title>Kawa Scheme Tutorial/,/<title>Reference Documentation/s|<imagedata fileref="images/|<imagedata fileref="../images/|' \
905	  < $< | \
906	$(XSLT) --path $(DOCBOOK_XSL_DIR)/html$(pathsep)$(srcdir)/style \
907	  --stringparam base.dir $(HTML_TARGET_DIRECTORY)  \
908	  --stringparam chunker.output.doctype-public "-//W3C//DTD HTML 4.01 Transitional//EN" \
909	  --stringparam chunker.output.encoding UTF-8 \
910	  --stringparam generate.section.toc.level 0 \
911	  --stringparam generate.index 1 \
912	  --stringparam use.id.as.filename 1 \
913	  --stringparam chunker.output.indent yes \
914	  --stringparam chunk.first.sections 1 \
915	  --stringparam chunk.section.depth 1 \
916	  --stringparam chapter.autolabel 0 \
917	  --stringparam chunk.fast 1 \
918	  --stringparam toc.max.depth 4 \
919	  --stringparam toc.list.type ul \
920	  --stringparam toc.section.depth 3 \
921	  --stringparam chunk.separate.lots 1 \
922	  --stringparam chunk.tocs.and.lots 1 \
923	  kawa.xsl -
924	mv $(HTML_TARGET_DIRECTORY)/bk01-toc.html $(HTML_TARGET_DIRECTORY)/ToC.html
925	mkdir -p $(HTML_TARGET_DIRECTORY)/style
926	cp $(srcdir)/style/kawa-logo.png $(srcdir)/style/*.css \
927	  $(HTML_TARGET_DIRECTORY)/style
928	mkdir -p $(HTML_TARGET_DIRECTORY)/images
929	cp $(DOC_IMAGES) $(HTML_TARGET_DIRECTORY)/images/
930
931# There is some weuid bug causing "tutorial/XXX.xhtml" to be
932# treated as "XXX.xhtml", so use "tutorial-XXX.xhtml" instead.
933kawa-manual.epub: kawa.xml
934	sed \
935	  -e 's|<?dbhtml filename="tutorial/\([^".]*\)\.html|<?dbhtml filename="tutorial-\1.xhtml|'\
936	  -e '/id="News"/s|<?dbhtml filename="\([^"]*\)\.html|<?dbhtml filename="\1.xhtml|'\
937	  < $< | \
938	$(XSLT) --path $(DOCBOOK_XSL_DIR)/epub3$(pathsep)$(srcdir)/style \
939	  --stringparam base.dir ebook/OEBPS/ \
940	  --stringparam html.script kawa-ebook.js \
941	  --stringparam html.stylesheet kawa.css \
942	  --stringparam chunker.output.encoding UTF-8 \
943	  --stringparam generate.section.toc.level 0 \
944	  --stringparam generate.index 1 \
945	  --stringparam use.id.as.filename 1 \
946	  --stringparam autotoc.label.in.hyperlink 0 \
947	  --stringparam chunker.output.indent yes \
948	  --stringparam chunk.first.sections 1 \
949	  --stringparam chunk.section.depth 1 \
950	  --stringparam chapter.autolabel 0 \
951	  --stringparam chunk.fast 1 \
952	  --stringparam toc.max.depth 4 \
953	  --stringparam toc.list.type ul \
954	  --stringparam toc.section.depth 3 \
955	  --stringparam chunk.separate.lots 1 \
956	  --stringparam chunk.tocs.and.lots 1 \
957	  kawa-epub.xsl -
958	sed -e '/<footer>/,/<.footer>/d' <ebook/OEBPS/bk01-toc.xhtml \
959	  >ebook/OEBPS/ToC.xhtml
960	rm ebook/OEBPS/bk01-toc.xhtml
961	for file in ebook/OEBPS/*.html; do \
962	  sed -e '/<?xml .*>/d' -e '/<script/s|/>|> </script>|' -i $$file; done
963	cp style/kawa-ebook.css ebook/OEBPS/kawa.css
964	cp style/kawa-ebook.js ebook/OEBPS/kawa-ebook.js
965	cp style/kawa-logo.png ebook/OEBPS/kawa-logo.png
966	cp with-frames.html ebook/OEBPS/with-frames.html
967	mkdir -p ebook/OEBPS/images
968	cp $(DOC_IMAGES) ebook/OEBPS/images/
969	cd ebook && zip -r -q -X ../kawa-manual.epub mimetype META-INF OEBPS
970
971kashell.html: $(srcdir)/kashell.texi
972	$(MAKEINFO) --html --no-split -o $@ $<
973
974# Tell versions [3.59,3.63) of GNU make to not export all variables.
975# Otherwise a system limit (for SysV at least) may be exceeded.
976.NOEXPORT:
977