1# Makefile.in generated by automake 1.13.4 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 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 = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19  case $${target_option-} in \
20      ?) ;; \
21      *) echo "am__make_running_with_option: internal error: invalid" \
22              "target option '$${target_option-}' specified" >&2; \
23         exit 1;; \
24  esac; \
25  has_opt=no; \
26  sane_makeflags=$$MAKEFLAGS; \
27  if $(am__is_gnu_make); then \
28    sane_makeflags=$$MFLAGS; \
29  else \
30    case $$MAKEFLAGS in \
31      *\\[\ \	]*) \
32        bs=\\; \
33        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
35    esac; \
36  fi; \
37  skip_next=no; \
38  strip_trailopt () \
39  { \
40    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41  }; \
42  for flg in $$sane_makeflags; do \
43    test $$skip_next = yes && { skip_next=no; continue; }; \
44    case $$flg in \
45      *=*|--*) continue;; \
46        -*I) strip_trailopt 'I'; skip_next=yes;; \
47      -*I?*) strip_trailopt 'I';; \
48        -*O) strip_trailopt 'O'; skip_next=yes;; \
49      -*O?*) strip_trailopt 'O';; \
50        -*l) strip_trailopt 'l'; skip_next=yes;; \
51      -*l?*) strip_trailopt 'l';; \
52      -[dEDm]) skip_next=yes;; \
53      -[JT]) skip_next=yes;; \
54    esac; \
55    case $$flg in \
56      *$$target_option*) has_opt=yes; break;; \
57    esac; \
58  done; \
59  test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/@PACKAGE@
63pkgincludedir = $(includedir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkglibexecdir = $(libexecdir)/@PACKAGE@
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = @build@
79host_triplet = @host@
80@STYLE_ENV_SET_TRUE@am__append_1 = -V website-stylesheet
81@STYLE_ENV_SET_TRUE@am__append_2 = --param website.stylesheet 1
82subdir = doc.ja/src/sgml
83DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84	$(top_srcdir)/mkinstalldirs
85ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
86am__aclocal_m4_deps = $(top_srcdir)/m4/docbook.m4 \
87	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
88	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
89	$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/c-compiler.m4 \
90	$(top_srcdir)/c-library.m4 $(top_srcdir)/general.m4 \
91	$(top_srcdir)/ac_func_accept_argtypes.m4 \
92	$(top_srcdir)/configure.ac
93am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94	$(ACLOCAL_M4)
95mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
96CONFIG_HEADER = $(top_builddir)/src/include/config.h
97CONFIG_CLEAN_FILES =
98CONFIG_CLEAN_VPATH_FILES =
99AM_V_P = $(am__v_P_@AM_V@)
100am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
101am__v_P_0 = false
102am__v_P_1 = :
103AM_V_GEN = $(am__v_GEN_@AM_V@)
104am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
105am__v_GEN_0 = @echo "  GEN     " $@;
106am__v_GEN_1 =
107AM_V_at = $(am__v_at_@AM_V@)
108am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
109am__v_at_0 = @
110am__v_at_1 =
111SOURCES =
112DIST_SOURCES =
113am__can_run_installinfo = \
114  case $$AM_UPDATE_INFO_DIR in \
115    n|no|NO) false;; \
116    *) (install-info --version) >/dev/null 2>&1;; \
117  esac
118am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
119DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
120ACLOCAL = @ACLOCAL@
121AMTAR = @AMTAR@
122AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
123AR = @AR@
124AR_FLAGS = @AR_FLAGS@
125AUTOCONF = @AUTOCONF@
126AUTOHEADER = @AUTOHEADER@
127AUTOMAKE = @AUTOMAKE@
128AWK = @AWK@
129CATALOG = @CATALOG@
130CC = @CC@
131CCDEPMODE = @CCDEPMODE@
132CFLAGS = @CFLAGS@
133COLLATEINDEX = @COLLATEINDEX@
134CPP = @CPP@
135CPPFLAGS = @CPPFLAGS@
136CYGPATH_W = @CYGPATH_W@
137DEFS = @DEFS@ \
138	-DDEFAULT_CONFIGDIR=\"$(sysconfdir)\"
139
140DEPDIR = @DEPDIR@
141DLLTOOL = @DLLTOOL@
142DOCBOOKSTYLE = @DOCBOOKSTYLE@
143DSYMUTIL = @DSYMUTIL@
144DUMPBIN = @DUMPBIN@
145ECHO_C = @ECHO_C@
146ECHO_N = @ECHO_N@
147ECHO_T = @ECHO_T@
148EGREP = @EGREP@
149EXEEXT = @EXEEXT@
150FGREP = @FGREP@
151GREP = @GREP@
152INSTALL = @INSTALL@
153INSTALL_DATA = @INSTALL_DATA@
154INSTALL_PROGRAM = @INSTALL_PROGRAM@
155INSTALL_SCRIPT = @INSTALL_SCRIPT@
156INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
157JADE = @JADE@
158LD = @LD@
159LDFLAGS = @LDFLAGS@
160LEX = @LEX@
161LEXLIB = @LEXLIB@
162LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
163LIBOBJS = @LIBOBJS@
164LIBS = @LIBS@
165LIBTOOL = @LIBTOOL@
166LIPO = @LIPO@
167LN_S = @LN_S@
168LTLIBOBJS = @LTLIBOBJS@
169LYNX = @LYNX@
170MAINT = @MAINT@
171MAKEINFO = @MAKEINFO@
172MANIFEST_TOOL = @MANIFEST_TOOL@
173MEMCACHED_DIR = @MEMCACHED_DIR@
174MEMCACHED_INCLUDE_OPT = @MEMCACHED_INCLUDE_OPT@
175MEMCACHED_LINK_OPT = @MEMCACHED_LINK_OPT@
176MEMCACHED_RPATH_OPT = @MEMCACHED_RPATH_OPT@
177MKDIR_P = @MKDIR_P@
178NM = @NM@
179NMEDIT = @NMEDIT@
180NSGMLS = @NSGMLS@
181OBJDUMP = @OBJDUMP@
182OBJEXT = @OBJEXT@
183OSX = @OSX@
184OTOOL = @OTOOL@
185OTOOL64 = @OTOOL64@
186PACKAGE = @PACKAGE@
187PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
188PACKAGE_NAME = @PACKAGE_NAME@
189PACKAGE_STRING = @PACKAGE_STRING@
190PACKAGE_TARNAME = @PACKAGE_TARNAME@
191PACKAGE_URL = @PACKAGE_URL@
192PACKAGE_VERSION = @PACKAGE_VERSION@
193PATH_SEPARATOR = @PATH_SEPARATOR@
194PERL = @PERL@
195PGCONFIG = @PGCONFIG@
196PGSQL_BIN_DIR = @PGSQL_BIN_DIR@
197PGSQL_INCLUDE_DIR = @PGSQL_INCLUDE_DIR@
198PGSQL_LIB_DIR = @PGSQL_LIB_DIR@
199RANLIB = @RANLIB@
200SED = @SED@
201SET_MAKE = @SET_MAKE@
202SHELL = @SHELL@
203STRIP = @STRIP@
204STYLE = @STYLE@
205VERSION = @VERSION@
206XMLLINT = @XMLLINT@
207XSLTPROC = @XSLTPROC@
208XSLTPROC_HTML_FLAGS = @XSLTPROC_HTML_FLAGS@ $(am__append_2)
209YACC = @YACC@
210YFLAGS = @YFLAGS@
211abs_builddir = @abs_builddir@
212abs_srcdir = @abs_srcdir@
213abs_top_builddir = @abs_top_builddir@
214abs_top_srcdir = @abs_top_srcdir@
215ac_ct_AR = @ac_ct_AR@
216ac_ct_CC = @ac_ct_CC@
217ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
218am__include = @am__include@
219am__leading_dot = @am__leading_dot@
220am__quote = @am__quote@
221am__tar = @am__tar@
222am__untar = @am__untar@
223bindir = @bindir@
224build = @build@
225build_alias = @build_alias@
226build_cpu = @build_cpu@
227build_os = @build_os@
228build_vendor = @build_vendor@
229builddir = @builddir@
230datadir = @datadir@
231datarootdir = @datarootdir@
232docdir = @docdir@
233dvidir = @dvidir@
234exec_prefix = @exec_prefix@
235have_docbook = @have_docbook@
236host = @host@
237host_alias = @host_alias@
238host_cpu = @host_cpu@
239host_os = @host_os@
240host_vendor = @host_vendor@
241htmldir = @htmldir@
242includedir = @includedir@
243infodir = @infodir@
244install_sh = @install_sh@
245libdir = @libdir@
246libexecdir = @libexecdir@
247localedir = @localedir@
248localstatedir = @localstatedir@
249mandir = @mandir@
250mkdir_p = @mkdir_p@
251oldincludedir = @oldincludedir@
252pdfdir = @pdfdir@
253prefix = @prefix@
254program_transform_name = @program_transform_name@
255psdir = @psdir@
256sbindir = @sbindir@
257sharedstatedir = @sharedstatedir@
258srcdir = @srcdir@
259sysconfdir = @sysconfdir@
260target_alias = @target_alias@
261top_build_prefix = @top_build_prefix@
262top_builddir = @top_builddir@
263top_srcdir = @top_srcdir@
264
265# suggested by libtoolize
266ACLOCAL_AMFLAGS = -I m4
267GENERATED_SGML = bookindex.sgml version.sgml \
268					features-supported.sgml features-unsupported.sgml errcodes-table.sgml
269
270ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) $(GENERATED_SGML)
271
272# Sometimes we don't want this one.
273ALMOSTALLSGML := $(filter-out %bookindex.sgml,$(ALLSGML))
274SPFLAGS = -wall -wno-unused-param -wno-empty -wfully-tagged
275OUTDIR = html
276
277#jade -G -t sgml -i html  -d stylesheet.dsl#html -o abas  pgpool-en.sgm
278#JADE.html.call = $(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t sgml -i output-html
279JADE.html.call = SP_CHARSET_FIXED=1 SP_ENCODING=UTF-8 $(JADE) \
280	$(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d \
281	stylesheet.dsl -t sgml -i output-html $(am__append_1)
282JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t tex -V tex-backend -i output-print -i include-index
283JADE.rtf.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print  -i include-index
284JADE_html = $(JADE) $(SPFLAGS) -d stylesheet.dsl\#html -t sgml -i html -V website-stylesheet
285EXTRA_DIST = $(ALLSGML) html man1 man8 stylesheet.dsl stylesheet.css stylesheet-man.xsl stylesheet-common.xsl
286FOP = fop
287CLEANFILES = *.html *.tex-pdf pgpool-en.rtf pgpool-en.txt html/*
288all: all-am
289
290.SUFFIXES:
291$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
292	@for dep in $?; do \
293	  case '$(am__configure_deps)' in \
294	    *$$dep*) \
295	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
296	        && { if test -f $@; then exit 0; else break; fi; }; \
297	      exit 1;; \
298	  esac; \
299	done; \
300	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc.ja/src/sgml/Makefile'; \
301	$(am__cd) $(top_srcdir) && \
302	  $(AUTOMAKE) --gnu doc.ja/src/sgml/Makefile
303.PRECIOUS: Makefile
304Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
305	@case '$?' in \
306	  *config.status*) \
307	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
308	  *) \
309	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
310	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
311	esac;
312
313$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
314	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
315
316$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
317	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
318$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
319	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
320$(am__aclocal_m4_deps):
321
322mostlyclean-libtool:
323	-rm -f *.lo
324
325clean-libtool:
326	-rm -rf .libs _libs
327tags TAGS:
328
329ctags CTAGS:
330
331cscope cscopelist:
332
333
334distdir: $(DISTFILES)
335	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
336	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
337	list='$(DISTFILES)'; \
338	  dist_files=`for file in $$list; do echo $$file; done | \
339	  sed -e "s|^$$srcdirstrip/||;t" \
340	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
341	case $$dist_files in \
342	  */*) $(MKDIR_P) `echo "$$dist_files" | \
343			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
344			   sort -u` ;; \
345	esac; \
346	for file in $$dist_files; do \
347	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
348	  if test -d $$d/$$file; then \
349	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
350	    if test -d "$(distdir)/$$file"; then \
351	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
352	    fi; \
353	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
354	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
355	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
356	    fi; \
357	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
358	  else \
359	    test -f "$(distdir)/$$file" \
360	    || cp -p $$d/$$file "$(distdir)/$$file" \
361	    || exit 1; \
362	  fi; \
363	done
364check-am: all-am
365check: check-am
366all-am: Makefile
367installdirs:
368install: install-am
369install-exec: install-exec-am
370install-data: install-data-am
371uninstall: uninstall-am
372
373install-am: all-am
374	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
375
376installcheck: installcheck-am
377install-strip:
378	if test -z '$(STRIP)'; then \
379	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
380	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
381	      install; \
382	else \
383	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
384	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
385	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
386	fi
387mostlyclean-generic:
388
389clean-generic:
390	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
391
392distclean-generic:
393	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
394	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
395
396maintainer-clean-generic:
397	@echo "This command is intended for maintainers to use"
398	@echo "it deletes files that may require special tools to rebuild."
399clean: clean-am
400
401clean-am: clean-generic clean-libtool mostlyclean-am
402
403distclean: distclean-am
404	-rm -f Makefile
405distclean-am: clean-am distclean-generic
406
407dvi: dvi-am
408
409dvi-am:
410
411html-am:
412
413info: info-am
414
415info-am:
416
417install-data-am:
418
419install-dvi: install-dvi-am
420
421install-dvi-am:
422
423install-exec-am:
424
425install-html: install-html-am
426
427install-html-am:
428
429install-info: install-info-am
430
431install-info-am:
432
433install-man:
434
435install-pdf: install-pdf-am
436
437install-pdf-am:
438
439install-ps: install-ps-am
440
441install-ps-am:
442
443installcheck-am:
444
445maintainer-clean: maintainer-clean-am
446	-rm -f Makefile
447maintainer-clean-am: distclean-am maintainer-clean-generic
448
449mostlyclean: mostlyclean-am
450
451mostlyclean-am: mostlyclean-generic mostlyclean-libtool
452
453pdf: pdf-am
454
455pdf-am:
456
457ps: ps-am
458
459ps-am:
460
461uninstall-am:
462
463.MAKE: install-am install-strip
464
465.PHONY: all all-am check check-am clean clean-generic clean-libtool \
466	cscopelist-am ctags-am distclean distclean-generic \
467	distclean-libtool distdir dvi dvi-am html html-am info info-am \
468	install install-am install-data install-data-am install-dvi \
469	install-dvi-am install-exec install-exec-am install-html \
470	install-html-am install-info install-info-am install-man \
471	install-pdf install-pdf-am install-ps install-ps-am \
472	install-strip installcheck installcheck-am installdirs \
473	maintainer-clean maintainer-clean-generic mostlyclean \
474	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
475	tags-am uninstall uninstall-am
476
477
478all: html man1 man8
479
480#if DOCBOOKSTYLE
481#CATALOG = -c $(DOCBOOKSTYLE)/catalog
482#endif
483
484#override XSLTPROCFLAGS += --stringparam pgpool.version '$(VERSION)'
485override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'
486
487man1 man8 distprep-man: man-stamp
488
489man-stamp: stylesheet-man.xsl pgpool.xml
490	$(XMLLINT) --noout --valid pgpool.xml
491	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^
492	touch $@
493
494# The draft target creates HTML output in draft mode, without index (for faster build).
495draft: pgpool.sgml $(ALMOSTALLSGML) stylesheet.dsl
496	$(MKDIR_P) html
497	$(JADE.html.call) -V draft-mode $<
498	cp $(srcdir)/stylesheet.css html/
499
500html: html-stamp
501
502html-stamp: pgpool.sgml $(ALLSGML) stylesheet.dsl
503	$(MKDIR_P) html
504	$(JADE.html.call) -i include-index $<
505	cp $(srcdir)/stylesheet.css html/
506	cp ../figures/*.gif html
507
508# single-page HTML
509pgpool.html: pgpool.sgml $(ALLSGML) stylesheet.dsl
510	$(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $<
511
512# single-page text
513pgpool.txt: pgpool.html
514	$(LYNX) -force_html -dump -nolist $< > $@
515
516HTML.index: pgpool.sgml $(ALMOSTALLSGML) stylesheet.dsl
517	 $(MKDIR_P) html
518	 $(JADE.html.call) -V html-index $<
519
520bookindex.sgml: HTML.index
521	LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g -i 'bookindex' -o $@ $<
522
523# single-page text
524#pgpool-en.txt: pgpool-en.html
525#	$(LYNX) -force_html -dump -nolist $< > $@
526
527# single-page HTML
528#pgpool-en.html: pgpool-en.sgml $(ALLSGML) stylesheet.dsl
529#	$(JADE.html.call) -V nochunks -V rootchunk -i include-index $< >$@
530
531%.rtf: %.sgml $(ALLSGML)
532	$(JADE.rtf.call) $<
533
534%-A4.tex-ps: %.sgml $(ALLSGML)
535	    $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $<
536
537%-US.tex-ps: %.sgml $(ALLSGML)
538	    $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $<
539
540%-A4.tex-pdf: %.sgml $(ALLSGML)
541	    $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $<
542
543%-US.tex-pdf: %.sgml $(ALLSGML)
544	    $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $<
545
546%.pdf: %.tex-pdf
547	@rm -f $*.aux $*.log $*.out
548# multiple runs are necessary to create proper intra-document links
549	pdfjadetex $<
550	pdfjadetex $<
551	pdfjadetex $<
552
553#pgpool-en.pdf: pgpool-en-A4.tex-pdf pgpool-en-US.tex-pdf
554
555# This generates an XML version of the flow-object tree.  It's useful
556# # for debugging DSSSL code, and possibly to interface to some other
557# # tools that can make use of this.
558%.fot: %.sgml $(ALLSGML)
559	$(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t fot -i output-print -i include-index -o $@ $<
560
561%.ps: %.dvi
562	dvips -o $@ $<
563
564pgpool-en.xml: $(ALLSGML)
565	$(OSX) -D. -x lower -i include-xslt-index $< >pgpool-en.xmltmp
566	$(PERL) -p -e 's/\[(aacute|acirc|aelig|agrave|amp|aring|atilde|auml|bull|copy|eacute|egrave|gt|iacute|lt|mdash|nbsp|ntilde|oacute|ocirc|oslash|ouml|pi|quot|scaron|uuml) *\]/\&\1;/gi;' \
567		-e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
568		<pgpool-en.xmltmp > $@
569	rm pgpool-en.xmltmp
570
571pgpool.xml: $(srcdir)/pgpool.sgml $(ALMOSTALLSGML)
572	SP_CHARSET_FIXED=1 SP_ENCODING=UTF-8 \
573	$(OSX) -D. -x lower -i include-xslt-index $< >pgpool.xmltmp
574	$(PERL) -p -e 's/\[(aacute|acirc|aelig|agrave|amp|aring|atilde|auml|bull|copy|eacute|egrave|gt|iacute|lt|mdash|nbsp|ntilde|oacute|ocirc|oslash|ouml|pi|quot|scaron|uuml) *\]/\&\1;/gi;' \
575		-e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
576		<pgpool.xmltmp > $@
577	rm pgpool.xmltmp
578
579.PHONY: xslthtml-stamp
580
581xslthtml: xslthtml-stamp
582
583xslthtml: xslthtml-stamp
584
585xslthtml-stamp: stylesheet.xsl pgpool.xml
586	$(XMLLINT) --noout --valid pgpool.xml
587	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^
588	cp $(srcdir)/stylesheet.css html/
589
590htmlhelp: stylesheet-hh.xsl pgpool.xml
591	$(XMLLINT) --noout --valid pgpool.xml
592	$(XSLTPROC) $(XSLTPROCFLAGS) $^
593
594%-A4.fo.tmp: stylesheet-fo.xsl %.xml
595	$(XMLLINT) --noout --valid $*.xml
596	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type A4 -o $@ $^
597
598%-US.fo.tmp: stylesheet-fo.xsl %.xml
599	$(XMLLINT) --noout --valid $*.xml
600	$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@ $^
601
602#xslthtml-stamp: stylesheet.xsl pgpool-en.xml
603#	$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^
604#	cp $(srcdir)/stylesheet.css html/
605
606# reformat FO output so that locations of errors are easier to find
607%.fo: %.fo.tmp
608	$(XMLLINT) --format --output $@ $^
609
610epub: pgpool.epub
611	pgpool.epub: pgpool.xml
612	$(XMLLINT) --noout --valid $<
613	$(DBTOEPUB) $<
614
615version.sgml: $(top_srcdir)/configure
616	{ \
617		echo "<!ENTITY version \"$(PACKAGE_VERSION)\">"; \
618	} > $@
619
620# tabs are harmless, but it is best to avoid them in SGML files
621check-tabs:
622	@( ! grep ' ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml $(srcdir)/*.dsl $(srcdir)/*.xsl) ) || (echo "Tabs appear in SGML/XML files" 1>&2;  exit 1)
623
624# Tell versions [3.59,3.63) of GNU make to not export all variables.
625# Otherwise a system limit (for SysV at least) may be exceeded.
626.NOEXPORT:
627