# Makefile.in generated by automake 1.17 from Makefile.am.
# docs/man/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994-2024 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.



# Network UPS Tools: man pages
#

# Notes:
# - sources (.txt) and groff formats are both distributed,
# - only sources are versioned ; groff files are generated at worst
#   during 'make dist' (while preparing a release tarball)
# - HTML files are built upon request, if AsciiDoc is available,
# - groff update will only happen if AsciiDoc is available too,
# - all this can probably (and hopefully) be improved, but I've not
#   found a way to do pattern replacement on the fly for target deps!
#   FIXME: investigate an autogen.sh hook
# - Ref: http://www.gnu.org/software/hello/manual/automake/Man-pages.html
# - WITH_MANS can be enabled if either we are building man-pages, or if
#   the --with-doc=man=auto detected an inability to build the man-pages
#   but enabled the DOC_INSTALL_DISTED_MANS toggle so we deliver disted
#   files from source tree
# - Man page lists are collected into several patterns of make variables
#   (FIXME? to simplify?) :
#   * INST_MAN_xxx_PAGES, INST_HTML_xxx_PAGES: what we would install
#     (if building of man/HTML pages, and perhaps an optional tool building,
#     are enabled);
#   * MAN_xxx_PAGES: what we actually enable to build and deliver (may be empty);
#   * HTML_xxx_PAGES: populated most of the time, buildable optionally;
#   * DIST_ALL_PAGES: all known page file names, to help ensure dist archive
#     contains everything that any build may want (even if missing tools to
#     build the docs from scratch, or choosing not to do that for speed).
#   * DIST_ALL_MAN_PAGES: all known MAN page file names, to help ensure dist archive
#   * DIST_ALL_HTML_PAGES: all known HTML page file names, to help ensure nut-website


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))
am__rm_f = rm -f $(am__rm_f_notfound)
am__rm_rf = rm -rf $(am__rm_f_notfound)
pkgdatadir = $(datadir)/nut
pkgincludedir = $(includedir)/nut
pkglibdir = $(libdir)/nut
pkglibexecdir = $(libexecdir)/nut
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 = i686-mageia-linux-gnu
host_triplet = i686-mageia-linux-gnu
target_triplet = i686-mageia-linux-gnu
# Give it our best shot; do not try if we know we would fail
# Do not distcheck-light-DIST_ALL_MAN_PAGES for fake pages either -
# this is up to caller and use-case
#am__append_1 = all-man
#am__append_2 = all-html
#am__append_3 = all-html
am__append_4 = $(SRC_DRIVERTOOL_PAGES_NDE)
am__append_5 = $(MAN_DRIVERTOOL_PAGES_NDE)
am__append_6 = $(HTML_DRIVERTOOL_PAGES_NDE)
##am__append_7 = $(SRC_DRIVERTOOL_PAGES_NDE)
##am__append_8 = $(MAN_DRIVERTOOL_PAGES_NDE)
##am__append_9 = $(HTML_DRIVERTOOL_PAGES_NDE)
# Not installed now, but still distributed
#am__append_10 = $(MAN_DRIVERTOOL_PAGES_NDE)
#am__append_11 = $(SRC_DRIVERTOOL_PAGES_NDE)
#am__append_12 = $(MAN_DRIVERTOOL_PAGES_NDE)
#am__append_13 = $(HTML_DRIVERTOOL_PAGES_NDE)
#am__append_14 = nut.exe.txt
#am__append_15 = $(MAN_CLIENT_PAGES_ADDON_NUT_EXE)
##am__append_16 = $(MAN_CLIENT_PAGES_ADDON_NUT_EXE)
am__append_17 = nut.exe.txt
am__append_18 = $(MAN_CLIENT_PAGES_ADDON_NUT_EXE)
#am__append_19 = NUT-Monitor.txt
#am__append_20 = $(MAN_CLIENT_PAGES_ADDON_NUT_MONITOR)
##am__append_21 = $(MAN_CLIENT_PAGES_ADDON_NUT_MONITOR)
am__append_22 = NUT-Monitor.txt
am__append_23 = $(MAN_CLIENT_PAGES_ADDON_NUT_MONITOR)
#am__append_24 = nut.exe.html
am__append_25 = nut.exe.html
#am__append_26 = NUT-Monitor.html
am__append_27 = NUT-Monitor.html
am__append_28 = $(MAN_CGI_CFG_PAGES)
am__append_29 = $(MAN_CGI_CMD_SYS_PAGES)
am__append_30 = $(MAN_DEV_API_PAGES)
am__append_31 = $(MAN_DEV_CMD_SYS_PAGES)
#am__append_32 = $(MAN_DEV_CMD_USR_PAGES)

# Drivers related manpages

# If (--with-drivers=...) then we only build specific documents, however
# still do track (and EXTRA_DIST, and spellcheck) all available sources.
#am__append_33 = $(DRIVER_MAN_LIST)
# Temporary, until ported to more OSes
am__append_34 = \
	nhs_ser.$(MAN_SECTION_CMD_SYS)

am__append_35 = $(MAN_SERIAL_PAGES)

# Temporary, until ported to more OSes
am__append_36 = \
	nhs_ser.html

#am__append_37 = \
#	nhs_ser.html


# FIXME? Refine for nhs_ser.txt?
# FIXME? Refine for HTML etc.?
am__append_38 = $(SRC_SERIAL_PAGES)
#am__append_39 = $(SRC_SERIAL_PAGES)
am__append_40 = $(MAN_SNMP_PAGES)

# FIXME? Refine for HTML etc.?
am__append_41 = $(SRC_SNMP_PAGES)
#am__append_42 = $(SRC_SNMP_PAGES)
am__append_43 = $(MAN_USB_LIBUSB_PAGES)

# FIXME? Refine for HTML etc.?
am__append_44 = $(SRC_USB_LIBUSB_PAGES)
#am__append_45 = $(SRC_USB_LIBUSB_PAGES)
am__append_46 = $(MAN_SERIAL_USB_PAGES)
#am__append_47 = $(MAN_SERIAL_USB_PAGES)

# FIXME? Refine for HTML etc.?
am__append_48 = $(SRC_SERIAL_USB_PAGES)
#am__append_49 = $(SRC_SERIAL_USB_PAGES)
#am__append_50 = $(SRC_SERIAL_USB_PAGES)
am__append_51 = $(MAN_NETXML_PAGES)

# FIXME? Refine for HTML etc.?
am__append_52 = $(SRC_NETXML_PAGES)
#am__append_53 = $(SRC_NETXML_PAGES)
am__append_54 = $(MAN_POWERMAN_PAGES)

# FIXME? Refine for HTML etc.?
am__append_55 = $(SRC_POWERMAN_PAGES)
#am__append_56 = $(SRC_POWERMAN_PAGES)
am__append_57 = $(MAN_IPMIPSU_PAGES)

# FIXME? Refine for HTML etc.?
am__append_58 = $(SRC_IPMIPSU_PAGES)
#am__append_59 = $(SRC_IPMIPSU_PAGES)
#am__append_60 = $(MAN_MACOSX_PAGES)

# FIXME? Refine for HTML etc.?
#am__append_61 = $(SRC_MACOSX_PAGES)
#am__append_62 = $(SRC_MACOSX_PAGES)
#am__append_63 = $(MAN_MODBUS_PAGES)

# FIXME? Refine for HTML etc.?
#am__append_64 = $(SRC_MODBUS_PAGES)
#am__append_65 = $(SRC_MODBUS_PAGES)
am__append_66 = $(MAN_LINUX_I2C_PAGES)

# FIXME? Refine for HTML etc.?
am__append_67 = $(SRC_LINUX_I2C_PAGES)
#am__append_68 = $(SRC_LINUX_I2C_PAGES)
#am__append_69 = $(MAN_GPIO_PAGES)

# FIXME? Refine for HTML etc.?
#am__append_70 = $(SRC_GPIO_PAGES)
#am__append_71 = $(SRC_GPIO_PAGES)
am__append_72 = \
	$(MAN_CONF_PAGES) \
	$(MAN_MISC_PAGES) \
	$(MAN_CLIENT_PAGES) \
	$(MAN_TOOL_PAGES) \
	$(MAN_CGI_CFG_PAGES) \
	$(MAN_CGI_CMD_SYS_PAGES) \
	$(MAN_DEV_CMD_USR_PAGES) \
	$(MAN_DEV_API_PAGES) \
	$(MAN_DEV_CMD_SYS_PAGES) \
	$(MAN_SERIAL_PAGES) \
	$(MAN_SNMP_PAGES) \
	$(MAN_USB_LIBUSB_PAGES) \
	$(MAN_SERIAL_USB_PAGES) \
	$(MAN_NETXML_PAGES) \
	$(MAN_POWERMAN_PAGES) \
	$(MAN_IPMIPSU_PAGES) \
	$(MAN_MACOSX_PAGES) \
	$(MAN_MODBUS_PAGES) \
	$(MAN_LINUX_I2C_PAGES) \
	$(MAN_GPIO_PAGES)


# (Legacy note) The list above probably came up empty in this case, so make sure
# that the drivers requested by configure script are documented in the build;
# notably in the linkman-driver-names.txt file.
#am__append_73 = \
#	$(DRIVER_MAN_LIST_PAGES)

#am__append_74 = $(HTML_MANS)
#am__append_75 = $(HTML_MANS)
#am__append_76 = check-html-man
#am__append_77 = check-html-man

# Only clean away build products if we can reproduce them
# including cases where we generate placeholders
am__append_78 = *.$(MAN_SECTION_CMD_USR) *.$(MAN_SECTION_API) *.$(MAN_SECTION_CFG) *.$(MAN_SECTION_CMD_SYS) *.$(MAN_SECTION_MISC)
##am__append_79 = *.$(MAN_SECTION_CMD_USR) *.$(MAN_SECTION_API) *.$(MAN_SECTION_CFG) *.$(MAN_SECTION_CMD_SYS) *.$(MAN_SECTION_MISC)

# Only clean away build products if we can reproduce them
#am__append_80 = *.xml *.html *.pdf
subdir = docs/man
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_c___attribute__.m4 \
	$(top_srcdir)/m4/ax_c_pragmas.m4 \
	$(top_srcdir)/m4/ax_check_compile_flag.m4 \
	$(top_srcdir)/m4/ax_compare_version.m4 \
	$(top_srcdir)/m4/ax_realpath.m4 \
	$(top_srcdir)/m4/ax_realpath_lib.m4 \
	$(top_srcdir)/m4/ax_run_or_link_ifelse.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)/m4/nut_arg_with.m4 \
	$(top_srcdir)/m4/nut_check_asciidoc.m4 \
	$(top_srcdir)/m4/nut_check_aspell.m4 \
	$(top_srcdir)/m4/nut_check_bool.m4 \
	$(top_srcdir)/m4/nut_check_cppcheck.m4 \
	$(top_srcdir)/m4/nut_check_headers_windows.m4 \
	$(top_srcdir)/m4/nut_check_libavahi.m4 \
	$(top_srcdir)/m4/nut_check_libfreeipmi.m4 \
	$(top_srcdir)/m4/nut_check_libgd.m4 \
	$(top_srcdir)/m4/nut_check_libgpiod.m4 \
	$(top_srcdir)/m4/nut_check_libltdl.m4 \
	$(top_srcdir)/m4/nut_check_libmodbus.m4 \
	$(top_srcdir)/m4/nut_check_libneon.m4 \
	$(top_srcdir)/m4/nut_check_libnetsnmp.m4 \
	$(top_srcdir)/m4/nut_check_libnss.m4 \
	$(top_srcdir)/m4/nut_check_libopenssl.m4 \
	$(top_srcdir)/m4/nut_check_libpowerman.m4 \
	$(top_srcdir)/m4/nut_check_libregex.m4 \
	$(top_srcdir)/m4/nut_check_libsystemd.m4 \
	$(top_srcdir)/m4/nut_check_libusb.m4 \
	$(top_srcdir)/m4/nut_check_libwrap.m4 \
	$(top_srcdir)/m4/nut_check_os.m4 \
	$(top_srcdir)/m4/nut_check_pkgconfig.m4 \
	$(top_srcdir)/m4/nut_check_python.m4 \
	$(top_srcdir)/m4/nut_check_socketlib.m4 \
	$(top_srcdir)/m4/nut_compiler_family.m4 \
	$(top_srcdir)/m4/nut_func_getnameinfo_argtypes.m4 \
	$(top_srcdir)/m4/nut_report_feature.m4 \
	$(top_srcdir)/m4/nut_stash_warnings.m4 \
	$(top_srcdir)/m4/nut_type_socklen_t.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)/include/config.h
CONFIG_CLEAN_FILES = asciidoc.conf
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__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
  for p in $$list; do echo "$$p $$p"; done | \
  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
    if (++n[$$2] == $(am__install_max)) \
      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
    END { for (dir in files) print dir, files[dir] }'
am__base_list = \
  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
  { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
  || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
       $(am__cd) "$$dir" && echo $$files | $(am__xargs_n) 40 $(am__rm_f); }; \
  }
am__installdirs = "$(DESTDIR)$(htmlmandir)" "$(DESTDIR)$(manapidir)" \
	"$(DESTDIR)$(mancfgdir)" "$(DESTDIR)$(manmiscdir)" \
	"$(DESTDIR)$(mansysdir)" "$(DESTDIR)$(manusrdir)"
DATA = $(htmlman_DATA) $(manapi_DATA) $(mancfg_DATA) $(manmisc_DATA) \
	$(mansys_DATA) $(manusr_DATA)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/asciidoc.conf.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
A2X = 
ACLOCAL = ${SHELL} '/home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/missing' aclocal-1.17
ALTPIDPATH = /var/state/ups
AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY = 0
AR = /usr/bin/ar
ASCIIDOC = 
ASCIIDOC_LINKMANEXT_SECTION_REWRITE = yes
ASCIIDOC_TEMPLATE_LINKMANEXT = https://linux.die.net/man/{0}/{target}
ASCIIDOC_TEMPLATE_LINKMANEXT2 = https://linux.die.net/man/{2}/{target}
ASPELL = 
ASPELL_FILTER_LIB_PATH = none
ASPELL_FILTER_SHARE_PATH = none
ASPELL_FILTER_TEX_PATH = none
AUGPARSE = none
AUTOCONF = ${SHELL} '/home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/missing' autoconf
AUTOHEADER = ${SHELL} '/home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/missing' autoheader
AUTOMAKE = ${SHELL} '/home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/missing' automake-1.17
AWK = gawk
BINDIR = /usr/bin
BSDKVMPROCLIBS = 
CC = gcc
CCACHE_BASEDIR = 
CCACHE_DIR = 
CCACHE_NAMESPACE = nut:i686-mageia-linux-gnu
CCACHE_PATH = 
CCDEPMODE = depmode=none
CFLAGS = -isystem /usr/local/include  -O2 -g -pipe -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wno-reserved-identifier -Wno-unknown-warning-option -std=gnu99 -Wno-system-headers -Wall -Wextra -Wsign-compare -pedantic -Wno-error  -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
CONFIG_CFLAGS =  -O2 -g -pipe -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full
CONFIG_CPPFLAGS = 
CONFIG_CXXFLAGS =  -O2 -g -pipe -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full
CONFIG_FLAGS = --host=i686-mageia-linux-gnu --build=i686-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-all --with-libltdl --without-hal --without-modbus --without-gpio --with-cgi --disable-static --sysconfdir=/etc/ups --with-neon --with-statepath=/var/state/ups --with-drvpath=/usr/sbin --with-cgipath=/usr/lib/nut --with-htmlpath=/usr/lib/nut --with-pidpath=/run/nut --with-port=3493 --with-user=ups --with-group=ups --with-systemdsystemunitdir=/usr/lib/systemd/system --with-pkgconfig-dir=/usr/lib/pkgconfig --with-udev-dir=/usr/lib/udev
CONFIG_LDFLAGS = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
CONFPATH = /etc/ups
CPP = gcc -E
CPPCHECK = 
CPPFLAGS = 
CPPUNIT_CFLAGS = 
CPPUNIT_LIBS = 
CPPUNIT_NUT_CXXFLAGS = 
CSCOPE = cscope
CTAGS = ctags
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=none
CXXFLAGS = -isystem /usr/local/include  -O2 -g -pipe -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wno-reserved-identifier -Wno-unknown-warning-option -std=gnu++11 -Wno-system-headers -Wall -Wextra -Wno-error  -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
CYGPATH = 
CYGPATH_W = echo
DBLATEX = 
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DEPLOYED_DUMMYUPS = 
DEPLOYED_UPSC = 
DEPLOYED_UPSD = 
DEPLOYED_UPSIMAGE = 
DLLTOOL = false
DOC_BUILD_LIST = 
DOC_CHECK_LIST = 
DRIVER_BUILD_LIST = all
DRIVER_INSTALL_TARGET = 
DRIVER_MAN_LIST = all
DRIVER_MAN_LIST_PAGES = 
DRVPATH = /usr/sbin
DSYMUTIL = 
DUMPBIN = 
ECHO_C = 
ECHO_N = -n
ECHO_T = 

# Is "egrep == grep -E" always valid? (maybe all a job for configure.ac)
#EGREP = egrep
EGREP = grep -E
ETAGS = etags
EXEEXT = 
FGREP = /usr/bin/grep -F
FILECMD = file
FORCE_NUT_VERSION = FORCE
GDLIB_CONFIG = 
GETENT = getent
GITLOG_END_POINT = HEAD
GITLOG_START_POINT = v2.6.0
GREP = /usr/bin/grep
HAVE_SYS_SOCKET_H = 1
HAVE_WINSOCK2_H = 0
HAVE_WS2TCPIP_H = 0
ID = id
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld
LDD = /usr/bin/ldd
LDFLAGS = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
LDFLAGS_NUT_RPATH = 
LDFLAGS_NUT_RPATH_CXX = 
LIBAVAHI_CFLAGS = -D_REENTRANT
LIBAVAHI_LIBS = -lavahi-core -lavahi-common -lavahi-client
LIBDIR = /usr/lib
LIBGD_CFLAGS = -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libxml2 -I/usr/include/webp -DAVIF_DLL -I/usr/include/rav1e -I/usr/include/svt-av1 -DEB_DLL -I/usr/include/libvmaf
LIBGD_LDFLAGS =  -lgd
LIBGPIO_CFLAGS = 
LIBGPIO_LIBS = 
LIBI2C_LIBS = -li2c 
LIBIPMI_CFLAGS = 
LIBIPMI_LIBS = -lfreeipmi -lipmimonitoring
LIBLTDL_CFLAGS = 
LIBLTDL_LIBS = -lltdl  
LIBMODBUS_CFLAGS = 
LIBMODBUS_LIBS = 
LIBNEON_CFLAGS = -I/usr/include/neon -D_LARGEFILE64_SOURCE -DNE_LFS
LIBNEON_LIBS = -lneon
LIBNETSNMP_CFLAGS = 
LIBNETSNMP_LIBS = -lnetsnmp
LIBOBJS = 
LIBPOWERMAN_CFLAGS = 
LIBPOWERMAN_LIBS = -lpowerman
LIBREGEX_LIBS = 
LIBS = 
LIBSSL_CFLAGS = 
LIBSSL_LDFLAGS_RPATH = 
LIBSSL_LIBS = -lssl -lcrypto
LIBSSL_REQUIRES = openssl
LIBSYSTEMD_CFLAGS = 
LIBSYSTEMD_LIBS = -lsystemd
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_DEPS = ././/ltmain.sh
LIBUSB_CFLAGS = -I/usr/include/libusb-1.0
LIBUSB_CONFIG = /usr/bin/libusb-config
LIBUSB_LIBS = -lusb-1.0
LIBWRAP_CFLAGS = 
LIBWRAP_LIBS = -lnsl  -lwrap
LIPO = 
LN_S = ln -s
LN_S_R = ln -s -r
LTLIBOBJS = 
LT_SYS_LIBRARY_PATH = /usr/lib:
MAINT = #
MAKEINFO = ${SHELL} '/home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/missing' makeinfo
MANIFEST_TOOL = :
MAN_DIR_AS_BASE = yes
MAN_SECTION_API = 3

### Possible man page section remapping in some distros:
# (3) Library calls:
MAN_SECTION_API_BASE = 3
MAN_SECTION_CFG = 5
# (5) File formats and configuration files:
MAN_SECTION_CFG_BASE = 5
MAN_SECTION_CMD_SYS = 8
# (8) System management commands:
MAN_SECTION_CMD_SYS_BASE = 8
MAN_SECTION_CMD_USR = 1
# (1) User commands (Programs):
MAN_SECTION_CMD_USR_BASE = 1
MAN_SECTION_MISC = 7
# (7) Overview, conventions, and miscellaneous:
MAN_SECTION_MISC_BASE = 7
MKDIR_P = /usr/bin/mkdir -p
MSGFMT = /usr/bin/msgfmt
NETLIBS = 
NETLIBS_GETADDRS = 
NET_SNMP_CONFIG = /usr/bin/net-snmp-config
NM = /usr/bin/nm -B
NMEDIT = 
NUT_AM_EXPORT_CCACHE_BASEDIR = #
NUT_AM_EXPORT_CCACHE_DIR = #
NUT_AM_EXPORT_CCACHE_NAMESPACE = 
NUT_AM_EXPORT_CCACHE_PATH = #
NUT_AM_MAKE_CAN_EXPORT = 
NUT_CONFIG_CFLAGS = -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full
NUT_CONFIG_CPPFLAGS = 
NUT_CONFIG_CXXFLAGS = -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full
NUT_CONFIG_LDFLAGS = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
NUT_DATADIR = /usr/share
NUT_LIBEXECDIR = /usr/libexec
NUT_MANDIR = /usr/share/man
NUT_NETVERSION = 1.3
NUT_SOURCE_GITREV = 2.8.4
NUT_SOURCE_GITREV_IS_PRERELEASE = false
NUT_SOURCE_GITREV_IS_RELEASE = true
NUT_SOURCE_GITREV_NUMERIC = 2.8.4
NUT_SOURCE_GITREV_SEMVER = 2.8.4

# Other rewritable properties:
NUT_WEBSITE_BASE = https://www.networkupstools.org/historic/v2.8.4
OBJDUMP = objdump
OBJEXT = o
OS_NAME = mageia
OTOOL = 
OTOOL64 = 
PACKAGE = nut
PACKAGE_BUGREPORT = https://github.com/networkupstools/nut/issues
PACKAGE_NAME = nut
PACKAGE_STRING = nut 2.8.4
PACKAGE_TARNAME = nut
PACKAGE_URL = https://www.networkupstools.org/historic/v2.8.4/index.html
PACKAGE_VERSION = 2.8.4
PATH_DURING_CONFIGURE = /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/iurt/.local/bin:/home/iurt/bin
PATH_SEPARATOR = :
PIDPATH = /run/nut
PKGCONFIGDIR = /usr/lib/pkgconfig
PKG_CONFIG = /usr/bin/i686-mageia-linux-gnu-pkg-config
PKG_CONFIG_LIBDIR = 
PKG_CONFIG_PATH = :/usr/lib/pkgconfig:/usr/share/pkgconfig
PORT = 3493
POWERDOWNFLAG = /etc/killpower
PREFIX = /usr
PWDTOOL = 
PYTHON = /usr/bin/python
PYTHON2 = 
PYTHON2_SITE_PACKAGES = 
PYTHON3 = /usr/bin/python3.13
PYTHON3_SITE_PACKAGES = /usr/lib/python3.13/site-packages
PYTHON_SITE_PACKAGES = /usr/lib/python3.13/site-packages
RANLIB = ranlib
REALPATH = realpath
RUN_AS_GROUP = ups
RUN_AS_USER = ups
SBINDIR = /usr/sbin
SED = /usr/bin/sed
SEMLIBS = 
SERLIBS = 
SET_MAKE = 
SHELL = /bin/sh
SOURCE_HIGHLIGHT = /usr/bin/source-highlight
STATEPATH = /var/state/ups
STRIP = strip
SUN_LIBUSB = 
SYSTEMCTL = systemctl
SYSTEMD_ANALYZE_PROGRAM = /usr/bin/systemd-analyze
SYSTEMD_DAEMON_ARGS_DRIVER = 
SYSTEMD_DAEMON_ARGS_UPSD = -F
SYSTEMD_DAEMON_ARGS_UPSLOG = -F
SYSTEMD_DAEMON_ARGS_UPSMON = -F
SYSTEMD_DAEMON_NOTIFYACCESS_DRIVER = 
SYSTEMD_DAEMON_NOTIFYACCESS_UPSD = 
SYSTEMD_DAEMON_NOTIFYACCESS_UPSLOG = 
SYSTEMD_DAEMON_NOTIFYACCESS_UPSMON = 
SYSTEMD_DAEMON_TYPE_DRIVER = forking
SYSTEMD_DAEMON_TYPE_UPSD = simple
SYSTEMD_DAEMON_TYPE_UPSLOG = simple
SYSTEMD_DAEMON_TYPE_UPSMON = simple
SYSTEMD_DAEMON_WATCHDOG_DRIVER = #WatchdogSec=240s
SYSTEMD_DAEMON_WATCHDOG_UPSD = #WatchdogSec=240s
SYSTEMD_DAEMON_WATCHDOG_UPSLOG = #WatchdogSec=240s
SYSTEMD_DAEMON_WATCHDOG_UPSMON = #WatchdogSec=240s
SYSTEMD_SYSTEMCTL_PROGRAM = /usr/bin/systemctl
SYSTEMD_TMPFILES_PROGRAM = /usr/bin/systemd-tmpfiles
TREE_VERSION = 2.8
VALGRIND = none
VERSION = 2.8.4
WINDMC = none
WINDRES = none
WORDS_BIGENDIAN = 
XMLLINT = /usr/bin/xmllint
XSLTPROC = /usr/bin/xsltproc
abs_builddir = /home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/docs/man
abs_srcdir = /home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/docs/man
abs_top_builddir = /home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4
abs_top_srcdir = /home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4
ac_ct_AR = 
ac_ct_CC = 
ac_ct_CXX = 
ac_ct_DLLTOOL = 
ac_ct_DUMPBIN = 
ac_ct_LD = 
ac_ct_OBJDUMP = objdump
am__include = include
am__leading_dot = .
am__quote = 
am__rm_f_notfound = 
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} xf -
am__xargs_n = xargs -n
auglensdir = 
auglenstestsdir = 
bindir = /usr/bin
build = i686-mageia-linux-gnu
build_alias = i686-mageia-linux-gnu
build_cpu = i686
build_os = linux-gnu
build_vendor = mageia
builddir = .
cgiexecdir = /usr/lib/nut
datadir = /usr/share
datarootdir = ${prefix}/share
devddir = 
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
driverexecdir = /usr/sbin
dummy_PKG_CONFIG = 
dummy_PKG_CONFIG_CFLAGS = 
dummy_PKG_CONFIG_LIBS = 
dvidir = ${docdir}
exec_prefix = /usr
freebsdquirksdir = 
host = i686-mageia-linux-gnu
host_alias = i686-mageia-linux-gnu
host_cpu = i686
host_os = linux-gnu
host_vendor = mageia
hotplugdir = 
htmldir = /usr/lib/nut
htmldocdir = ${docdir}/html-doc
htmlmandir = ${docdir}/html-man
includedir = /usr/include
infodir = /usr/share/info
install_sh = ${SHELL} /home/iurt/rpmbuild/BUILD/nut-2.8.4-build/nut-2.8.4/install-sh
libdir = /usr/lib
libexecdir = /usr/libexec
localedir = ${datarootdir}/locale
localstatedir = /var
mandir = /usr/share/man
mkdir_p = $(MKDIR_P)
now = 2025-11-18
nut_with_nut_monitor = no
nut_with_nut_monitor_desktop = 
nut_with_nut_monitor_dir = ${prefix}/share/nut-monitor
nut_with_nut_monitor_py2gtk2 = 
nut_with_nut_monitor_py3qt5 = 
nut_with_nut_monitor_py3qt6 = 
nut_with_pynut = yes
nut_with_pynut_py = yes
nut_with_pynut_py2 = 
nut_with_pynut_py3 = yes
oldincludedir = /usr/include
pdfdir = ${docdir}
pkgconfigdir = /usr/lib/pkgconfig
prefix = /usr
program_transform_name = s&^&&
psdir = ${docdir}
runstatedir = /run
sbindir = /usr/sbin
sharedstatedir = /var/lib
srcdir = .
sysconfdir = /etc/ups
systemdshutdowndir = /usr/lib/systemd/system-shutdown
systemdsystempresetdir = /usr/lib/systemd/system-preset
systemdsystemunitdir = /usr/lib/systemd/system
systemdtmpfilesdir = /usr/lib/tmpfiles.d
target = i686-mageia-linux-gnu
target_alias = 
target_cpu = i686
target_os = linux-gnu
target_vendor = mageia
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..
udevdir = /usr/lib/udev

# distribute everything, even those not installed by default
# Note that 'dist' target requires AsciiDoc!
SRC_ALL_PAGES = index.txt $(am__append_17) $(am__append_22) \
	$(SRC_CONF_PAGES) $(SRC_MISC_PAGES) $(SRC_CLIENT_PAGES) \
	$(SRC_TOOL_PAGES) $(SRC_CGI_PAGES) $(SRC_DEV_PAGES) \
	$(SRC_DRIVERS_PAGES) networked_hostnames.txt index.txt

# Populate these lists depending on DOC_INSTALL_SELECTED_MANS_PROGS_BUILT toggle
# FIXME: Track also clients (e.g. NUT-Monitor UI, etc.), development-only tools
#  (sockdebug), or platform-specific progs (nut.exe)
LINKMAN_PAGES_DRIVERS = $(am__append_38) $(am__append_39) \
	$(am__append_41) $(am__append_42) $(am__append_44) \
	$(am__append_45) $(am__append_48) $(am__append_49) \
	$(am__append_50) $(am__append_52) $(am__append_53) \
	$(am__append_55) $(am__append_56) $(am__append_58) \
	$(am__append_59) $(am__append_61) $(am__append_62) \
	$(am__append_64) $(am__append_65) $(am__append_67) \
	$(am__append_68) $(am__append_70) $(am__append_71)

# Consider what we install or not (to list in linkman* files)
LINKMAN_PAGES_DRIVERTOOLS = upsdrvctl.txt $(am__append_4) \
	$(am__append_7) $(am__append_11)

# Used for dist completeness checks; the actual build products
# (depending on enabled features) are in MAN_MANS and HTML_MANS.
# This does not necessarily trigger the build, just allows us
# to check if they all exist.
DIST_ALL_MAN_PAGES = $(INST_MAN_CONF_PAGES) $(INST_MAN_MISC_PAGES) \
	$(am__append_10) $(INST_MAN_CLIENT_PAGES) $(am__append_16) \
	$(am__append_18) $(am__append_21) $(am__append_23) \
	$(INST_MAN_TOOL_PAGES) $(INST_MAN_CGI_CFG_PAGES) \
	$(INST_MAN_CGI_CMD_SYS_PAGES) $(INST_MAN_DEV_API_PAGES) \
	$(INST_MAN_DEV_CMD_USR_PAGES) $(INST_MAN_DEV_CMD_SYS_PAGES) \
	$(INST_MAN_SERIAL_PAGES) nhs_ser.$(MAN_SECTION_CMD_SYS) \
	$(INST_MAN_SNMP_PAGES) $(INST_MAN_USB_LIBUSB_PAGES) \
	$(INST_MAN_SERIAL_USB_PAGES) $(INST_MAN_NETXML_PAGES) \
	$(INST_MAN_POWERMAN_PAGES) $(INST_MAN_IPMIPSU_PAGES) \
	$(INST_MAN_MACOSX_PAGES) $(INST_MAN_MODBUS_PAGES) \
	$(INST_MAN_LINUX_I2C_PAGES)
DIST_ALL_HTML_PAGES = index.html $(INST_HTML_CONF_MANS) \
	$(am__append_25) $(am__append_27) $(INST_HTML_CLIENT_MANS) \
	$(INST_HTML_TOOL_MANS) $(INST_HTML_CGI_MANS) \
	$(INST_HTML_DEV_MANS) $(am__append_37) \
	$(INST_HTML_SERIAL_MANS) $(INST_HTML_SNMP_MANS) \
	$(INST_HTML_USB_LIBUSB_MANS) $(INST_HTML_SERIAL_USB_MANS) \
	$(INST_HTML_NETXML_MANS) $(INST_HTML_POWERMAN_MANS) \
	$(INST_HTML_IPMIPSU_MANS) $(INST_HTML_MACOSX_MANS) \
	$(INST_HTML_MODBUS_MANS) $(INST_HTML_LINUX_I2C_MANS) \
	$(INST_HTML_GPIO_MANS)
# HTML collection is for nut-website primarily, not for tarballs... so far...
DIST_ALL_PAGES = $(DIST_ALL_MAN_PAGES) $(INST_MAN_GPIO_PAGES)
#manapidir = $(mandir)/man$(MAN_SECTION_API)

# Groups and locations for man pages
# NOTE: distros vary about how man page dirs are named
# (base number only, or full e.g. "man1m" in Solaris)
manapidir = $(mandir)/man$(MAN_SECTION_API_BASE)
#mancfgdir = $(mandir)/man$(MAN_SECTION_CFG)
mancfgdir = $(mandir)/man$(MAN_SECTION_CFG_BASE)
#mansysdir = $(mandir)/man$(MAN_SECTION_CMD_SYS)
mansysdir = $(mandir)/man$(MAN_SECTION_CMD_SYS_BASE)
#manusrdir = $(mandir)/man$(MAN_SECTION_CMD_USR)
manusrdir = $(mandir)/man$(MAN_SECTION_CMD_USR_BASE)
#manmiscdir = $(mandir)/man$(MAN_SECTION_MISC)
manmiscdir = $(mandir)/man$(MAN_SECTION_MISC_BASE)
manapi_DATA = $(am__append_30)
mancfg_DATA = $(MAN_CONF_PAGES) $(am__append_28)
mansys_DATA = $(MAN_CLIENT_PAGES) $(MAN_TOOL_PAGES) $(am__append_29) \
	$(am__append_31) $(am__append_33) $(am__append_35) \
	$(am__append_40) $(am__append_43) $(am__append_46) \
	$(am__append_47) $(am__append_51) $(am__append_54) \
	$(am__append_57) $(am__append_60) $(am__append_63) \
	$(am__append_66) $(am__append_69)
manusr_DATA = $(am__append_32)
manmisc_DATA = $(MAN_MISC_PAGES)
ALL_TGT = $(am__append_1) $(am__append_2) $(am__append_3)

# Ensure early build by default automake "all" rule, if it gets used.
BUILT_SOURCES = $(abs_top_builddir)/docs/man/.prep-src-docs all-optional

# Quickly check that we have all needed files (e.g. from configure script)
# Do not ensure they are built/valid/etc.
LIST_FILES = ( \
	echo "  HELPER	$@" >&2 ; \
	MISSING=0; \
	TOTAL=0; \
	for P in $${FILENAMES} ; do \
		TOTAL="`expr $$TOTAL + 1`" ; \
		F="`basename "$$P"`" ; \
		if [ -s "$(abs_builddir)/$$F" ] ; then \
				echo "BUILDDIR: $(builddir)/$$F" ; \
		else \
			if [ -s "$(abs_srcdir)/$$F" ] ; then \
				echo "SRCDIR:   $(srcdir)/$$F" ; \
			else \
				echo "MISSING:  $$F" >&2 ; \
				MISSING="`expr $$MISSING + 1`" ; \
			fi ; \
		fi ; \
	done ; \
	if [ x"$$MISSING" = x0 ] ; then echo "$@: SUCCESS ($$TOTAL files are all present)" >&2 ; else echo "$@: FAILED ($$MISSING files of $$TOTAL are missing, see above)" >&2 ; exit 1 ; fi ; \
)

##FAKE_PAGES_BUMP_SRC = true
#FAKE_PAGES_BUMP_SRC = false
FAKE_PAGES_BUMP_SRC = false
FAKE_FILES = ( \
	echo "  HELPER	$@" >&2 ; \
	MISSING=0; \
	TOTAL=0; \
	for P in $${FILENAMES} ; do \
		TOTAL="`expr $$TOTAL + 1`" ; \
		F="`basename "$$P"`" ; \
		if [ ! -s "$(abs_builddir)/$$F" ] && [ ! -s "$(abs_srcdir)/$$F" ] ; then \
			echo "PLACEHOLDER" > "$(abs_builddir)/$$F" ; \
			MISSING="`expr $$MISSING + 1`" ; \
		fi ; \
	done ; \
	if [ x"$$MISSING" = x0 ] ; then echo "$@: SUCCESS ($$TOTAL files are all present)" >&2 ; else echo "$@: FAKED SOME FILES ($$MISSING files of $$TOTAL were missing)" >&2 ; exit 1 ; fi ; \
)


# Unlike helpers above, does not fail if placeholders were seen
FAKE_FILES_RM = ( \
	echo "  HELPER	$@" >&2 ; \
	MISSING=0; \
	TOTAL=0; \
	for P in $${FILENAMES} ; do \
		TOTAL="`expr $$TOTAL + 1`" ; \
		F="`basename "$$P"`" ; \
		if [ -s "$(abs_builddir)/$$F" ] \
		&& [ x"PLACEHOLDER" = x"`cat "$(abs_builddir)/$$F"`" ] ; then \
			rm -f "$(abs_builddir)/$$F" ; \
			MISSING="`expr $$MISSING + 1`" ; \
		fi ; \
	done ; \
	if [ x"$$MISSING" = x0 ] ; then echo "$@: SUCCESS ($$TOTAL files were all real or already absent)" >&2 ; else echo "$@: REMOVED SOME FAKED FILES ($$MISSING files of $$TOTAL were placeholders)" >&2 ; fi ; \
)


# Base configuration and client manpages, always installed
SRC_CONF_PAGES = \
	nut.conf.txt \
	ups.conf.txt \
	upsd.conf.txt \
	upsd.users.txt \
	upsmon.conf.txt \
	upssched.conf.txt

INST_MAN_CONF_PAGES = \
	nut.conf.$(MAN_SECTION_CFG) \
	ups.conf.$(MAN_SECTION_CFG) \
	upsd.conf.$(MAN_SECTION_CFG) \
	upsd.users.$(MAN_SECTION_CFG) \
	upsmon.conf.$(MAN_SECTION_CFG) \
	upssched.conf.$(MAN_SECTION_CFG)

MAN_CONF_PAGES = $(INST_MAN_CONF_PAGES)
INST_HTML_CONF_MANS = \
	nut.conf.html \
	ups.conf.html \
	upsd.conf.html \
	upsd.users.html \
	upsmon.conf.html \
	upssched.conf.html

HTML_CONF_MANS = $(INST_HTML_CONF_MANS)

# "man nut", always installed
SRC_MISC_PAGES = \
	nut.txt

INST_MAN_MISC_PAGES = \
	nut.$(MAN_SECTION_MISC)

HTML_MISC_MANS = $(INST_HTML_MISC_MANS)
MAN_MISC_PAGES = $(INST_MAN_MISC_PAGES)
INST_HTML_MISC_MANS = \
	nut.html


# NOTE: Currently SRC_DRIVERTOOL_PAGES are a separate list to generate
# a linkman-drivertool-names.txt file, but historically remained part
# of MAN/HTML_CLIENT_PAGES in the bigger picture. Why?..
SRC_DRIVERTOOL_PAGES_NDE = \
	nut-driver-enumerator.txt \
	upsdrvsvcctl.txt

MAN_DRIVERTOOL_PAGES_NDE = \
	nut-driver-enumerator.$(MAN_SECTION_CMD_SYS) \
	upsdrvsvcctl.$(MAN_SECTION_CMD_SYS)

HTML_DRIVERTOOL_PAGES_NDE = \
	nut-driver-enumerator.html \
	upsdrvsvcctl.html


# All sources, see below for installed-only footprint:
SRC_DRIVERTOOL_PAGES = \
	upsdrvctl.txt \
	$(SRC_DRIVERTOOL_PAGES_NDE)

SRC_CLIENT_PAGES = $(SRC_DRIVERTOOL_PAGES) nutupsdrv.txt upsc.txt \
	upscmd.txt upsd.txt upslog.txt upsmon.txt upsrw.txt \
	upssched.txt $(am__append_14) $(am__append_19)
INST_MAN_CLIENT_PAGES = nutupsdrv.$(MAN_SECTION_CMD_SYS) \
	upsc.$(MAN_SECTION_CMD_SYS) upscmd.$(MAN_SECTION_CMD_SYS) \
	upsd.$(MAN_SECTION_CMD_SYS) upsdrvctl.$(MAN_SECTION_CMD_SYS) \
	upslog.$(MAN_SECTION_CMD_SYS) upsmon.$(MAN_SECTION_CMD_SYS) \
	upsrw.$(MAN_SECTION_CMD_SYS) upssched.$(MAN_SECTION_CMD_SYS) \
	$(am__append_5) $(am__append_8) $(am__append_12) \
	$(am__append_15) $(am__append_20)
INST_HTML_CLIENT_MANS = nutupsdrv.html upsc.html upscmd.html upsd.html \
	upsdrvctl.html upslog.html upsmon.html upsrw.html \
	upssched.html $(am__append_6) $(am__append_9) $(am__append_13) \
	$(am__append_24) $(am__append_26)
MAN_CLIENT_PAGES = $(INST_MAN_CLIENT_PAGES)
MAN_CLIENT_PAGES_ADDON_NUT_EXE = nut.exe.$(MAN_SECTION_CMD_SYS)
MAN_CLIENT_PAGES_ADDON_NUT_MONITOR = \
	NUT-Monitor-py2gtk2.$(MAN_SECTION_CMD_SYS) \
	NUT-Monitor-py3qt5.$(MAN_SECTION_CMD_SYS) \
	NUT-Monitor-py3qt6.$(MAN_SECTION_CMD_SYS) \
	NUT-Monitor.$(MAN_SECTION_CMD_SYS)


# Can't make this work on all make implementations at once, so disabled for now
# Anyway it would be the same man-like page for several functions
#INST_HTML_CLIENT_MANS_FICTION = \
#	NUT-Monitor-py2gtk2.html \
#	NUT-Monitor-py3qt5.html \
#	NUT-Monitor-py3qt6.html

HTML_CLIENT_MANS = $(INST_HTML_CLIENT_MANS)
SRC_TOOL_PAGES = \
	nut-scanner.txt \
	nut-recorder.txt \
	nutconf.txt


# FIXME: Make nut-scanner and nut-conf pages optional (if tool is enabled)?
INST_MAN_TOOL_PAGES = \
	nut-scanner.$(MAN_SECTION_CMD_SYS) \
	nut-recorder.$(MAN_SECTION_CMD_SYS) \
	nutconf.$(MAN_SECTION_CMD_SYS)

MAN_TOOL_PAGES = $(INST_MAN_TOOL_PAGES)

# FIXME: Make nut-scanner and nut-conf pages optional (if tool is enabled)?
INST_HTML_TOOL_MANS = \
	nut-scanner.html \
	nut-recorder.html \
	nutconf.html

HTML_TOOL_MANS = $(INST_HTML_TOOL_MANS)

# CGI (--with-cgi) related manpages
SRC_CGI_PAGES = \
	hosts.conf.txt \
	upsset.conf.txt \
	upsstats.html.txt \
	upsset.cgi.txt \
	upsstats.cgi.txt \
	upsimage.cgi.txt

INST_MAN_CGI_CFG_PAGES = \
	hosts.conf.$(MAN_SECTION_CFG) \
	upsset.conf.$(MAN_SECTION_CFG) \
	upsstats.html.$(MAN_SECTION_CFG)

INST_MAN_CGI_CMD_SYS_PAGES = \
	upsset.cgi.$(MAN_SECTION_CMD_SYS) \
	upsstats.cgi.$(MAN_SECTION_CMD_SYS) \
	upsimage.cgi.$(MAN_SECTION_CMD_SYS)

MAN_CGI_CFG_PAGES = $(INST_MAN_CGI_CFG_PAGES)
MAN_CGI_CMD_SYS_PAGES = $(INST_MAN_CGI_CMD_SYS_PAGES)
INST_HTML_CGI_MANS = \
	hosts.conf.html \
	upsset.conf.html \
	upsstats.html.html \
	upsset.cgi.html \
	upsstats.cgi.html \
	upsimage.cgi.html

HTML_CGI_MANS = $(INST_HTML_CGI_MANS)

# Development (--with-dev) related manpages
SRC_DEV_PAGES = \
	upsclient.txt \
	upscli_add_host_cert.txt \
	upscli_cleanup.txt \
	upscli_connect.txt \
	upscli_disconnect.txt \
	upscli_fd.txt \
	upscli_get.txt \
	upscli_init.txt \
	upscli_set_default_connect_timeout.txt \
	upscli_get_default_connect_timeout.txt \
	upscli_init_default_connect_timeout.txt \
	upscli_list_next.txt \
	upscli_list_start.txt \
	upscli_readline.txt \
	upscli_sendline.txt \
	upscli_splitaddr.txt \
	upscli_splitname.txt \
	upscli_ssl.txt \
	upscli_strerror.txt \
	upscli_upserror.txt \
	upscli_str_add_unique_token.txt \
	upscli_str_contains_token.txt \
	libnutclient.txt \
	libnutclient_commands.txt \
	libnutclient_devices.txt \
	libnutclient_general.txt \
	libnutclient_misc.txt \
	libnutclient_tcp.txt \
	libnutclient_variables.txt \
	nutscan.txt \
	nutscan_scan_snmp.txt \
	nutscan_scan_usb.txt \
	nutscan_scan_xml_http_range.txt \
	nutscan_scan_nut.txt \
	nutscan_scan_nut_simulation.txt \
	nutscan_scan_avahi.txt \
	nutscan_scan_ipmi.txt \
	nutscan_scan_eaton_serial.txt \
	nutscan_display_sanity_check.txt \
	nutscan_display_sanity_check_serial.txt \
	nutscan_display_ups_conf_with_sanity_check.txt \
	nutscan_display_ups_conf.txt \
	nutscan_display_parsable.txt \
	nutscan_init_ip_ranges.txt \
	nutscan_free_ip_ranges.txt \
	nutscan_stringify_ip_ranges.txt \
	nutscan_add_ip_range.txt \
	nutscan_ip_ranges_iter_init.txt \
	nutscan_ip_ranges_iter_inc.txt \
	nutscan_cidr_to_ip.txt \
	nutscan_new_device.txt \
	nutscan_free_device.txt \
	nutscan_add_option_to_device.txt \
	nutscan_add_device_to_device.txt \
	nutscan_init.txt \
	nutscan_get_serial_ports_list.txt \
	libupsclient-config.txt \
	sockdebug.txt \
	skel.txt


# NOTE: nutclient_*.$(MAN_SECTION_API) has no source counterpart (libnutclient_*.txt)
LIBNUTCLIENT_MISC_DEPS = \
	nutclient_authenticate.$(MAN_SECTION_API) \
	nutclient_logout.$(MAN_SECTION_API) \
	nutclient_device_login.$(MAN_SECTION_API) \
	nutclient_get_device_num_logins.$(MAN_SECTION_API) \
	nutclient_device_master.$(MAN_SECTION_API) \
	nutclient_device_forced_shutdown.$(MAN_SECTION_API)

LIBNUTCLIENT_TCP_DEPS = \
	nutclient_tcp_create_client.$(MAN_SECTION_API) \
	nutclient_tcp_disconnect.$(MAN_SECTION_API) \
	nutclient_tcp_get_timeout.$(MAN_SECTION_API) \
	nutclient_tcp_is_connected.$(MAN_SECTION_API) \
	nutclient_tcp_reconnect.$(MAN_SECTION_API) \
	nutclient_tcp_set_timeout.$(MAN_SECTION_API)

LIBNUTCLIENT_GENERAL_DEPS = \
	nutclient_destroy.$(MAN_SECTION_API)

LIBNUTCLIENT_VARIABLES_DEPS = \
	nutclient_get_device_rw_variables.$(MAN_SECTION_API) \
	nutclient_get_device_variable_description.$(MAN_SECTION_API) \
	nutclient_get_device_variables.$(MAN_SECTION_API) \
	nutclient_get_device_variable_values.$(MAN_SECTION_API) \
	nutclient_has_device_variable.$(MAN_SECTION_API) \
	nutclient_set_device_variable_value.$(MAN_SECTION_API) \
	nutclient_set_device_variable_values.$(MAN_SECTION_API)

LIBNUTCLIENT_COMMANDS_DEPS = \
	nutclient_execute_device_command.$(MAN_SECTION_API) \
	nutclient_get_device_command_description.$(MAN_SECTION_API) \
	nutclient_get_device_commands.$(MAN_SECTION_API) \
	nutclient_has_device_command.$(MAN_SECTION_API)

LIBNUTCLIENT_DEVICES_DEPS = \
	nutclient_get_device_description.$(MAN_SECTION_API) \
	nutclient_get_devices.$(MAN_SECTION_API) \
	nutclient_has_device.$(MAN_SECTION_API)

INST_MAN_DEV_API_PAGES = \
	upsclient.$(MAN_SECTION_API) \
	upscli_add_host_cert.$(MAN_SECTION_API) \
	upscli_cleanup.$(MAN_SECTION_API) \
	upscli_connect.$(MAN_SECTION_API) \
	upscli_tryconnect.$(MAN_SECTION_API) \
	upscli_disconnect.$(MAN_SECTION_API) \
	upscli_fd.$(MAN_SECTION_API) \
	upscli_get.$(MAN_SECTION_API) \
	upscli_init.$(MAN_SECTION_API) \
	upscli_set_default_connect_timeout.$(MAN_SECTION_API) \
	upscli_get_default_connect_timeout.$(MAN_SECTION_API) \
	upscli_init_default_connect_timeout.$(MAN_SECTION_API) \
	upscli_list_next.$(MAN_SECTION_API) \
	upscli_list_start.$(MAN_SECTION_API) \
	upscli_readline.$(MAN_SECTION_API) \
	upscli_readline_timeout.$(MAN_SECTION_API) \
	upscli_sendline.$(MAN_SECTION_API) \
	upscli_sendline_timeout.$(MAN_SECTION_API) \
	upscli_splitaddr.$(MAN_SECTION_API) \
	upscli_splitname.$(MAN_SECTION_API) \
	upscli_ssl.$(MAN_SECTION_API) \
	upscli_strerror.$(MAN_SECTION_API) \
	upscli_upserror.$(MAN_SECTION_API) \
	upscli_str_add_unique_token.$(MAN_SECTION_API) \
	upscli_str_contains_token.$(MAN_SECTION_API) \
	libnutclient.$(MAN_SECTION_API) \
	libnutclient_commands.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_COMMANDS_DEPS) \
	libnutclient_devices.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_DEVICES_DEPS) \
	libnutclient_general.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_GENERAL_DEPS) \
	libnutclient_misc.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_MISC_DEPS) \
	libnutclient_tcp.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_TCP_DEPS) \
	libnutclient_variables.$(MAN_SECTION_API) \
	$(LIBNUTCLIENT_VARIABLES_DEPS) \
	nutscan.$(MAN_SECTION_API) \
	nutscan_scan_snmp.$(MAN_SECTION_API) \
	nutscan_scan_usb.$(MAN_SECTION_API) \
	nutscan_scan_xml_http_range.$(MAN_SECTION_API) \
	nutscan_scan_nut.$(MAN_SECTION_API) \
	nutscan_scan_nut_simulation.$(MAN_SECTION_API) \
	nutscan_scan_avahi.$(MAN_SECTION_API) \
	nutscan_scan_ipmi.$(MAN_SECTION_API) \
	nutscan_scan_eaton_serial.$(MAN_SECTION_API) \
	nutscan_display_sanity_check.$(MAN_SECTION_API) \
	nutscan_display_sanity_check_serial.$(MAN_SECTION_API) \
	nutscan_display_ups_conf_with_sanity_check.$(MAN_SECTION_API) \
	nutscan_display_ups_conf.$(MAN_SECTION_API) \
	nutscan_display_parsable.$(MAN_SECTION_API) \
	nutscan_init_ip_ranges.$(MAN_SECTION_API) \
	nutscan_free_ip_ranges.$(MAN_SECTION_API) \
	nutscan_stringify_ip_ranges.$(MAN_SECTION_API) \
	nutscan_add_ip_range.$(MAN_SECTION_API) \
	nutscan_ip_ranges_iter_init.$(MAN_SECTION_API) \
	nutscan_ip_ranges_iter_inc.$(MAN_SECTION_API) \
	nutscan_cidr_to_ip.$(MAN_SECTION_API) \
	nutscan_new_device.$(MAN_SECTION_API) \
	nutscan_free_device.$(MAN_SECTION_API) \
	nutscan_add_option_to_device.$(MAN_SECTION_API) \
	nutscan_add_commented_option_to_device.$(MAN_SECTION_API) \
	nutscan_add_device_to_device.$(MAN_SECTION_API) \
	nutscan_get_serial_ports_list.$(MAN_SECTION_API) \
	nutscan_init.$(MAN_SECTION_API)

INST_MAN_DEV_CMD_USR_PAGES = \
	libupsclient-config.$(MAN_SECTION_CMD_USR)

INST_MAN_DEV_CMD_SYS_PAGES = \
	sockdebug.$(MAN_SECTION_CMD_SYS)

MAN_DEV_API_PAGES = $(INST_MAN_DEV_API_PAGES)
MAN_DEV_CMD_USR_PAGES = $(INST_MAN_DEV_CMD_USR_PAGES)
MAN_DEV_CMD_SYS_PAGES = $(INST_MAN_DEV_CMD_SYS_PAGES)
INST_HTML_DEV_MANS = \
	upsclient.html \
	upscli_add_host_cert.html \
	upscli_cleanup.html \
	upscli_connect.html \
	upscli_disconnect.html \
	upscli_fd.html \
	upscli_get.html \
	upscli_init.html \
	upscli_set_default_connect_timeout.html \
	upscli_get_default_connect_timeout.html \
	upscli_init_default_connect_timeout.html \
	upscli_list_next.html \
	upscli_list_start.html \
	upscli_readline.html \
	upscli_sendline.html \
	upscli_splitaddr.html \
	upscli_splitname.html \
	upscli_ssl.html \
	upscli_strerror.html \
	upscli_upserror.html \
	upscli_str_add_unique_token.html \
	upscli_str_contains_token.html \
	libnutclient.html \
	libnutclient_commands.html \
	libnutclient_devices.html \
	libnutclient_general.html \
	libnutclient_misc.html \
	libnutclient_tcp.html \
	libnutclient_variables.html \
	nutscan.html \
	nutscan_scan_snmp.html \
	nutscan_scan_usb.html \
	nutscan_scan_xml_http_range.html \
	nutscan_scan_nut.html \
	nutscan_scan_nut_simulation.html \
	nutscan_scan_avahi.html \
	nutscan_scan_ipmi.html \
	nutscan_scan_eaton_serial.html \
	nutscan_display_sanity_check.html \
	nutscan_display_sanity_check_serial.html \
	nutscan_display_ups_conf_with_sanity_check.html \
	nutscan_display_ups_conf.html \
	nutscan_display_parsable.html \
	nutscan_init_ip_ranges.html \
	nutscan_free_ip_ranges.html \
	nutscan_stringify_ip_ranges.html \
	nutscan_add_ip_range.html \
	nutscan_ip_ranges_iter_init.html \
	nutscan_ip_ranges_iter_inc.html \
	nutscan_cidr_to_ip.html \
	nutscan_new_device.html \
	nutscan_free_device.html \
	nutscan_add_option_to_device.html \
	nutscan_add_device_to_device.html \
	nutscan_get_serial_ports_list.html \
	nutscan_init.html \
	libupsclient-config.html \
	sockdebug.html \
	skel.html

HTML_DEV_MANS = $(INST_HTML_DEV_MANS)

# Can't make this work on all make implementations at once, so disabled for now
# Anyway it would be the same man-like page for several functions
HTML_DEV_MANS_FICTION = \
	upscli_readline_timeout.html \
	upscli_sendline_timeout.html \
	upscli_tryconnect.html \
	nutscan_scan_ip_range_snmp.html \
	nutscan_scan_ip_range_xml_http.html \
	nutscan_scan_ip_range_nut.html \
	nutscan_scan_ip_range_ipmi.html \
	nutscan_add_commented_option_to_device.html


# (--with-serial)
SRC_SERIAL_PAGES = \
	al175.txt	\
	apcsmart.txt	\
	apcsmart-old.txt	\
	bcmxcp.txt 	\
	belkin.txt 	\
	belkinunv.txt	\
	bestfortress.txt	\
	bestuferrups.txt	\
	bestups.txt 	\
	bestfcom.txt	\
	bicker_ser.txt	\
	blazer-common.txt	\
	blazer_ser.txt	\
	clone.txt	\
	clone-outlet.txt	\
	dummy-ups.txt	\
	failover.txt	\
	etapro.txt	\
	everups.txt	\
	gamatronic.txt	\
	genericups.txt	\
	isbmex.txt	\
	ivtscd.txt	\
	liebert.txt	\
	liebert-gxe.txt	\
	liebert-esp2.txt	\
	masterguard.txt	\
	metasys.txt	\
	mge-shut.txt	\
	mge-utalk.txt	\
	nhs_ser.txt	\
	oneac.txt	\
	microdowell.txt	\
	microsol-apc.txt	\
	nutdrv_hashx.txt	\
	nutdrv_siemens_sitop.txt	\
	optiups.txt	\
	powercom.txt 	\
	powerpanel.txt	\
	powervar_cx_ser.txt	\
	rhino.txt		\
	riello_ser.txt	\
	sms_ser.txt \
	safenet.txt	\
	solis.txt		\
	tripplite.txt	\
	tripplitesu.txt	\
	upscode2.txt	\
	ve-direct.txt	\
	victronups.txt	\
	apcupsd-ups.txt

INST_MAN_SERIAL_PAGES = \
	al175.$(MAN_SECTION_CMD_SYS)	\
	apcsmart.$(MAN_SECTION_CMD_SYS)	\
	apcsmart-old.$(MAN_SECTION_CMD_SYS)	\
	bcmxcp.$(MAN_SECTION_CMD_SYS) 	\
	belkin.$(MAN_SECTION_CMD_SYS) 	\
	belkinunv.$(MAN_SECTION_CMD_SYS)	\
	bestfortress.$(MAN_SECTION_CMD_SYS)	\
	bestuferrups.$(MAN_SECTION_CMD_SYS)	\
	bestups.$(MAN_SECTION_CMD_SYS) 	\
	bestfcom.$(MAN_SECTION_CMD_SYS)	\
	bicker_ser.$(MAN_SECTION_CMD_SYS)	\
	blazer_ser.$(MAN_SECTION_CMD_SYS)	\
	clone.$(MAN_SECTION_CMD_SYS)	\
	clone-outlet.$(MAN_SECTION_CMD_SYS)	\
	dummy-ups.$(MAN_SECTION_CMD_SYS)	\
	etapro.$(MAN_SECTION_CMD_SYS)	\
	everups.$(MAN_SECTION_CMD_SYS)	\
	failover.$(MAN_SECTION_CMD_SYS)	\
	gamatronic.$(MAN_SECTION_CMD_SYS)	\
	genericups.$(MAN_SECTION_CMD_SYS)	\
	isbmex.$(MAN_SECTION_CMD_SYS)	\
	ivtscd.$(MAN_SECTION_CMD_SYS)	\
	liebert.$(MAN_SECTION_CMD_SYS)	\
	liebert-gxe.$(MAN_SECTION_CMD_SYS)	\
	liebert-esp2.$(MAN_SECTION_CMD_SYS)	\
	masterguard.$(MAN_SECTION_CMD_SYS)	\
	metasys.$(MAN_SECTION_CMD_SYS)	\
	mge-shut.$(MAN_SECTION_CMD_SYS)	\
	mge-utalk.$(MAN_SECTION_CMD_SYS)	\
	oneac.$(MAN_SECTION_CMD_SYS)		\
	microdowell.$(MAN_SECTION_CMD_SYS)	\
	microsol-apc.$(MAN_SECTION_CMD_SYS)	\
	nutdrv_hashx.$(MAN_SECTION_CMD_SYS)	\
	nutdrv_siemens_sitop.$(MAN_SECTION_CMD_SYS)	\
	optiups.$(MAN_SECTION_CMD_SYS)	\
	powercom.$(MAN_SECTION_CMD_SYS) 	\
	powerpanel.$(MAN_SECTION_CMD_SYS)	\
	powervar_cx_ser.$(MAN_SECTION_CMD_SYS)	\
	rhino.$(MAN_SECTION_CMD_SYS)		\
	riello_ser.$(MAN_SECTION_CMD_SYS)	\
	sms_ser.$(MAN_SECTION_CMD_SYS) \
	safenet.$(MAN_SECTION_CMD_SYS)	\
	solis.$(MAN_SECTION_CMD_SYS)		\
	tripplite.$(MAN_SECTION_CMD_SYS)	\
	tripplitesu.$(MAN_SECTION_CMD_SYS)	\
	upscode2.$(MAN_SECTION_CMD_SYS)	\
	ve-direct.$(MAN_SECTION_CMD_SYS)	\
	victronups.$(MAN_SECTION_CMD_SYS)	\
	apcupsd-ups.$(MAN_SECTION_CMD_SYS)

MAN_SERIAL_PAGES =  \
	$(INST_MAN_SERIAL_PAGES) \
	$(am__append_34)
INST_HTML_SERIAL_MANS = al175.html apcsmart.html apcsmart-old.html \
	bcmxcp.html belkin.html belkinunv.html bestfortress.html \
	bestuferrups.html bestups.html bestfcom.html bicker_ser.html \
	blazer_ser.html clone.html clone-outlet.html dummy-ups.html \
	etapro.html everups.html failover.html gamatronic.html \
	genericups.html isbmex.html ivtscd.html liebert.html \
	liebert-gxe.html liebert-esp2.html masterguard.html \
	metasys.html mge-shut.html mge-utalk.html oneac.html \
	microdowell.html microsol-apc.html nutdrv_hashx.html \
	nutdrv_siemens_sitop.html optiups.html powercom.html \
	powerpanel.html powervar_cx_ser.html rhino.html \
	riello_ser.html sms_ser.html safenet.html solis.html \
	tripplite.html tripplitesu.html upscode2.html ve-direct.html \
	victronups.html apcupsd-ups.html $(am__append_36)
HTML_SERIAL_MANS = $(INST_HTML_SERIAL_MANS)

# (--with-snmp)
SRC_SNMP_PAGES = snmp-ups.txt
INST_MAN_SNMP_PAGES = snmp-ups.$(MAN_SECTION_CMD_SYS)
MAN_SNMP_PAGES = $(INST_MAN_SNMP_PAGES)
INST_HTML_SNMP_MANS = snmp-ups.html
HTML_SNMP_MANS = $(INST_HTML_SNMP_MANS)

# (--with-usb)
SRC_USB_LIBUSB_PAGES = \
	bcmxcp_usb.txt \
	blazer-common.txt	\
	blazer_usb.txt	\
	nutdrv_atcl_usb.txt \
	nut_usb_addvars.txt \
	powervar_cx_usb.txt	\
	richcomm_usb.txt \
	riello_usb.txt	\
	tripplite_usb.txt \
	usbhid-ups.txt

INST_MAN_USB_LIBUSB_PAGES = \
	bcmxcp_usb.$(MAN_SECTION_CMD_SYS) \
	blazer_usb.$(MAN_SECTION_CMD_SYS) \
	nutdrv_atcl_usb.$(MAN_SECTION_CMD_SYS) \
	powervar_cx_usb.$(MAN_SECTION_CMD_SYS)	\
	richcomm_usb.$(MAN_SECTION_CMD_SYS) \
	riello_usb.$(MAN_SECTION_CMD_SYS)	\
	tripplite_usb.$(MAN_SECTION_CMD_SYS) \
	usbhid-ups.$(MAN_SECTION_CMD_SYS)


# NOTE: nut_usb_addvars and blazer-common are not standalone man pages
MAN_USB_LIBUSB_PAGES = $(INST_MAN_USB_LIBUSB_PAGES)
INST_HTML_USB_LIBUSB_MANS = \
	bcmxcp_usb.html \
	blazer_usb.html	\
	nutdrv_atcl_usb.html \
	powervar_cx_usb.html	\
	richcomm_usb.html \
	riello_usb.html	\
	tripplite_usb.html \
	usbhid-ups.html

HTML_USB_LIBUSB_MANS = $(INST_HTML_USB_LIBUSB_MANS)

# (--with-serial / --with-usb)
SRC_SERIAL_USB_PAGES = \
	nutdrv_qx.txt

INST_MAN_SERIAL_USB_PAGES = \
	nutdrv_qx.$(MAN_SECTION_CMD_SYS)

MAN_SERIAL_USB_PAGES = $(INST_MAN_SERIAL_USB_PAGES)
INST_HTML_SERIAL_USB_MANS = \
	nutdrv_qx.html

HTML_SERIAL_USB_MANS = $(INST_HTML_SERIAL_USB_MANS)

# (--with-neon)
SRC_NETXML_PAGES = netxml-ups.txt
INST_MAN_NETXML_PAGES = netxml-ups.$(MAN_SECTION_CMD_SYS)
MAN_NETXML_PAGES = $(INST_MAN_NETXML_PAGES)
INST_HTML_NETXML_MANS = netxml-ups.html
HTML_NETXML_MANS = $(INST_HTML_NETXML_MANS)

# (--with-powerman)
SRC_POWERMAN_PAGES = powerman-pdu.txt
INST_MAN_POWERMAN_PAGES = powerman-pdu.$(MAN_SECTION_CMD_SYS)
MAN_POWERMAN_PAGES = $(INST_MAN_POWERMAN_PAGES)
INST_HTML_POWERMAN_MANS = powerman-pdu.html
HTML_POWERMAN_MANS = $(INST_HTML_POWERMAN_MANS)

# (--with-ipmi)
SRC_IPMIPSU_PAGES = nut-ipmipsu.txt
INST_MAN_IPMIPSU_PAGES = nut-ipmipsu.$(MAN_SECTION_CMD_SYS)
MAN_IPMIPSU_PAGES = $(INST_MAN_IPMIPSU_PAGES)
INST_HTML_IPMIPSU_MANS = nut-ipmipsu.html
HTML_IPMIPSU_MANS = $(INST_HTML_IPMIPSU_MANS)

# (--with-macosx_ups)
SRC_MACOSX_PAGES = macosx-ups.txt
INST_MAN_MACOSX_PAGES = macosx-ups.$(MAN_SECTION_CMD_SYS)
MAN_MACOSX_PAGES = $(INST_MAN_MACOSX_PAGES)
INST_HTML_MACOSX_MANS = macosx-ups.html
HTML_MACOSX_MANS = $(INST_HTML_MACOSX_MANS)

# (--with-modbus)
# NOTE: At least apc_modbus can take advantage of libusb for more communication
# options. However it is not as special as serial-and/or-usb (nutdrv_qx) above.
SRC_MODBUS_PAGES = \
	phoenixcontact_modbus.txt \
	generic_modbus.txt \
	huawei-ups2000.txt \
	socomec_jbus.txt   \
	adelsystem_cbi.txt \
	apc_modbus.txt

INST_MAN_MODBUS_PAGES = \
	phoenixcontact_modbus.$(MAN_SECTION_CMD_SYS) \
	generic_modbus.$(MAN_SECTION_CMD_SYS) \
	huawei-ups2000.$(MAN_SECTION_CMD_SYS) \
	socomec_jbus.$(MAN_SECTION_CMD_SYS)   \
	adelsystem_cbi.$(MAN_SECTION_CMD_SYS) \
	apc_modbus.$(MAN_SECTION_CMD_SYS)

MAN_MODBUS_PAGES = $(INST_MAN_MODBUS_PAGES)
INST_HTML_MODBUS_MANS = \
	phoenixcontact_modbus.html \
	generic_modbus.html \
	huawei-ups2000.html \
	socomec_jbus.html   \
	adelsystem_cbi.html \
	apc_modbus.html

HTML_MODBUS_MANS = $(INST_HTML_MODBUS_MANS)

# (--with-linux_i2c)
SRC_LINUX_I2C_PAGES = \
	asem.txt \
	pijuice.txt \
	hwmon_ina219.txt

INST_MAN_LINUX_I2C_PAGES = \
	asem.$(MAN_SECTION_CMD_SYS) \
	pijuice.$(MAN_SECTION_CMD_SYS) \
	hwmon_ina219.$(MAN_SECTION_CMD_SYS)

MAN_LINUX_I2C_PAGES = $(INST_MAN_LINUX_I2C_PAGES)
INST_HTML_LINUX_I2C_MANS = \
	asem.html \
	pijuice.html \
	hwmon_ina219.html

HTML_LINUX_I2C_MANS = $(INST_HTML_LINUX_I2C_MANS)

# (--with-gpio)
SRC_GPIO_PAGES = generic_gpio.txt
INST_MAN_GPIO_PAGES = generic_gpio.$(MAN_SECTION_CMD_SYS)
MAN_GPIO_PAGES = $(INST_MAN_GPIO_PAGES)
INST_HTML_GPIO_MANS = \
	generic_gpio.html

HTML_GPIO_MANS = $(INST_HTML_GPIO_MANS)

# Summarize which pages we ultimately install:
MAN_MANS = $(am__append_72)
SRC_DRIVERS_PAGES = $(SRC_SERIAL_PAGES) $(SRC_SNMP_PAGES) \
	$(SRC_USB_LIBUSB_PAGES) $(SRC_SERIAL_USB_PAGES) \
	$(SRC_NETXML_PAGES) $(SRC_POWERMAN_PAGES) $(SRC_IPMIPSU_PAGES) \
	$(SRC_MACOSX_PAGES) $(SRC_MODBUS_PAGES) $(SRC_LINUX_I2C_PAGES) \
	$(SRC_GPIO_PAGES) $(am__append_73)

# DIST_ALL_PAGES: Make sure pages are built for the archive (or
# inherited from earlier tarball this release is being built from);
# caller may have to fake them if we are in a situation we know we can
# not provide them (see `make distcheck-ci` in top-level Makefile.am).
EXTRA_DIST = \
	$(SRC_ALL_PAGES) \
	$(DIST_ALL_PAGES) \
	$(MAN_MANS) \
	asciidoc.conf

HTML_MANS = \
	index.html \
	$(HTML_CONF_MANS) \
	$(HTML_MISC_MANS) \
	$(HTML_CLIENT_MANS) \
	$(HTML_TOOL_MANS) \
	$(HTML_CGI_MANS) \
	$(HTML_DEV_MANS) \
	$(HTML_SERIAL_MANS) \
	$(HTML_SNMP_MANS) \
	$(HTML_USB_LIBUSB_MANS) \
	$(HTML_SERIAL_USB_MANS) \
	$(HTML_NETXML_MANS) \
	$(HTML_POWERMAN_MANS) \
	$(HTML_IPMIPSU_MANS) \
	$(HTML_MACOSX_MANS) \
	$(HTML_MODBUS_MANS) \
	$(HTML_LINUX_I2C_MANS) \
	$(HTML_GPIO_MANS)


# htmlmandir is set by autoconf/automake
htmlman_DATA = $(am__append_74) $(am__append_75)

# Note: target documents, except nutupsdrv.txt itself, start the
# list of drivers with `- linkman:nutupsdrv[$(MAN_SECTION_CMD_SYS)]` entry
# To regenerate these files, you may have to `make distclean` first
# FIXME: Track also clients (e.g. NUT-Monitor UI, etc.), development-only tools
#  (sockdebug), or platform-specific progs (nut.exe)
LINKMAN_INCLUDE_GENERATED = linkman-driver-names.txt linkman-drivertool-names.txt linkman-docbuildmode-note.txt
LINKMAN_INCLUDE_CONSUMERS = index.txt upsd.txt nutupsdrv.txt nut.txt
CLEANFILES = linkman-*.txt.tmp* *-spellchecked .prep-src-docs \
	*-prepped .check-* $(am__append_78) $(am__append_79) \
	$(am__append_80)

# These files are generated when we build from git source so not tracked in
# git, and not part of tarball (to be in builddir) - so not in EXTRA_DIST.
DISTCLEANFILES = $(LINKMAN_INCLUDE_GENERATED)

# This list is defined by configure script choices and options:
CHECK_LOCAL_TARGETS = 
TGT_REQUIRE_CHECK_HTML = $(am__append_76) $(am__append_77)
SUFFIXES = .txt-prepped .txt .html .$(MAN_SECTION_CMD_USR) .$(MAN_SECTION_API) .$(MAN_SECTION_CFG) .$(MAN_SECTION_CMD_SYS) .$(MAN_SECTION_MISC)
#SRC_PREBUILT_CLAUSE = 

# For builds with allowed installation of prebuilt man pages, check that
# they exist in sources (make would pull them automatically as a fallback
# from failed lookup in build products). For builds that require rebuild
# of man pages, abort with error if build product is missing.
SRC_PREBUILT_CLAUSE = || [ -r "$(srcdir)/`basename $@`" ]

# Working around a2x not friendly to parallelized runs.
# See more details in the main NUT docs/Makefile.am
# NOTE: MKDIR_P may be defined via expanded $(top_builddir)/install-sh
# so should be run from $(abs_builddir) to be safe, as we jump around
# the build workspace
#DOCBUILD_BEGIN = { \
#    if test -n "$${A2X_OUTDIR}" && test "$${A2X_OUTDIR}" != '.' ; then \
#        rm -rf "./$${A2X_OUTDIR}" || true ; \
#        test -d "$@" && rm -rf "$@" || true ; \
#        _CWD="`pwd`" && (cd '$(abs_builddir)' && $(MKDIR_P) "$${_CWD}/$${A2X_OUTDIR}") || exit ; \
#        for F in $(LINKMAN_INCLUDE_GENERATED) ; do \
#            if [ -s "./$$F" ] ; then ln -f -s "../../$$F" "./$${A2X_OUTDIR}/" ; else \
#            if [ -s "$(abs_srcdir)/$$F" ] ; then ln -f -s "$(abs_srcdir)/$$F" "./$${A2X_OUTDIR}/" ; fi ; fi ; \
#        done ; \
#    else A2X_OUTDIR='.' ; fi; \
#    if test -s "${builddir}/docbook-xsl.css" \
#    && test -r "${builddir}/docbook-xsl.css" \
#    && ! test -w "${builddir}/docbook-xsl.css" \
#    ; then chmod u+w "${builddir}/docbook-xsl.css" ; fi ; \
#    chmod -R u+w "./$${A2X_OUTDIR}" || true ; \
#    A2X_VERBOSE="$(ASCIIDOC_VERBOSE)"; if [ "$(V)" = 1 ]; then A2X_VERBOSE="--verbose"; fi; \
#}


# Note that documents with sub-pages (see LIBNUTCLIENT_*_DEPS above)
# may generate multiple files in one go... so we move "*" and hope
# for no required hidden files (or would have to `find` them all).
#DOCBUILD_END = { \
#    if test -n "$${A2X_OUTDIR}" && test "$${A2X_OUTDIR}" != '.' ; then \
#        chmod -R u+w "./$${A2X_OUTDIR}" || true ; \
#        test -d "$@" && rm -rf "$@" || true ; \
#        for F in $(LINKMAN_INCLUDE_GENERATED) ; do \
#            rm -f "./$${A2X_OUTDIR}/$$F" || true ; \
#        done ; \
#        mv -f "./$${A2X_OUTDIR}/$(@F)" ./ || exit ; \
#        mv -f "./$${A2X_OUTDIR}/"*.* ./ 2>/dev/null || true ; \
#        rm -rf "./$${A2X_OUTDIR}" ; \
#    fi ; \
#}


### Prior to Asciidoc ~8.6.8, the --destination-dir flag didn't seem to affect the location of the intermediate .xml file.
### This parameter is currently required; see docs/Makefile.am for more detail.
#A2X_MANPAGE_OPTS = --doctype manpage --format manpage $${A2X_VERBOSE} \
#	--xsltproc-opts="--nonet" \
#	--attribute=mansource="Network UPS Tools" \
#	--attribute=manversion="$(PACKAGE_VERSION)" \
#	--attribute=manmanual="NUT Manual" \
#	--attribute=srcdir="$(abs_srcdir)/" \
#	--attribute=builddir="$(abs_builddir)/" \
#	--attribute=top_srcdir="$(abs_top_srcdir)/" \
#	--attribute=top_builddir="$(abs_top_builddir)/" \
#	--destination-dir="$${A2X_OUTDIR}"


# When building out-of-tree, be sure to have all asciidoc resources
# under the same dir structure (tool limitation)
# NOTE: Not including *all* of EXTRA_DIST here, because we also "dist"
# the built man pages in the tarball for end-users without an asciidoc
# stack (causing a dependency loop)!
PREP_SRC = $(LINKMAN_INCLUDE_GENERATED) $(SRC_ALL_PAGES) asciidoc.conf

# NOTE: Some "make" implementations prefix a relative or absent path to
# the filenames in PREP_SRC, others (e.g. Sun make) prepend the absolute
# path to locate the sources, so we end up with bogus trees under docs/.
# Code below tries to detect and truncate this mess, including possible
# source texts located in/under parent dirs.
# We also handle man page links (section-aware) and titles for platforms
# where they differ from common defaults. NOTE: Page titles are a line
# with the title, followed by another with a sequence of "===" characters
# of same length, give or take one (or so). Currently we do not bother to
# adjust the second line, as we expect minor length changes like "8"=>"1m".
# NOTE: MKDIR_P may be defined via expanded $(top_builddir)/install-sh
# so should be run from $(abs_builddir) to be safe, as we jump around
# the build workspace
# NOTE: For DOCS_NO_MAN case we expect that the top-level Makefile caused
# parallel runs of several directories, so we can reasonably wait some
# time for the target file to just appear.
MAINTAINER_DOCS_PREP_MAN_DELAY = 60
MAINTAINERCLEANFILES = Makefile.in .dirstamp
all: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) all-am

.SUFFIXES:
.SUFFIXES: .txt-prepped .txt .html .$(MAN_SECTION_CMD_USR) .$(MAN_SECTION_API) .$(MAN_SECTION_CFG) .$(MAN_SECTION_CMD_SYS) .$(MAN_SECTION_MISC) .txt-spellchecked
$(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) --gnu docs/man/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --gnu docs/man/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):
asciidoc.conf: $(top_builddir)/config.status $(srcdir)/asciidoc.conf.in
	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs
install-htmlmanDATA: $(htmlman_DATA)
	@$(NORMAL_INSTALL)
	@list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(htmlmandir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(htmlmandir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmlmandir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(htmlmandir)" || exit $$?; \
	done

uninstall-htmlmanDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(htmlmandir)'; $(am__uninstall_files_from_dir)
install-manapiDATA: $(manapi_DATA)
	@$(NORMAL_INSTALL)
	@list='$(manapi_DATA)'; test -n "$(manapidir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(manapidir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(manapidir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(manapidir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(manapidir)" || exit $$?; \
	done

uninstall-manapiDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(manapi_DATA)'; test -n "$(manapidir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(manapidir)'; $(am__uninstall_files_from_dir)
install-mancfgDATA: $(mancfg_DATA)
	@$(NORMAL_INSTALL)
	@list='$(mancfg_DATA)'; test -n "$(mancfgdir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(mancfgdir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(mancfgdir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(mancfgdir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(mancfgdir)" || exit $$?; \
	done

uninstall-mancfgDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(mancfg_DATA)'; test -n "$(mancfgdir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(mancfgdir)'; $(am__uninstall_files_from_dir)
install-manmiscDATA: $(manmisc_DATA)
	@$(NORMAL_INSTALL)
	@list='$(manmisc_DATA)'; test -n "$(manmiscdir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(manmiscdir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(manmiscdir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(manmiscdir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(manmiscdir)" || exit $$?; \
	done

uninstall-manmiscDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(manmisc_DATA)'; test -n "$(manmiscdir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(manmiscdir)'; $(am__uninstall_files_from_dir)
install-mansysDATA: $(mansys_DATA)
	@$(NORMAL_INSTALL)
	@list='$(mansys_DATA)'; test -n "$(mansysdir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(mansysdir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(mansysdir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(mansysdir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(mansysdir)" || exit $$?; \
	done

uninstall-mansysDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(mansys_DATA)'; test -n "$(mansysdir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(mansysdir)'; $(am__uninstall_files_from_dir)
install-manusrDATA: $(manusr_DATA)
	@$(NORMAL_INSTALL)
	@list='$(manusr_DATA)'; test -n "$(manusrdir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(manusrdir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(manusrdir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(manusrdir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(manusrdir)" || exit $$?; \
	done

uninstall-manusrDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(manusr_DATA)'; test -n "$(manusrdir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(manusrdir)'; $(am__uninstall_files_from_dir)
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
	$(MAKE) $(AM_MAKEFLAGS) check-local
check: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) check-am
all-am: Makefile $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(htmlmandir)" "$(DESTDIR)$(manapidir)" "$(DESTDIR)$(mancfgdir)" "$(DESTDIR)$(manmiscdir)" "$(DESTDIR)$(mansysdir)" "$(DESTDIR)$(manusrdir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) 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:
	-$(am__rm_f) $(CLEANFILES)

distclean-generic:
	-$(am__rm_f) $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || $(am__rm_f) $(CONFIG_CLEAN_VPATH_FILES)
	-$(am__rm_f) $(DISTCLEANFILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-$(am__rm_f) $(BUILT_SOURCES)
	-$(am__rm_f) $(MAINTAINERCLEANFILES)
clean: clean-am

clean-am: clean-generic clean-libtool clean-local mostlyclean-am

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

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am: install-htmlmanDATA install-manapiDATA \
	install-mancfgDATA install-manmiscDATA install-mansysDATA \
	install-manusrDATA

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:

uninstall-am: uninstall-htmlmanDATA uninstall-manapiDATA \
	uninstall-mancfgDATA uninstall-manmiscDATA \
	uninstall-mansysDATA uninstall-manusrDATA

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

.PHONY: all all-am check check-am check-local clean clean-generic \
	clean-libtool clean-local cscopelist-am ctags-am dist-hook \
	distclean distclean-generic distclean-libtool 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-htmlmanDATA install-info install-info-am install-man \
	install-manapiDATA install-mancfgDATA install-manmiscDATA \
	install-mansysDATA install-manusrDATA 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 tags-am uninstall \
	uninstall-am uninstall-htmlmanDATA uninstall-manapiDATA \
	uninstall-mancfgDATA uninstall-manmiscDATA \
	uninstall-mansysDATA uninstall-manusrDATA

.PRECIOUS: Makefile


# Note: this intends to be used instead of the "all" target that may have
# been provided by automake, since we want to do nothing in certain cases.
# Ideally it would refuse "make all" in certain cases, but we can't override
# the automake-generated rules in each make implementation we care for.
all-optional: $(abs_top_builddir)/docs/man/.prep-src-docs
	+@case "$(ALL_TGT)" in \
	  ""|" "|"  "|"   ") echo "  DOCS_NO_MAN	SKIP: $@ called in docs/man/Makefile: No format of man page rendering is enabled" ; exit 0 ;; \
	  *all-*) \
		if [ x"$(DOCS_NO_MAN)" = xtrue ] ; then echo "  DOCS_NO_MAN	SKIP: $@ called in docs/man/Makefile: requested to not work in this code path" ; exit 0 ; fi ; \
		echo "  DOC-FOLLOW-UP	Basic 'make $@' in `pwd` is done, following up with 'make $(ALL_TGT)' to ensure complex document types (if enabled)" ; \
		$(MAKE) $(AM_MAKEFLAGS) $(ALL_TGT) ; exit ;; \
	  esac ; exit 0

# List man pages we intend to deliver (depending on chosen build products)
print-MAN_MANS:
	@echo "$(MAN_MANS)"

check-list-MAN_MANS:
	@FILENAMES='$(MAN_MANS)' ; $(LIST_FILES)

# List all (man page) file names we know we should distribute in a tarball
# (whether built right now or inherited from a tarball build by itself)
print-DIST_ALL_PAGES:
	@echo "$(DIST_ALL_PAGES)"

check-list-DIST_ALL_PAGES:
	@FILENAMES='$(DIST_ALL_PAGES)' ; $(LIST_FILES)

# If any pages are missing, fake them
distcheck-light-DIST_ALL_PAGES:
	@FILENAMES='$(DIST_ALL_PAGES)' ; $(FAKE_FILES) || ( \
		if [ x"$(FAKE_PAGES_BUMP_SRC)" = xtrue ] ; then \
			cd "$(abs_srcdir)" && touch $(SRC_ALL_PAGES) || echo "$@: Well we tried" >&2 ; \
		fi ; )

print-DIST_ALL_MAN_PAGES:
	@echo "$(DIST_ALL_MAN_PAGES)"

check-list-DIST_ALL_MAN_PAGES:
	@FILENAMES='$(DIST_ALL_MAN_PAGES)' ; $(LIST_FILES)

# If any pages are missing, fake them
distcheck-light-DIST_ALL_MAN_PAGES:
	@FILENAMES='$(DIST_ALL_MAN_PAGES)' ; $(FAKE_FILES) || ( \
		if [ x"$(FAKE_PAGES_BUMP_SRC)" = xtrue ] ; then \
			cd "$(abs_srcdir)" && touch $(SRC_ALL_PAGES) || echo "$@: Well we tried" >&2 ; \
		fi ; )

# Likewise for HTML renders (but no fake pages made/needed for dist)
print-HTML_MANS:
	@echo "$(HTML_MANS)"

check-list-HTML_MANS:
	@FILENAMES='$(HTML_MANS)' ; $(LIST_FILES)

print-DIST_ALL_HTML_PAGES:
	@echo "$(DIST_ALL_HTML_PAGES)"

check-list-DIST_ALL_HTML_PAGES:
	@FILENAMES='$(DIST_ALL_HTML_PAGES)' ; $(LIST_FILES)

# Likewise for plaintext sources
print-SRC_ALL_PAGES:
	@echo "$(SRC_ALL_PAGES)"

check-list-SRC_ALL_PAGES:
	@FILENAMES='$(SRC_ALL_PAGES)' ; $(LIST_FILES)

# Alias page for one text describing two commands:
NUT-Monitor-py2gtk2.$(MAN_SECTION_CMD_SYS): NUT-Monitor.$(MAN_SECTION_CMD_SYS)
	touch $@

NUT-Monitor-py3qt5.$(MAN_SECTION_CMD_SYS): NUT-Monitor.$(MAN_SECTION_CMD_SYS)
	touch $@

NUT-Monitor-py3qt6.$(MAN_SECTION_CMD_SYS): NUT-Monitor.$(MAN_SECTION_CMD_SYS)
	touch $@

#NUT-Monitor-py2gtk2.html: NUT-Monitor.html
#	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

#NUT-Monitor-py3qt5.html: NUT-Monitor.html
#	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

#NUT-Monitor-py3qt6.html: NUT-Monitor.html
#	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

$(LIBNUTCLIENT_MISC_DEPS): libnutclient_misc.$(MAN_SECTION_API)
	touch $@

$(LIBNUTCLIENT_TCP_DEPS): libnutclient_tcp.$(MAN_SECTION_API)
	touch $@

$(LIBNUTCLIENT_GENERAL_DEPS): libnutclient_general.$(MAN_SECTION_API)
	touch $@

$(LIBNUTCLIENT_VARIABLES_DEPS): libnutclient_variables.$(MAN_SECTION_API)
	touch $@

$(LIBNUTCLIENT_COMMANDS_DEPS): libnutclient_commands.$(MAN_SECTION_API)
	touch $@

$(LIBNUTCLIENT_DEVICES_DEPS): libnutclient_devices.$(MAN_SECTION_API)
	touch $@

# Alias page for one text describing two commands:
upscli_readline_timeout.$(MAN_SECTION_API): upscli_readline.$(MAN_SECTION_API)
	touch $@

upscli_sendline_timeout.$(MAN_SECTION_API): upscli_sendline.$(MAN_SECTION_API)
	touch $@

upscli_tryconnect.$(MAN_SECTION_API): upscli_connect.$(MAN_SECTION_API)
	touch $@

nutscan_scan_ip_range_snmp.$(MAN_SECTION_API): nutscan_scan_snmp.$(MAN_SECTION_API)
	touch $@

nutscan_scan_ip_range_xml_http.$(MAN_SECTION_API): nutscan_scan_xml_http_range.$(MAN_SECTION_API)
	touch $@

nutscan_scan_ip_range_nut.$(MAN_SECTION_API): nutscan_scan_nut.$(MAN_SECTION_API)
	touch $@

nutscan_scan_ip_range_ipmi.$(MAN_SECTION_API): nutscan_scan_ipmi.$(MAN_SECTION_API)
	touch $@

nutscan_add_commented_option_to_device.$(MAN_SECTION_API): nutscan_add_option_to_device.$(MAN_SECTION_API)
	touch $@

upscli_readline_timeout.html: upscli_readline.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

upscli_sendline_timeout.html: upscli_sendline.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

upscli_tryconnect.html: upscli_connect.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

nutscan_scan_ip_range_snmp.html: nutscan_scan_snmp.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

nutscan_scan_ip_range_xml_http.html: nutscan_scan_xml_http_range.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

nutscan_scan_ip_range_nut.html: nutscan_scan_nut.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

nutscan_scan_ip_range_ipmi.html: nutscan_scan_ipmi.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

nutscan_add_commented_option_to_device.html: nutscan_add_option_to_device.html
	test -n "$?" -a -s "$@" && rm -f $@ && ln -s $? $@

# We may be here because tools are missing, or because caller ran
# ./configure --without-doc (but the tools were present and AC_PROG
# caused the needed variables to resolve, so pages can in fact get
# built, or are present in the release tarball we are building).
# Absense of pages can cause "make dist" to fail, unless caller
# (like `make distcheck-light`) runs ./configure --with-doc=skip
# (or --with-doc=man=skip specifically).
# FIXME: See also HAVE_ASCIIDOC (covers several tools in fact)
#  and DOC_INSTALL_DISTED_MANS for a more granular approach.
##dist-warning:
##	@echo "WARNING: Manpage building was disabled by configure script, and these pages are required for our proper 'make dist'" >&2

##dist: dist-warning

# For builds done from dist'ed sources, there may be a conflict of timestamps
# between original *.txt files and pre-built manpages etc. leading to skipping
# of manpage re-generation even if that activity is possible and requested.
# Possibly a cleaner, but less portable, solution would be to touch the
# generated files to long ago. Current solution assumes good valid clocks :)
dist-hook:
	@echo "Fix up manpage source timestamps" && cd $(distdir) && touch $(SRC_ALL_PAGES)

# Note we can have a pre-built file from the tarball, sort of useful when
# e.g. no man page building tools are locally available (we might not be
# able to render a new instance though). At least do not let "$@" confuse
# us into overwriting its instance in srcdir (if differs from builddir).
linkman-driver-names.txt: Makefile
	@echo "  GENERATE-LINKMAN	$@"
	@(LC_ALL=C; LANG=C; export LC_ALL LANG; \
	  for F in $(LINKMAN_PAGES_DRIVERS) ; do echo "$$F" ; done \
	    | grep -vE '^nutupsdrv\.txt$$' \
	    | sort -n | uniq \
	    | sed 's,^\(.*\)\.txt$$,- linkman:\1[$(MAN_SECTION_CMD_SYS)],' ; \
	 ) > "$(builddir)/$(@F).tmp.$$$$" || exit ; \
	 if test ! -s "$(builddir)/$(@F).tmp.$$$$" \
	 && test x"$(abs_srcdir)" != x"$(abs_builddir)" \
	 && test -s "$(srcdir)/$(@F)" \
	 ; then \
	    cat "$(srcdir)/$(@F)" "$(builddir)/$(@F).tmp.$$$$" || exit ; \
	 fi ; \
	 if test ! -s "$(builddir)/$(@F).tmp.$$$$" ; then echo "- No NUT drivers were built" > "$(builddir)/$(@F).tmp.$$$$" ; fi ; \
	 if test ! -s "$(builddir)/$(@F)" || ! diff "$(builddir)/$(@F).tmp.$$$$" "$(builddir)/$(@F)" ; then \
	    mv -f "$(builddir)/$(@F).tmp.$$$$" "$(builddir)/$(@F)" ; \
	 else \
	    echo "  GENERATE-LINKMAN	$@ : SKIP (keep existing file)" ; \
	    rm -f "$(builddir)/$(@F).tmp.$$$$" ; \
	 fi

linkman-drivertool-names.txt: Makefile
	@echo "  GENERATE-LINKMAN	$@"
	@(LC_ALL=C; LANG=C; export LC_ALL LANG; \
	  for F in $(LINKMAN_PAGES_DRIVERTOOLS) ; do echo "$$F" ; done \
	    | sort -n | uniq \
	    | sed 's,^\(.*\)\.txt$$,- linkman:\1[$(MAN_SECTION_CMD_SYS)],' ; \
	 ) > "$(builddir)/$(@F).tmp.$$$$" || exit ; \
	 if test ! -s "$(builddir)/$(@F).tmp.$$$$" \
	 && test x"$(abs_srcdir)" != x"$(abs_builddir)" \
	 && test -s "$(srcdir)/$(@F)" \
	 ; then \
	    cat "$(srcdir)/$(@F)" "$(builddir)/$(@F).tmp.$$$$" || exit ; \
	 fi ; \
	 if test ! -s "$(builddir)/$(@F).tmp.$$$$" ; then echo "- No NUT driver tools were built" > "$(builddir)/$(@F).tmp.$$$$" ; fi ; \
	 if test ! -s "$(builddir)/$(@F)" || ! diff "$(builddir)/$(@F).tmp.$$$$" "$(builddir)/$(@F)" ; then \
	    mv -f "$(builddir)/$(@F).tmp.$$$$" "$(builddir)/$(@F)" ; \
	 else \
	    echo "  GENERATE-LINKMAN	$@ : SKIP (keep existing file)" ; \
	    rm -f "$(builddir)/$(@F).tmp.$$$$" ; \
	 fi

# Doing this dynamically as here, so we may later deliver some more dynamic
# content if desired (e.g. lists of built/not-built programs, date, version,
# etc.). Or maybe not, we'll see :)

linkman-docbuildmode-note.txt: Makefile
	@echo "  GENERATE-LINKMAN	$@"
	@(  echo 'NOTE: This build of NUT was configured to deliver only manual pages for programs that were actually built. For more information about the ecosystem please see '; \
	    echo 'ifndef::website[]' ; \
	    echo 'the NUT website listing at https://networkupstools.org/docs/man/index.html or ' ; \
	    echo 'endif::website[]' ; \
	    echo 'the sources of these pages at https://github.com/networkupstools/nut/tree/master/docs/man'; \
	 ) > "$(builddir)/$(@F)"

#linkman-docbuildmode-note.txt: Makefile
#	@echo "  GENERATE-LINKMAN	$@"
#	@(  echo 'NOTE: This build of NUT was configured to deliver all available manual'; \
#	    echo 'ifndef::website[]' ; \
#	    echo 'pages, and may include those for programs that were not actually built or installed.' ; \
#	    echo 'endif::website[]' ; \
#	    echo 'ifdef::website[]' ; \
#	    echo 'pages.' ; \
#	    echo 'endif::website[]' ; \
#	 ) > "$(builddir)/$(@F)"

# Dependencies are about particular filenames, since over time
# we might have several use-cases for LINKMAN_INCLUDE_GENERATED:
$(LINKMAN_INCLUDE_CONSUMERS): linkman-driver-names.txt linkman-drivertool-names.txt linkman-docbuildmode-note.txt

# Make sure sources are there for out-of-tree builds:
$(HTML_MANS) $(MAN_MANS): $(abs_top_builddir)/docs/man/.prep-src-docs

all-html html-man: $(HTML_MANS)

# Have a way to build all man pages, not just those that fit currently
# configured drivers, daemons, developer aspect, etc.
all-man man-man: $(MAN_MANS)

dist-html: $(DIST_ALL_HTML_PAGES)
dist-man: $(DIST_ALL_MAN_PAGES)

#check-local: check-man
check-local: check-man-txt check-man-pages
	@echo "Man-page generation was SKIPPED per user request, so pregenerated pages were sanity-checked (if any)" >&2
#check-local: check-man-txt check-man-pages
#	@echo "Man-page generation was not done, so pregenerated pages were sanity-checked (if any)" >&2

check-man check-man-man: check-man-txt check-man-pages $(TGT_REQUIRE_CHECK_HTML)

# the "for" loops might better use $^ but it might be not portable
check-man-html: check-html-man

check-html-man: .check-html-man
.check-html-man: $(HTML_MANS) Makefile
	@FAILED=""; CHECKED=0; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
	for F in $(HTML_MANS) ; do \
	    CHECKED="`expr $$CHECKED + 1`"; \
	    test -s "$$F" && { file "$$F" | $(EGREP) -i '(XML|HTML.*document|symbolic link)' > /dev/null ; } || FAILED="$$FAILED $$F" ; \
	done; if test -n "$$FAILED" ; then \
	    echo "FAILED HTML-man sanity check for:$$FAILED" >&2 ; file $$FAILED >&2 ; exit 1; \
	fi; echo "PASSED HTML-man sanity check (checked $$CHECKED files)"; exit 0
	@touch $@

# Note: many man-pages here have code samples and are mis-identified as C code
check-man-page: check-man-pages

# Man-pages may be pre-generated (srcdir), or re-built (builddir)
check-man-pages: .check-man-pages
.check-man-pages: $(MAN_MANS) Makefile
	@FAILED=""; CHECKED=0; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
	for F in $(MAN_MANS) ; do \
	    CHECKED="`expr $$CHECKED + 1`"; \
	    ( test -s "$(abs_srcdir)/$$F" && { file "$(abs_srcdir)/$$F" | $(EGREP) -i '(roff.* input|C source|ASCII text)' > /dev/null ; } ) || \
	    ( test -s "$(abs_builddir)/$$F" && { file "$(abs_builddir)/$$F" | $(EGREP) -i '(roff.* input|C source|ASCII text)' > /dev/null ; } ) || \
	    FAILED="$$FAILED $$F" ; \
	done; if test -n "$$FAILED" ; then \
	    echo "FAILED man-page sanity check for:$$FAILED" >&2 ; \
	    ( echo "SRCDIR:"; cd "$(abs_srcdir)/" && file $$FAILED ; \
	      echo "BUILDDIR:"; cd "$(abs_builddir)/" && file $$FAILED ; \
	    ) >&2 ; exit 1; \
	fi; echo "PASSED man-page sanity check (checked $$CHECKED files)"; exit 0
	@touch $@

check-man-source: check-man-txt

# Note: (GNU) make can helpfully add VPATH to the short source filenames
# which we had listed above, so the "case" below handles two possibilities
check-man-txt: .check-man-txt
.check-man-txt: $(SRC_ALL_PAGES) Makefile
	@FAILED=""; CHECKED=0; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
	( cd $(abs_srcdir) ) || exit; \
	for F in $(SRC_ALL_PAGES) ; do \
	    CHECKED="`expr $$CHECKED + 1`"; \
	    case "$$F" in \
	        */*) ;; \
	        *) F="$(abs_srcdir)/$$F" ;; \
	    esac ; \
	    test -s "$$F" && { file "$$F" | $(EGREP) -i '(ASCII|UTF-8|Unicode|ISO-8859|English).* text' > /dev/null ; } || FAILED="$$FAILED $$F" ; \
	done; if test -n "$$FAILED" ; then \
	    echo "FAILED man-source sanity check for:$$FAILED" >&2 ; file $$FAILED >&2 ; exit 1; \
	fi; echo "PASSED man-source sanity check (checked $$CHECKED files)"; exit 0
	@touch $@
clean-man-pages:
##clean-man-pages:
#clean-man-pages:
#	@FILENAMES='$(DIST_ALL_MAN_PAGES)' ; $(FAKE_FILES_RM)

### Call the prep step consistently to create symlinks (out-of-tree)
### or just touch-files for peace of mind (in-tree builds). Then we
### use these path names (truncated "-prepped") now surely located
### in the builddir as the sources for rendered docs.

#*.txt-prepped: $(abs_top_builddir)/docs/man/.prep-src-docs

#.txt.txt-prepped: $(abs_top_builddir)/docs/man/.prep-src-docs

### Regarding absolute paths in attributes below: by default asciidoc
### resolves include paths relative to the main document, so while we
### see the relative builddir as "." in the makefile, for included
### data it would mean the source directory where the .txt resides.
### Note: `(top_)srcdir` and `(top_)builddir` must end with a path
### separator, or be empty -- so in all cases letting the resulting
### string resolve meaningfully in the filesystem during docs build.
#.txt-prepped.html:
#	@A2X_OUTDIR="tmp/man-html.$(@F).$$$$" ; \
#	 echo "  DOC-MAN-HTML	Generating $@"; \
#	 $(DOCBUILD_BEGIN) ; RES=0; \
#	 $(ASCIIDOC) --backend=xhtml11 $${A2X_VERBOSE} \
#		--attribute=localdate="`TZ=UTC date +%Y-%m-%d`" \
#		--attribute=localtime="`TZ=UTC date +%H:%M:%S`" \
#		--attribute=nutversion="$(PACKAGE_VERSION)" \
#		--attribute=srcdir="$(abs_srcdir)/" \
#		--attribute=builddir="$(abs_builddir)/" \
#		--attribute=top_srcdir="$(abs_top_srcdir)/" \
#		--attribute=top_builddir="$(abs_top_builddir)/" \
#		--attribute=MAN_SECTION_API_BASE='$(MAN_SECTION_API_BASE)' \
#		--attribute=MAN_SECTION_CFG_BASE='$(MAN_SECTION_CFG_BASE)' \
#		--attribute=MAN_SECTION_CMD_SYS_BASE='$(MAN_SECTION_CMD_SYS_BASE)' \
#		--attribute=MAN_SECTION_CMD_USR_BASE='$(MAN_SECTION_CMD_USR_BASE)' \
#		--attribute=MAN_SECTION_MISC_BASE='$(MAN_SECTION_MISC_BASE)' \
#		--attribute=NUT_WEBSITE_BASE='$(NUT_WEBSITE_BASE)' \
#		-o "$${A2X_OUTDIR}/$(@F)" '$<' || RES=$$? ; \
#	 $(DOCBUILD_END) ; exit $$RES

#.txt.$(MAN_SECTION_API) .txt-prepped.$(MAN_SECTION_API) \
#.txt.$(MAN_SECTION_CFG) .txt-prepped.$(MAN_SECTION_CFG) \
#.txt.$(MAN_SECTION_CMD_SYS) .txt-prepped.$(MAN_SECTION_CMD_SYS) \
#.txt.$(MAN_SECTION_CMD_USR) .txt-prepped.$(MAN_SECTION_CMD_USR) \
#.txt.$(MAN_SECTION_MISC) .txt-prepped.$(MAN_SECTION_MISC) :
#	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
#		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not functional (even though found)." ; \
#	else \
#		echo "Could not find prebuilt $@ manual page." ; \
#		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed and functional?"; \
#		exit 1; \
#	fi

##.txt-prepped.$(MAN_SECTION_CMD_USR):
##	@A2X_OUTDIR="tmp/man$(MAN_SECTION_CMD_USR).$(@F).$$$$" ; \
##	 echo "  DOC-MAN	Generating $@"; \
##	 $(DOCBUILD_BEGIN) ; RES=0; \
##	 $(A2X) $(A2X_MANPAGE_OPTS) '$<' || RES=$$? ; \
##	 $(DOCBUILD_END) ; exit $$RES

##.txt-prepped.$(MAN_SECTION_API):
##	@A2X_OUTDIR="tmp/man$(MAN_SECTION_API).$(@F).$$$$" ; \
##	 echo "  DOC-MAN	Generating $@"; \
##	 $(DOCBUILD_BEGIN) ; RES=0; \
##	 $(A2X) $(A2X_MANPAGE_OPTS) '$<' || RES=$$? ; \
##	 $(DOCBUILD_END) ; exit $$RES

##.txt-prepped.$(MAN_SECTION_CFG):
##	@A2X_OUTDIR="tmp/man$(MAN_SECTION_CFG).$(@F).$$$$" ; \
##	 echo "  DOC-MAN	Generating $@"; \
##	 $(DOCBUILD_BEGIN) ; RES=0; \
##	 $(A2X) $(A2X_MANPAGE_OPTS) '$<' || RES=$$? ; \
##	 $(DOCBUILD_END) ; exit $$RES

##.txt-prepped.$(MAN_SECTION_CMD_SYS):
##	@A2X_OUTDIR="tmp/man$(MAN_SECTION_CMD_SYS).$(@F).$$$$" ; \
##	 echo "  DOC-MAN	Generating $@"; \
##	 $(DOCBUILD_BEGIN) ; RES=0; \
##	 $(A2X) $(A2X_MANPAGE_OPTS) '$<' || RES=$$? ; \
##	 $(DOCBUILD_END) ; exit $$RES

##.txt-prepped.$(MAN_SECTION_MISC):
##	@A2X_OUTDIR="tmp/man$(MAN_SECTION_MISC).$(@F).$$$$" ; \
##	 echo "  DOC-MAN	Generating $@"; \
##	 $(DOCBUILD_BEGIN) ; RES=0; \
##	 $(A2X) $(A2X_MANPAGE_OPTS) '$<' || RES=$$? ; \
##	 $(DOCBUILD_END) ; exit $$RES

.txt.html:
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page (as HTML), since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page (as HTML)." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

.txt.$(MAN_SECTION_CMD_USR):
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

.txt.$(MAN_SECTION_API):
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

.txt.$(MAN_SECTION_CFG):
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

.txt.$(MAN_SECTION_CMD_SYS):
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

.txt.$(MAN_SECTION_MISC):
	@if [ -r "$@" -o -r "$(srcdir)/$(@F)" ] $(SRC_PREBUILT_CLAUSE); then \
		echo "Not (re)building $@ manual page, since 'asciidoc', 'xmllint' or 'xsltproc' were not found." ; \
	else \
		echo "Could not find prebuilt $@ manual page." ; \
		echo "If you are building from Git, do you have all of the asciidoc/a2x tools installed?"; \
		exit 1; \
	fi

# NOTE: Due to portability, we do not use a GNU percent-wildcard extension.
# We also have to export some variables that may be tainted by relative
# paths when parsing the other makefile (e.g. MKDIR_P that may be defined
# via expanded $(top_builddir)/install-sh):
#%-spellchecked: % Makefile.am $(top_srcdir)/docs/Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
#	+$(MAKE) -s -f $(top_builddir)/docs/Makefile $(AM_MAKEFLAGS) MKDIR_P="$(MKDIR_P)" builddir="$(builddir)" srcdir="$(srcdir)" top_builddir="$(top_builddir)" top_srcdir="$(top_srcdir)" SPELLCHECK_SRC_ONE='$<' SPELLCHECK_SRCDIR="$(srcdir)" SPELLCHECK_BUILDDIR="$(builddir)" $@

# NOTE: Portable suffix rules do not allow prerequisites, so we shim them here
# by a wildcard target in case the make implementation can put the two together.
*.txt-spellchecked: Makefile.am $(abs_top_srcdir)/docs/Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
.txt.txt-spellchecked:
	+$(MAKE) -s -f $(top_builddir)/docs/Makefile $(AM_MAKEFLAGS) MKDIR_P="$(MKDIR_P)" builddir="$(builddir)" srcdir="$(srcdir)" top_builddir="$(top_builddir)" top_srcdir="$(top_srcdir)" SPELLCHECK_SRC_ONE='$<' SPELLCHECK_SRCDIR="$(srcdir)" SPELLCHECK_BUILDDIR="$(builddir)" $@

spellcheck spellcheck-interactive spellcheck-sortdict:
	+$(MAKE) -f $(top_builddir)/docs/Makefile $(AM_MAKEFLAGS) MKDIR_P="$(MKDIR_P)" builddir="$(builddir)" srcdir="$(srcdir)" top_builddir="$(top_builddir)" top_srcdir="$(top_srcdir)" SPELLCHECK_SRC="$(SRC_ALL_PAGES)" SPELLCHECK_SRCDIR="$(srcdir)" SPELLCHECK_BUILDDIR="$(builddir)" $@
prep-src-docs: $(abs_top_builddir)/docs/man/.prep-src-docs
$(abs_top_builddir)/docs/man/.prep-src-docs: $(PREP_SRC) Makefile
	@cd "$(@D)" || exit ; \
	 if [ x"$(DOCS_NO_MAN)" = xtrue ] ; then \
	    if [ "$(MAINTAINER_DOCS_PREP_MAN_DELAY)" -gt 0 ] 2>/dev/null ; then \
	        echo "  DOCS_NO_MAN	BLOCK: $@ called in docs/man/Makefile : waiting for other thread to complete this target" ; \
	        W=0 ; while [ "$${W}" -lt "$(MAINTAINER_DOCS_PREP_MAN_DELAY)" ] && ( [ \! -e '$@' ] || [ x"`find $(PREP_SRC) \! -newer '$@' 2>/dev/null`" = x ] ) ; do sleep 1 ; W="`expr $$W + 1`"; done ; \
	        echo "  DOCS_NO_MAN	SKIP: $@ called in docs/man/Makefile : waited $$W seconds" ; \
	    fi ; \
	    exit 0 ; \
	 fi ; \
	 linkroot="$(abs_builddir)" ; \
	 MAN_SECTIONS_DEFAULT=false ; \
	 if [ x"$(MAN_SECTION_API)$(MAN_SECTION_CFG)$(MAN_SECTION_CMD_SYS)$(MAN_SECTION_CMD_USR)$(MAN_SECTION_MISC)" = x35817 ] ; then \
	    MAN_SECTIONS_DEFAULT=true ; \
	 fi ; \
	 if test x"$(abs_srcdir)" = x"$(abs_builddir)" ; then \
	    COUNT=0; \
	    for F in $(PREP_SRC) ; do \
	        case "$$F" in \
	            /*) F="`echo "$$F" | sed "s#^$(abs_top_srcdir)/*#./#"`"; \
	                if test x"$${linkroot}" = x"$(abs_builddir)" ; then \
	                    linkroot="$(abs_top_builddir)" ; \
	                    cd "$(abs_top_builddir)" ; \
	                fi ;; \
	        esac ; \
	        case "$$F" in \
	        *.xml|*.xsl|*.css|*.jpg|*.png|*.pdn|*.svg) ;; \
	        *.txt|*.adoc|*.in|*.sample|*.conf|*) \
	        if $$MAN_SECTIONS_DEFAULT ; then \
	            sed \
	                -e 's,\(home page:\) https://www.networkupstools.org/*$$,\1 $(NUT_WEBSITE_BASE)/,' ; \
	        else \
	            sed \
	                -e 's,\(home page:\) https://www.networkupstools.org/*$$,\1 $(NUT_WEBSITE_BASE)/,' \
	                -e 's,\(linkman:[^ []*\[\)3\],\1$(MAN_SECTION_API)],g' \
	                -e 's,\(linkman:[^ []*\[\)5\],\1$(MAN_SECTION_CFG)],g' \
	                -e 's,\(linkman:[^ []*\[\)8\],\1$(MAN_SECTION_CMD_SYS)],g' \
	                -e 's,\(linkman:[^ []*\[\)1\],\1$(MAN_SECTION_CMD_USR)],g' \
	                -e 's,\(linkman:[^ []*\[\)7\],\1$(MAN_SECTION_MISC)],g' \
	                -e '1 s,\(^.*(\)3)$$,\1$(MAN_SECTION_API)),g' \
	                -e '1 s,\(^.*(\)5)$$,\1$(MAN_SECTION_CFG)),g' \
	                -e '1 s,\(^.*(\)8)$$,\1$(MAN_SECTION_CMD_SYS)),g' \
	                -e '1 s,\(^.*(\)1)$$,\1$(MAN_SECTION_CMD_USR)),g' \
	                -e '1 s,\(^.*(\)7)$$,\1$(MAN_SECTION_MISC)),g' | \
	            if [ x"$(ASCIIDOC_LINKMANEXT_SECTION_REWRITE)" = xyes ] ; then \
	                sed \
	                -e 's,\(linkmanext2?:[^ []*\[\)3\],\1$(MAN_SECTION_API)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)5\],\1$(MAN_SECTION_CFG)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)8\],\1$(MAN_SECTION_CMD_SYS)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)1\],\1$(MAN_SECTION_CMD_USR)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)7\],\1$(MAN_SECTION_MISC)],g' ; \
	            else cat ; fi; \
	        fi < "$${F}" > "$${F}-prepped" || exit ;; \
	        esac ; \
	        COUNT="`expr $$COUNT + 1`" ; \
	    done ; \
	 else \
	    COUNT=30 ; \
	    touch "$@.$$$$" ; \
	    while test -e "$@.working" -a "$$COUNT" -gt 0 ; do sleep 1; COUNT="`expr $$COUNT - 1`"; done ; \
	    touch "$@.working" ; \
	    if test -n "`find "$@" -newer "$@.$$$$" 2>/dev/null`" ; then \
	        rm -f "$@.$$$$" "$@.working" ; \
	        exit 0; \
	    fi ; \
	    rm -f "$@.$$$$" ; \
	    COUNT=0; \
	    linksrcroot="$(abs_srcdir)" ; \
	    for F in `echo $(PREP_SRC) | tr ' ' '\n' | sort -n | uniq` ; do \
	        case "$$F" in \
	            /*) F="`echo "$$F" | sed "s#^$(abs_top_srcdir)/*#./#"`"; \
	                if test x"$${linkroot}" = x"$(abs_builddir)" ; then \
	                    linkroot="$(abs_top_builddir)" ; \
	                    linksrcroot="$(abs_top_srcdir)" ; \
	                    cd "$(abs_top_builddir)" ; \
	                fi ;; \
	            "$(srcdir)"/*) F="`echo "$$F" | sed 's#^$(srcdir)/*#./#'`" ;; \
	            */*) ;; \
	            *) \
	                linkroot="$(abs_builddir)" ; \
	                linksrcroot="$(abs_srcdir)" ; \
	                cd "$(abs_top_builddir)" ;; \
	        esac ; \
	        D="`dirname "$$F"`" ; \
	        (cd '$(abs_builddir)' && $(MKDIR_P) "$${linkroot}/$$D") || { rm -f "$@.working" ; exit 1 ; } ; \
	        if ! test -e "$${linkroot}/$$F" && test -s "$${linksrcroot}/$$F" ; then \
	            echo "  LN	'$${linksrcroot}/$$F' => '$${linkroot}/$$F' (PWD = '`pwd`')" >&2 ; \
	            ln -fs "$${linksrcroot}/$$F" "$${linkroot}/$$F" || { rm -f "$@.working" ; exit 1 ; } ; \
	            COUNT="`expr $$COUNT + 1`" ; \
	        fi ; \
	        case "$$F" in \
	            *.txt|*.adoc) IS_TEXT=true ;; \
	            *.*) IS_TEXT=false ;; \
	            *) IS_TEXT=true ;; \
	        esac; \
	        if $$IS_TEXT ; then \
	            grep -w linkman "$${linkroot}/$${F}" > /dev/null || IS_TEXT=false ; \
	        fi ; \
	        case "$$F" in \
	        *.xml|*.xsl|*.css|*.jpg|*.png|*.pdn|*.svg) ;; \
	        *.txt|*.adoc|*.in|*.sample|*.conf|*) \
	        if $$MAN_SECTIONS_DEFAULT || ! $$IS_TEXT ; then \
	            sed \
	                -e 's,\(home page:\) https://www.networkupstools.org/*$$,\1 $(NUT_WEBSITE_BASE)/,' ; \
	        else \
	            sed \
	                -e 's,\(home page:\) https://www.networkupstools.org/*$$,\1 $(NUT_WEBSITE_BASE)/,' \
	                -e 's,\(linkman:[^ []*\[\)3\],\1$(MAN_SECTION_API)],g' \
	                -e 's,\(linkman:[^ []*\[\)5\],\1$(MAN_SECTION_CFG)],g' \
	                -e 's,\(linkman:[^ []*\[\)8\],\1$(MAN_SECTION_CMD_SYS)],g' \
	                -e 's,\(linkman:[^ []*\[\)1\],\1$(MAN_SECTION_CMD_USR)],g' \
	                -e 's,\(linkman:[^ []*\[\)7\],\1$(MAN_SECTION_MISC)],g' \
	                -e '1 s,\(^.*(\)3)$$,\1$(MAN_SECTION_API)),g' \
	                -e '1 s,\(^.*(\)5)$$,\1$(MAN_SECTION_CFG)),g' \
	                -e '1 s,\(^.*(\)8)$$,\1$(MAN_SECTION_CMD_SYS)),g' \
	                -e '1 s,\(^.*(\)1)$$,\1$(MAN_SECTION_CMD_USR)),g' \
	                -e '1 s,\(^.*(\)7)$$,\1$(MAN_SECTION_MISC)),g' | \
	            if [ x"$(ASCIIDOC_LINKMANEXT_SECTION_REWRITE)" = xyes ] ; then \
	                sed \
	                -e 's,\(linkmanext2?:[^ []*\[\)3\],\1$(MAN_SECTION_API)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)5\],\1$(MAN_SECTION_CFG)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)8\],\1$(MAN_SECTION_CMD_SYS)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)1\],\1$(MAN_SECTION_CMD_USR)],g' \
	                -e 's,\(linkmanext2?:[^ []*\[\)7\],\1$(MAN_SECTION_MISC)],g' ; \
	            else cat ; fi; \
	        fi < "$${linkroot}/$${F}" > "$${linkroot}/$${F}-prepped" \
	        || { rm -f "$@.working" ; exit 1 ; } ;; \
	        esac ; \
	        COUNT="`expr $$COUNT + 1`" ; \
	    done ; \
	 fi ; \
	 if test "$$COUNT" -gt 0 -o ! -e "$@" ; then touch "$@" ; fi
	@rm -f "$@.working"

clean-local: clean-man-pages
	$(AM_V_at)rm -rf tmp
	$(AM_V_at)for F in $(PREP_SRC) ; do \
	        case "$$F" in \
	            /*) F="`echo "$$F" | sed "s#^$(abs_top_srcdir)/*#./#"`"; cd "$(abs_top_builddir)" ;; \
	        esac ; \
	        if test x"$(abs_srcdir)" != x"$(abs_builddir)" ; then \
	            if test -L "$$F" || test -h "$$F" ; then \
	                rm -f "$$F" ; \
	            fi ; \
	        fi ; \
	        rm -f "$${F}-prepped" ; \
	    done ; \
	    rm -f "$(abs_top_builddir)/docs/man/.prep-src-docs"*

# 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:

# Tell GNU make to disable its built-in pattern rules.
%:: %,v
%:: RCS/%,v
%:: RCS/%
%:: s.%
%:: SCCS/s.%
