# Makefile.in generated by automake 1.16.2 from Makefile.am.
# doc/sphinx/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994-2020 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



# Makefile for Sphinx documentation
#

am__is_gnu_make = { \
  if test -z '$(MAKELEVEL)'; then \
    false; \
  elif test -n '$(MAKE_HOST)'; then \
    true; \
  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
    true; \
  else \
    false; \
  fi; \
}
am__make_running_with_option = \
  case $${target_option-} in \
      ?) ;; \
      *) echo "am__make_running_with_option: internal error: invalid" \
              "target option '$${target_option-}' specified" >&2; \
         exit 1;; \
  esac; \
  has_opt=no; \
  sane_makeflags=$$MAKEFLAGS; \
  if $(am__is_gnu_make); then \
    sane_makeflags=$$MFLAGS; \
  else \
    case $$MAKEFLAGS in \
      *\\[\ \	]*) \
        bs=\\; \
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
    esac; \
  fi; \
  skip_next=no; \
  strip_trailopt () \
  { \
    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
  }; \
  for flg in $$sane_makeflags; do \
    test $$skip_next = yes && { skip_next=no; continue; }; \
    case $$flg in \
      *=*|--*) continue;; \
        -*I) strip_trailopt 'I'; skip_next=yes;; \
      -*I?*) strip_trailopt 'I';; \
        -*O) strip_trailopt 'O'; skip_next=yes;; \
      -*O?*) strip_trailopt 'O';; \
        -*l) strip_trailopt 'l'; skip_next=yes;; \
      -*l?*) strip_trailopt 'l';; \
      -[dEDm]) skip_next=yes;; \
      -[JT]) skip_next=yes;; \
    esac; \
    case $$flg in \
      *$$target_option*) has_opt=yes; break;; \
    esac; \
  done; \
  test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/varnish
pkgincludedir = $(includedir)/varnish
pkglibdir = $(libdir)/varnish
pkglibexecdir = $(libexecdir)/varnish
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-slackware-linux-gnu
host_triplet = x86_64-slackware-linux-gnu
target_triplet = x86_64-slackware-linux-gnu
subdir = doc/sphinx
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/varnish.m4 \
	$(top_srcdir)/m4/ax_check_compile_flag.m4 \
	$(top_srcdir)/m4/ax_check_link_flag.m4 \
	$(top_srcdir)/m4/ax_lib_readline.m4 \
	$(top_srcdir)/m4/ax_pthread.m4 \
	$(top_srcdir)/m4/ax_with_curses.m4 \
	$(top_srcdir)/m4/ld-version-script.m4 \
	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
	$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES = conf.py
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo "  GEN     " $@;
am__v_GEN_1 = 
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
am__v_at_1 = 
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
  case $$AM_UPDATE_INFO_DIR in \
    n|no|NO) false;; \
    *) (install-info --version) >/dev/null 2>&1;; \
  esac
am__extra_recursive_targets = recheck-recursive
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/conf.py.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing aclocal-1.16
AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY = 0
AM_LT_LDFLAGS = 
AR = ar
AUTOCONF = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing autoconf
AUTOHEADER = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing autoheader
AUTOMAKE = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing automake-1.16
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -O2 -fPIC -DZ_PREFIX -pthread -Wall -Werror -Wno-error=unused-result
CPP = gcc -E
CPPFLAGS = 
CURSES_CFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
CURSES_LIB = 
CURSES_LIBS = -lncursesw -ltinfo
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = dlltool
DL_LIBS = -ldl 
DOT = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing dot
DSYMUTIL = 
DUMPBIN = 
ECHO_C = 
ECHO_N = -n
ECHO_T = 
EGREP = /usr/bin/grep -E
EXEEXT = 
EXTCFLAGS = -O2 -fPIC -DZ_PREFIX
FGREP = /usr/bin/grep -F
FILECMD = file
GREP = /usr/bin/grep
INSTALL = /usr/bin/ginstall -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
JEMALLOC_LDADD = -ljemalloc
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS = 
LIBEDIT_CFLAGS = -I/usr/include/editline
LIBEDIT_LIBS = -ledit
LIBM = -lm
LIBOBJS = 
LIBS = -lpthread 
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBUNWIND_CFLAGS = 
LIBUNWIND_LIBS = -lunwind
LIPO = 
LN_S = ln -s
LTLIBOBJS = 
LT_SYS_LIBRARY_PATH = 
MAINT = #
MAKEINFO = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/missing makeinfo
MANIFEST_TOOL = :
MKDIR_P = /usr/libexec/slackrepo/mkdir -p
NET_LIBS =  -lnsl 
NM = /usr/bin/nm -B
NMEDIT = 
NSL_LIBS = -lnsl 
OBJDUMP = objdump
OBJEXT = o
OTOOL = 
OTOOL64 = 
PACKAGE = varnish
PACKAGE_BRANCH = 7.6
PACKAGE_BUGREPORT = varnish-dev@varnish-cache.org
PACKAGE_NAME = Varnish
PACKAGE_STRING = Varnish 7.6.0
PACKAGE_TARNAME = varnish
PACKAGE_URL = 
PACKAGE_VERSION = 7.6.0
PATH_SEPARATOR = :
PCRE2_CFLAGS = 
PCRE2_CONFIG = 
PCRE2_LIBS = -lpcre2-8
PKG_CONFIG = /usr/bin/pkg-config
PKG_CONFIG_LIBDIR = 
PKG_CONFIG_PATH = /usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig
PTHREAD_CC = gcc
PTHREAD_CFLAGS = -pthread
PTHREAD_CXX = 
PTHREAD_LIBS = 
PYTHON = /usr/bin/python3
PYTHON_EXEC_PREFIX = ${exec_prefix}
PYTHON_PLATFORM = linux
PYTHON_PREFIX = ${prefix}
PYTHON_VERSION = 3.9
RANLIB = ranlib
RST2HTML = rst2html
RST2MAN = rst2man
SED = /usr/libexec/slackrepo/sed
SET_MAKE = 
SHELL = /bin/sh
SOCKET_LIBS = 
SPHINX = sphinx-build
STRIP = strip
VARNISH_STATE_DIR = ${localstatedir}/varnish
VCC_CC = exec gcc -O2 -fPIC -DZ_PREFIX -fno-var-tracking-assignments %w -pthread  -fpic -shared -Wl,-x -o %o %s
VERSION = 7.6.0
VGZ_CFLAGS = 
VMODTOOL = $(top_srcdir)/lib/libvcc/vmodtool.py
VMOD_LDFLAGS = -module -export-dynamic -avoid-version -shared
VSCTOOL = $(top_srcdir)/lib/libvsc/vsctool.py
abs_builddir = /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/doc/sphinx
abs_srcdir = /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/doc/sphinx
abs_top_builddir = /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0
abs_top_srcdir = /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_DUMPBIN = 
am__include = include
am__leading_dot = .
am__quote = 
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} xf -
ax_pthread_config = 
bindir = ${exec_prefix}/bin
build = x86_64-slackware-linux-gnu
build_alias = x86_64-slackware-linux
build_cpu = x86_64
build_os = linux-gnu
build_vendor = slackware
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = /usr/doc/varnish-7.6.0
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-slackware-linux-gnu
host_alias = 
host_cpu = x86_64
host_os = linux-gnu
host_vendor = slackware
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /tmp/slackdce/slackrepo.a2v68p/build_varnish/varnish-7.6.0/build-aux/install-sh
libdir = /usr/lib64
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = /var/lib
mandir = /usr/man
mkdir_p = $(MKDIR_P)
oldincludedir = /usr/include
pdfdir = ${docdir}
pkgpyexecdir = ${pyexecdir}/varnish
pkgpythondir = ${pythondir}/varnish
pkgsysconfdir = ${sysconfdir}/varnish
prefix = /usr
program_transform_name = s,x,x,
psdir = ${docdir}
pyexecdir = ${exec_prefix}/lib64/python3.9/site-packages
pythondir = ${prefix}/lib64/python3.9/site-packages
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = /etc
target = x86_64-slackware-linux-gnu
target_alias = 
target_cpu = x86_64
target_os = linux-gnu
target_vendor = slackware
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..
vmoddir = $(pkglibdir)/vmods

# You can set these variables from the command line.
SPHINXOPTS = 
SPHINXBUILD = $(SPHINX) -W -q -N
BUILDDIR = build
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) $(builddir)
EXTRA_DIST = conf.py dev-guide glossary include index.rst installation \
	phk tutorial reference users-guide vcl-design-patterns \
	vtc-syntax.py whats-new $(BUILT_SOURCES)
BUILT_SOURCES = include/cli.rst include/params.rst include/options.rst \
	include/counters.rst include/varnishncsa_options.rst \
	include/varnishncsa_synopsis.rst \
	include/varnishlog_options.rst include/varnishlog_synopsis.rst \
	include/varnishtop_options.rst include/varnishtop_synopsis.rst \
	include/varnishhist_options.rst \
	include/varnishhist_synopsis.rst \
	include/varnishstat_options.rst \
	include/varnishstat_synopsis.rst \
	include/varnishstat_bindings.rst include/vsl-tags.rst \
	include/vtc-syntax.rst include/vmod_std.generated.rst \
	include/vmod_directors.generated.rst \
	include/vmod_purge.generated.rst \
	include/vmod_vtc.generated.rst include/vmod_blob.generated.rst \
	include/vmod_cookie.generated.rst \
	include/vmod_h2.generated.rst include/vmod_unix.generated.rst \
	include/vmod_proxy.generated.rst
VTCSYN_SRC = \
	$(top_srcdir)/bin/varnishtest/vtc.c \
	$(top_srcdir)/bin/varnishtest/vtc_barrier.c \
	$(top_srcdir)/bin/varnishtest/vtc_haproxy.c \
	$(top_srcdir)/bin/varnishtest/vtc_http.c \
	$(top_srcdir)/bin/varnishtest/vtc_http2.c \
	$(top_srcdir)/bin/varnishtest/vtc_logexp.c \
	$(top_srcdir)/bin/varnishtest/vtc_misc.c \
	$(top_srcdir)/bin/varnishtest/vtc_process.c \
	$(top_srcdir)/bin/varnishtest/vtc_syslog.c \
	$(top_srcdir)/bin/varnishtest/vtc_tunnel.c \
	$(top_srcdir)/bin/varnishtest/vtc_varnish.c \
	$(top_srcdir)/bin/varnishtest/vtc_vsm.c

CLEANFILES = $(BUILT_SOURCES)
all: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) all-am

.SUFFIXES:
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am  $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/sphinx/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign doc/sphinx/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure: # $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
conf.py: $(top_builddir)/config.status $(srcdir)/conf.py.in
	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs
recheck-local: 
tags TAGS:

ctags CTAGS:

cscope cscopelist:


distdir: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) distdir-am

distdir-am: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
	  else \
	    test -f "$(distdir)/$$file" \
	    || cp -p $$d/$$file "$(distdir)/$$file" \
	    || exit 1; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) \
	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
	  dist-hook
check-am: all-am
check: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) check-am
all-am: Makefile
installdirs:
install: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	if test -z '$(STRIP)'; then \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	      install; \
	else \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
	fi
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-local

dvi: dvi-am

dvi-am:

html-am:

info: info-am

info-am:

install-data-am:

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am:

install-html: install-html-am

install-html-am:

install-info: install-info-am

install-info-am:

install-man:

install-pdf: install-pdf-am

install-pdf-am:

install-ps: install-ps-am

install-ps-am:

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

recheck: recheck-am

recheck-am: recheck-local

uninstall-am:

.MAKE: all check install install-am install-strip

.PHONY: all all-am check check-am clean clean-generic clean-libtool \
	cscopelist-am ctags-am dist-hook distclean distclean-generic \
	distclean-libtool distclean-local distdir dvi dvi-am html \
	html-am info info-am install install-am install-data \
	install-data-am install-dvi install-dvi-am install-exec \
	install-exec-am install-html install-html-am install-info \
	install-info-am install-man install-pdf install-pdf-am \
	install-ps install-ps-am install-strip installcheck \
	installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-generic \
	mostlyclean-libtool pdf pdf-am ps ps-am recheck-am \
	recheck-local tags-am uninstall uninstall-am

.PRECIOUS: Makefile


.PHONY: help clean html linkcheck doctest

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  html      to make standalone HTML files"
	@echo "  linkcheck to check all external links for integrity"

clean:
	-rm -rf $(BUILDDIR)/* $(CLEANFILES)

# use index.rst as an indicator if we have copied already
.PHONY: link_srcdir
link_srcdir: graphviz conf.py $(BUILT_SOURCES)
	if test "x$(srcdir)" != "x$(builddir)" && test ! -f index.rst; then \
		s=`cd $(srcdir) && pwd`; \
		for f in `cd $$s && find . -type f`; do \
			d=`dirname $$f`; \
			test -d $$d || mkdir -p $$d; \
			test -f $$f || ln -s $$s/$$f $$f; \
		done \
	fi

# workaround for make html called within doc/sphinx
.PHONY: graphviz
graphviz:
	cd ../graphviz && $(MAKE) html

sphinx_prereq: link_srcdir

all: link_srcdir

html: sphinx_prereq
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
	@echo
	@echo "Build finished. The HTML pages are in $(subdir)/$(BUILDDIR)/html."

linkcheck: sphinx_prereq
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
	@echo
	@echo "Link check complete; look for any errors in the above output " \
	      "or in $(subdir)/$(BUILDDIR)/linkcheck/output.txt."

dist-hook:
	$(MAKE) html
	rm -rf $(BUILDDIR)/doctrees
	cp -r $(BUILDDIR)/html $(distdir)/../
	@ # Remove build artifacts.
	rm $(distdir)/../html/.buildinfo $(distdir)/../html/*.inv

distclean-local:
	rm -rf $(BUILDDIR)

include/cli.rst: $(top_builddir)/bin/varnishd/varnishd
	$(top_builddir)/bin/varnishd/varnishd -x cli > ${@}_
	mv -f ${@}_ ${@}

include/params.rst: $(top_builddir)/bin/varnishd/varnishd
	$(top_builddir)/bin/varnishd/varnishd -x parameter > ${@}_
	mv -f ${@}_ ${@}

include/options.rst: $(top_builddir)/bin/varnishd/varnishd
	$(top_builddir)/bin/varnishd/varnishd -x options > ${@}_
	mv -f ${@}_ ${@}

include/counters.rst:
	ln -s $(abs_top_builddir)/lib/libvsc/counters.rst $@

include/varnishncsa_options.rst: $(top_builddir)/bin/varnishncsa/varnishncsa
	$(top_builddir)/bin/varnishncsa/varnishncsa --options > ${@}_
	mv -f ${@}_ ${@}
include/varnishncsa_synopsis.rst: $(top_builddir)/bin/varnishncsa/varnishncsa
	$(top_builddir)/bin/varnishncsa/varnishncsa --synopsis > ${@}_
	mv -f ${@}_ ${@}

include/varnishlog_options.rst: $(top_builddir)/bin/varnishlog/varnishlog
	$(top_builddir)/bin/varnishlog/varnishlog --options > ${@}_
	mv -f ${@}_ ${@}
include/varnishlog_synopsis.rst: $(top_builddir)/bin/varnishlog/varnishlog
	$(top_builddir)/bin/varnishlog/varnishlog --synopsis > ${@}_
	mv -f ${@}_ ${@}

include/varnishtop_options.rst: $(top_builddir)/bin/varnishtop/varnishtop
	$(top_builddir)/bin/varnishtop/varnishtop --options > ${@}_
	mv -f ${@}_ ${@}
include/varnishtop_synopsis.rst: $(top_builddir)/bin/varnishtop/varnishtop
	$(top_builddir)/bin/varnishtop/varnishtop --synopsis > ${@}_
	mv -f ${@}_ ${@}

include/varnishhist_options.rst: $(top_builddir)/bin/varnishhist/varnishhist
	$(top_builddir)/bin/varnishhist/varnishhist --options > ${@}_
	mv -f ${@}_ ${@}
include/varnishhist_synopsis.rst: $(top_builddir)/bin/varnishhist/varnishhist
	$(top_builddir)/bin/varnishhist/varnishhist --synopsis > ${@}_
	mv -f ${@}_ ${@}

include/varnishstat_options.rst: $(top_builddir)/bin/varnishstat/varnishstat
	$(top_builddir)/bin/varnishstat/varnishstat --options > ${@}_
	mv -f ${@}_ ${@}
include/varnishstat_synopsis.rst: $(top_builddir)/bin/varnishstat/varnishstat
	$(top_builddir)/bin/varnishstat/varnishstat --synopsis > ${@}_
	mv -f ${@}_ ${@}
include/varnishstat_bindings.rst: $(top_builddir)/bin/varnishstat/varnishstat
	$(top_builddir)/bin/varnishstat/varnishstat --bindings > ${@}_
	mv -f ${@}_ ${@}

include/vsl-tags.rst: $(top_builddir)/lib/libvarnishapi/vsl2rst
	$(top_builddir)/lib/libvarnishapi/vsl2rst > ${@}_
	mv -f ${@}_ ${@}
include/vtc-syntax.rst: $(srcdir)/vtc-syntax.py $(VTCSYN_SRC)
	$(AM_V_GEN) $(PYTHON) $(srcdir)/vtc-syntax.py $(VTCSYN_SRC) > ${@}_
	@mv -f ${@}_ ${@}

# XXX copy/paste rules need some TLC

include/vmod_std.generated.rst: $(top_builddir)/vmod/vmod_std.rst
	cp $(top_builddir)/vmod/vmod_std.rst $@

include/vmod_directors.generated.rst: $(top_builddir)/vmod/vmod_directors.rst
	cp $(top_builddir)/vmod/vmod_directors.rst $@

include/vmod_purge.generated.rst: $(top_builddir)/vmod/vmod_purge.rst
	cp $(top_builddir)/vmod/vmod_purge.rst $@

include/vmod_vtc.generated.rst: $(top_builddir)/vmod/vmod_vtc.rst
	cp $(top_builddir)/vmod/vmod_vtc.rst $@

include/vmod_blob.generated.rst: $(top_builddir)/vmod/vmod_blob.rst
	cp $(top_builddir)/vmod/vmod_blob.rst $@

include/vmod_cookie.generated.rst: $(top_builddir)/vmod/vmod_cookie.rst
	cp $(top_builddir)/vmod/vmod_cookie.rst $@

include/vmod_h2.generated.rst: $(top_builddir)/vmod/vmod_h2.rst
	cp $(top_builddir)/vmod/vmod_h2.rst $@

include/vmod_unix.generated.rst: $(top_builddir)/vmod/vmod_unix.rst
	cp $(top_builddir)/vmod/vmod_unix.rst $@

include/vmod_proxy.generated.rst: $(top_builddir)/vmod/vmod_proxy.rst
	cp $(top_builddir)/vmod/vmod_proxy.rst $@

.NOPATH: $(BUILT_SOURCES)

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
