nut-debian/docs/Makefile.in

1159 lines
43 KiB
Makefile
Raw Normal View History

2022-07-10 10:23:45 +03:00
# Makefile.in generated by automake 1.16.3 from Makefile.am.
2010-03-26 01:20:59 +02:00
# @configure_input@
2022-07-10 10:23:45 +03:00
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
2015-04-30 16:53:36 +03:00
2010-03-26 01:20:59 +02:00
# 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.
@SET_MAKE@
VPATH = @srcdir@
2022-07-10 10:23:45 +03:00
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; \
}
2015-04-30 16:53:36 +03:00
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 \
2013-11-24 17:00:12 +02:00
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
2015-04-30 16:53:36 +03:00
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;; \
2013-11-24 17:00:12 +02:00
esac; \
2015-04-30 16:53:36 +03:00
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))
2010-03-26 01:20:59 +02:00
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
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 = @build@
host_triplet = @host@
target_triplet = @target@
subdir = docs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
2022-07-10 10:23:45 +03:00
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_run_or_link_ifelse.m4 \
2010-03-26 01:20:59 +02:00
$(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 \
2011-01-26 11:35:08 +02:00
$(top_srcdir)/m4/nut_check_asciidoc.m4 \
2022-07-10 10:23:45 +03:00
$(top_srcdir)/m4/nut_check_cppcheck.m4 \
$(top_srcdir)/m4/nut_check_headers_windows.m4 \
2011-09-29 21:14:46 +03:00
$(top_srcdir)/m4/nut_check_libavahi.m4 \
$(top_srcdir)/m4/nut_check_libfreeipmi.m4 \
2010-03-26 01:20:59 +02:00
$(top_srcdir)/m4/nut_check_libgd.m4 \
2012-01-24 12:22:33 +02:00
$(top_srcdir)/m4/nut_check_libltdl.m4 \
2022-07-10 10:23:45 +03:00
$(top_srcdir)/m4/nut_check_libmodbus.m4 \
2010-03-26 01:20:59 +02:00
$(top_srcdir)/m4/nut_check_libneon.m4 \
$(top_srcdir)/m4/nut_check_libnetsnmp.m4 \
2013-11-24 17:00:12 +02:00
$(top_srcdir)/m4/nut_check_libnss.m4 \
$(top_srcdir)/m4/nut_check_libopenssl.m4 \
2010-03-26 01:20:59 +02:00
$(top_srcdir)/m4/nut_check_libpowerman.m4 \
$(top_srcdir)/m4/nut_check_libusb.m4 \
$(top_srcdir)/m4/nut_check_libwrap.m4 \
$(top_srcdir)/m4/nut_check_os.m4 \
2022-07-10 10:23:45 +03:00
$(top_srcdir)/m4/nut_check_pkgconfig.m4 \
$(top_srcdir)/m4/nut_check_python.m4 \
$(top_srcdir)/m4/nut_compiler_family.m4 \
$(top_srcdir)/m4/nut_func_getnameinfo_argtypes.m4 \
2010-03-26 01:20:59 +02:00
$(top_srcdir)/m4/nut_report_feature.m4 \
2022-07-10 10:23:45 +03:00
$(top_srcdir)/m4/nut_stash_warnings.m4 \
2010-03-26 01:20:59 +02:00
$(top_srcdir)/m4/nut_type_socklen_t.m4 \
2014-04-22 21:39:47 +03:00
$(top_srcdir)/configure.ac
2010-03-26 01:20:59 +02:00
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
2022-07-10 10:23:45 +03:00
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
2010-03-26 01:20:59 +02:00
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/config.h
2015-04-30 16:53:36 +03:00
CONFIG_CLEAN_FILES = docinfo.xml
2010-03-26 01:20:59 +02:00
CONFIG_CLEAN_VPATH_FILES =
2015-04-30 16:53:36 +03:00
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
2010-03-26 01:20:59 +02:00
SOURCES =
DIST_SOURCES =
2015-04-30 16:53:36 +03:00
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
2013-11-24 17:00:12 +02:00
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
2011-01-26 11:35:08 +02:00
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
2015-04-30 16:53:36 +03:00
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
2022-07-10 10:23:45 +03:00
distdir distdir-am
2015-04-30 16:53:36 +03:00
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
2011-01-26 11:35:08 +02:00
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
2022-07-10 10:23:45 +03:00
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/docinfo.xml.in
2010-03-26 01:20:59 +02:00
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
2011-01-26 11:35:08 +02:00
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
A2X = @A2X@
2010-03-26 01:20:59 +02:00
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
2015-04-30 16:53:36 +03:00
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
2010-03-26 01:20:59 +02:00
AR = @AR@
2011-01-26 11:35:08 +02:00
ASCIIDOC = @ASCIIDOC@
2013-11-24 17:00:12 +02:00
ASPELL = @ASPELL@
2022-07-10 10:23:45 +03:00
AUGPARSE = @AUGPARSE@
2010-03-26 01:20:59 +02:00
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDIR = @BINDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CONFPATH = @CONFPATH@
CPP = @CPP@
2022-07-10 10:23:45 +03:00
CPPCHECK = @CPPCHECK@
2010-03-26 01:20:59 +02:00
CPPFLAGS = @CPPFLAGS@
2012-08-13 00:39:31 +03:00
CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@
CPPUNIT_LIBS = @CPPUNIT_LIBS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
2010-03-26 01:20:59 +02:00
CYGPATH_W = @CYGPATH_W@
2011-01-26 11:35:08 +02:00
DBLATEX = @DBLATEX@
2010-03-26 01:20:59 +02:00
DEFS = @DEFS@
DEPDIR = @DEPDIR@
2012-01-24 12:22:33 +02:00
DLLTOOL = @DLLTOOL@
2011-01-26 11:35:08 +02:00
DOC_BUILD_LIST = @DOC_BUILD_LIST@
2022-07-10 10:23:45 +03:00
DOC_CHECK_LIST = @DOC_CHECK_LIST@
2010-03-26 01:20:59 +02:00
DRIVER_BUILD_LIST = @DRIVER_BUILD_LIST@
DRIVER_INSTALL_TARGET = @DRIVER_INSTALL_TARGET@
DRIVER_MAN_LIST = @DRIVER_MAN_LIST@
2013-11-24 17:00:12 +02:00
DRVPATH = @DRVPATH@
2010-03-26 01:20:59 +02:00
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
2022-07-10 10:23:45 +03:00
# Is "egrep == grep -E" always valid? (maybe all a job for configure.ac)
EGREP = egrep
2010-03-26 01:20:59 +02:00
EXEEXT = @EXEEXT@
FGREP = @FGREP@
2022-07-10 10:23:45 +03:00
GDLIB_CONFIG = @GDLIB_CONFIG@
2010-03-26 01:20:59 +02:00
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
2011-09-29 21:14:46 +03:00
LIBAVAHI_CFLAGS = @LIBAVAHI_CFLAGS@
LIBAVAHI_LIBS = @LIBAVAHI_LIBS@
2016-07-18 03:11:41 +03:00
LIBDIR = @LIBDIR@
2010-03-26 01:20:59 +02:00
LIBGD_CFLAGS = @LIBGD_CFLAGS@
LIBGD_LDFLAGS = @LIBGD_LDFLAGS@
2011-09-29 21:14:46 +03:00
LIBIPMI_CFLAGS = @LIBIPMI_CFLAGS@
LIBIPMI_LIBS = @LIBIPMI_LIBS@
2012-01-24 12:22:33 +02:00
LIBLTDL_CFLAGS = @LIBLTDL_CFLAGS@
LIBLTDL_LIBS = @LIBLTDL_LIBS@
2022-07-10 10:23:45 +03:00
LIBMODBUS_CFLAGS = @LIBMODBUS_CFLAGS@
LIBMODBUS_LIBS = @LIBMODBUS_LIBS@
2010-03-26 01:20:59 +02:00
LIBNEON_CFLAGS = @LIBNEON_CFLAGS@
2011-01-26 11:35:08 +02:00
LIBNEON_LIBS = @LIBNEON_LIBS@
2010-03-26 01:20:59 +02:00
LIBNETSNMP_CFLAGS = @LIBNETSNMP_CFLAGS@
2011-01-26 11:35:08 +02:00
LIBNETSNMP_LIBS = @LIBNETSNMP_LIBS@
2010-03-26 01:20:59 +02:00
LIBOBJS = @LIBOBJS@
LIBPOWERMAN_CFLAGS = @LIBPOWERMAN_CFLAGS@
2011-01-26 11:35:08 +02:00
LIBPOWERMAN_LIBS = @LIBPOWERMAN_LIBS@
2010-03-26 01:20:59 +02:00
LIBS = @LIBS@
LIBSSL_CFLAGS = @LIBSSL_CFLAGS@
2011-01-26 11:35:08 +02:00
LIBSSL_LIBS = @LIBSSL_LIBS@
2022-07-10 10:23:45 +03:00
LIBSSL_REQUIRES = @LIBSSL_REQUIRES@
2010-03-26 01:20:59 +02:00
LIBTOOL = @LIBTOOL@
2022-07-10 10:23:45 +03:00
LIBTOOL_DEPS = @LIBTOOL_DEPS@
2010-03-26 01:20:59 +02:00
LIBUSB_CFLAGS = @LIBUSB_CFLAGS@
2022-07-10 10:23:45 +03:00
LIBUSB_CONFIG = @LIBUSB_CONFIG@
2011-01-26 11:35:08 +02:00
LIBUSB_LIBS = @LIBUSB_LIBS@
2010-03-26 01:20:59 +02:00
LIBWRAP_CFLAGS = @LIBWRAP_CFLAGS@
2011-01-26 11:35:08 +02:00
LIBWRAP_LIBS = @LIBWRAP_LIBS@
2010-03-26 01:20:59 +02:00
LIPO = @LIPO@
LN_S = @LN_S@
2022-07-10 10:23:45 +03:00
LN_S_R = @LN_S_R@
2010-03-26 01:20:59 +02:00
LTLIBOBJS = @LTLIBOBJS@
2022-07-10 10:23:45 +03:00
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
2010-03-26 01:20:59 +02:00
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
2012-01-24 12:22:33 +02:00
MANIFEST_TOOL = @MANIFEST_TOOL@
2010-03-26 01:20:59 +02:00
MKDIR_P = @MKDIR_P@
NETLIBS = @NETLIBS@
2022-07-10 10:23:45 +03:00
NET_SNMP_CONFIG = @NET_SNMP_CONFIG@
2010-03-26 01:20:59 +02:00
NM = @NM@
NMEDIT = @NMEDIT@
2022-07-10 10:23:45 +03:00
NUT_DATADIR = @NUT_DATADIR@
NUT_LIBEXECDIR = @NUT_LIBEXECDIR@
2012-06-01 16:55:19 +03:00
NUT_NETVERSION = @NUT_NETVERSION@
2010-03-26 01:20:59 +02:00
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OS_NAME = @OS_NAME@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
2012-06-01 16:55:19 +03:00
PIDPATH = @PIDPATH@
2011-09-29 21:14:46 +03:00
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
PORT = @PORT@
2022-07-10 10:23:45 +03:00
PYTHON = @PYTHON@
PYTHON2 = @PYTHON2@
PYTHON3 = @PYTHON3@
2010-03-26 01:20:59 +02:00
RANLIB = @RANLIB@
RUN_AS_GROUP = @RUN_AS_GROUP@
RUN_AS_USER = @RUN_AS_USER@
2012-06-01 16:55:19 +03:00
SBINDIR = @SBINDIR@
2010-03-26 01:20:59 +02:00
SED = @SED@
SERLIBS = @SERLIBS@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
2015-04-30 16:53:36 +03:00
SOURCE_HIGHLIGHT = @SOURCE_HIGHLIGHT@
2010-03-26 01:20:59 +02:00
STATEPATH = @STATEPATH@
STRIP = @STRIP@
SUN_LIBUSB = @SUN_LIBUSB@
2012-01-24 12:22:33 +02:00
TREE_VERSION = @TREE_VERSION@
2022-07-10 10:23:45 +03:00
VALGRIND = @VALGRIND@
2010-03-26 01:20:59 +02:00
VERSION = @VERSION@
WORDS_BIGENDIAN = @WORDS_BIGENDIAN@
2015-04-30 16:53:36 +03:00
XMLLINT = @XMLLINT@
XSLTPROC = @XSLTPROC@
2010-03-26 01:20:59 +02:00
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
2012-01-24 12:22:33 +02:00
ac_ct_AR = @ac_ct_AR@
2010-03-26 01:20:59 +02:00
ac_ct_CC = @ac_ct_CC@
2012-08-13 00:39:31 +03:00
ac_ct_CXX = @ac_ct_CXX@
2010-03-26 01:20:59 +02:00
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
2022-07-10 10:23:45 +03:00
auglensdir = @auglensdir@
2010-03-26 01:20:59 +02:00
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
cgiexecdir = @cgiexecdir@
datadir = @datadir@
datarootdir = @datarootdir@
2014-04-22 21:39:47 +03:00
devddir = @devddir@
2010-03-26 01:20:59 +02:00
docdir = @docdir@
driverexecdir = @driverexecdir@
2022-07-10 10:23:45 +03:00
dummy_PKG_CONFIG = @dummy_PKG_CONFIG@
dummy_PKG_CONFIG_CFLAGS = @dummy_PKG_CONFIG_CFLAGS@
dummy_PKG_CONFIG_LIBS = @dummy_PKG_CONFIG_LIBS@
2010-03-26 01:20:59 +02:00
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
hotplugdir = @hotplugdir@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
2015-04-30 16:53:36 +03:00
now = @now@
2010-03-26 01:20:59 +02:00
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
pkgconfigdir = @pkgconfigdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
2022-07-10 10:23:45 +03:00
runstatedir = @runstatedir@
2010-03-26 01:20:59 +02:00
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
2022-07-10 10:23:45 +03:00
systemdshutdowndir = @systemdshutdowndir@
2011-09-29 21:14:46 +03:00
systemdsystemunitdir = @systemdsystemunitdir@
2022-07-10 10:23:45 +03:00
systemdtmpfilesdir = @systemdtmpfilesdir@
2010-03-26 01:20:59 +02:00
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
udevdir = @udevdir@
2022-07-10 10:23:45 +03:00
MAINTAINERCLEANFILES = Makefile.in .dirstamp
EXTRA_DIST = $(ALL_TXT_SRC) $(SHARED_DEPS) $(IMAGE_FILES) \
$(CABLES_IMAGES) $(NUT_SPELL_DICT) common.xsl xhtml.xsl \
chunked.xsl asciidoc.txt
#EGREP = grep -E
2011-01-26 11:35:08 +02:00
IMAGE_FILES = images/asciidoc.png \
2012-08-13 00:39:31 +03:00
images/hostedby.png \
2011-01-26 11:35:08 +02:00
images/nut_layering.png \
2012-01-24 12:22:33 +02:00
images/nut-logo.png \
2011-01-26 11:35:08 +02:00
images/note.png \
images/warning.png \
images/blue-arrow.png \
images/simple.png \
images/advanced.png \
images/bigbox.png \
images/bizarre.png \
images/old-cgi.png
2012-01-24 12:22:33 +02:00
# Only track here the local deps
2022-07-10 10:23:45 +03:00
SHARED_DEPS = nut-names.txt daisychain.txt asciidoc.conf asciidoc.txt
2011-01-26 11:35:08 +02:00
USER_MANUAL_DEPS = acknowledgements.txt cables.txt config-notes.txt \
2022-07-10 10:23:45 +03:00
config-prereqs.txt ci-farm-lxc-setup.txt \
2011-01-26 11:35:08 +02:00
configure.txt download.txt documentation.txt features.txt history.txt \
2014-04-22 21:39:47 +03:00
outlets.txt scheduling.txt security.txt support.txt user-manual.txt
2011-01-26 11:35:08 +02:00
DEVELOPER_GUIDE_DEPS = contact-closure.txt design.txt developers.txt \
2013-11-24 17:00:12 +02:00
developer-guide.txt hid-subdrivers.txt macros.txt new-clients.txt \
new-drivers.txt net-protocol.txt nutdrv_qx-subdrivers.txt \
snmp-subdrivers.txt sock-protocol.txt
2011-01-26 11:35:08 +02:00
CABLES_DEPS = cables/apc-rs500-serial.txt \
2010-03-26 01:20:59 +02:00
cables/apc.txt cables/ge-imv-victron.txt cables/imv.txt \
cables/mgeups.txt cables/powerware.txt cables/repotec.txt \
cables/sms.txt
2011-01-26 11:35:08 +02:00
CABLES_IMAGES = images/cables/73-0724.png images/cables/940-0024C.jpg \
images/cables/belkin-f6cx-rkm-xu-cable.jpg images/cables/Lansafecable.jpg \
images/cables/mac-940-0024C.png images/cables/mge-66049.png \
images/cables/mge-db9-rj12.jpg images/cables/mge-db9-rj45.jpg \
2015-04-30 16:53:36 +03:00
images/cables/mge-usb-rj45.jpg \
2011-01-26 11:35:08 +02:00
images/cables/SOLA-330.png
2022-07-10 10:23:45 +03:00
ALL_TXT_SRC = nut-names.txt daisychain.txt \
$(USER_MANUAL_DEPS) $(DEVELOPER_GUIDE_DEPS) \
$(CABLES_DEPS) FAQ.txt nut-qa.txt packager-guide.txt snmp.txt \
solaris-usb.txt
2013-11-24 17:00:12 +02:00
NUT_SPELL_DICT = nut.dict
2011-01-26 11:35:08 +02:00
ASCIIDOC_HTML_SINGLE = user-manual.html \
developer-guide.html \
packager-guide.html \
2022-07-10 10:23:45 +03:00
solaris-usb.html \
cables.html \
2011-01-26 11:35:08 +02:00
FAQ.html
ASCIIDOC_HTML_CHUNKED = user-manual.chunked \
developer-guide.chunked \
packager-guide.chunked \
2022-07-10 10:23:45 +03:00
solaris-usb.chunked \
cables.chunked \
FAQ.chunked
2011-01-26 11:35:08 +02:00
ASCIIDOC_PDF = user-manual.pdf \
developer-guide.pdf \
packager-guide.pdf \
2022-07-10 10:23:45 +03:00
solaris-usb.pdf \
cables.pdf \
2011-01-26 11:35:08 +02:00
FAQ.pdf
2022-07-10 10:23:45 +03:00
SUBDIRS = man cables
SUFFIXES = .txt .html .pdf -spellchecked
CLEANFILES = *.xml *.html *.pdf *-spellchecked docbook-xsl.css
2011-01-26 11:35:08 +02:00
### TODO: automatic dependency generation
2012-01-24 12:22:33 +02:00
# Add other directory deps (not for local EXTRA_DIST) and generated contents
FULL_USER_MANUAL_DEPS = $(USER_MANUAL_DEPS) $(SHARED_DEPS) ../README \
2014-04-22 21:39:47 +03:00
../INSTALL.nut ../UPGRADING ../TODO ../scripts/ufw/README
2011-01-26 11:35:08 +02:00
2012-01-24 12:22:33 +02:00
FULL_DEVELOPER_GUIDE_DEPS = $(DEVELOPER_GUIDE_DEPS) $(SHARED_DEPS) \
../scripts/augeas/README ../TODO ../lib/README \
../tools/nut-scanner/README
2011-01-26 11:35:08 +02:00
# Note: without the "-v", asciidoc (circa 8.6.2) sometimes hangs when
# generating the chunked HTML. In this case, export the environment
# variable ASCIIDOC_VERBOSE to "-v", ie:
# $ ASCIIDOC_VERBOSE=-v make
2022-07-10 10:23:45 +03:00
A2X_COMMON_OPTS = $(ASCIIDOC_VERBOSE) \
--attribute=icons \
--xsltproc-opts="--nonet" \
--xsltproc-opts="--stringparam nut.localdate \"`TZ=UTC date +%Y-%m-%d`\"" \
--xsltproc-opts="--stringparam nut.localtime \"`TZ=UTC date +%H:%M:%S`\"" \
--xsltproc-opts="--stringparam nut.nutversion \"@PACKAGE_VERSION@\"" \
--attribute=iconsdir="$(srcdir)/images" \
2011-01-26 11:35:08 +02:00
--attribute=badges \
--attribute=external_title \
2022-07-10 10:23:45 +03:00
--attribute=tree_version="@TREE_VERSION@" \
-a toc -a numbered --destination-dir=$${A2X_OUTDIR}
# NOTE: a2x newer than 8.6.8 says "--destination-dir" is only valid for HTML.
# As of version 8.6.9 it lies, and the argument is required for our distcheck
# (and does affect PDF builds, as found during work on collision-avoidance -
# true with at least asciidoc/a2x versions 9.0.0rc2).
# For more details see issues https://github.com/asciidoc/asciidoc/issues/44
# and https://github.com/networkupstools/nut/pull/281 (in short, attempts
# to "fix" this warning broke NUT build). If this is to be retried later, see
# https://github.com/networkupstools/nut/pull/281/commits/fe17861c4ea12679b3ebfefa8a6d692d79d99f2d
# and do not forget to fix up docs/man/Makefile.am too ;)
# NOTE: a2x tends to copy some files into its working area, preserving original
# permissions. If those files are read-only in origin (e.g. packaged stylesheet
# or our resources coming from EXTRA_DIST) the next a2x can not overwrite it.
# Also note that such hoarding of files has potential to break parallel builds
# (or cause them to produce undefined results if some bad timing happens).
# As a brutal workaround for the former problem, we chmod. For second one we
# might try magic with .SEQUENTIAL recipe hints, but that is gmake-dependent.
# Note that empirically it treats "destination-dir" as the source root for
# PDF generation (even though it claims the argument is ignored for non-HTML
# targets) so we have to provide the "images/" in this case. ONLY for PDF!
# Note we only remove the original target (if present), if it is a directory -
# e.g. created by "html-chunked" targets.
DOCBUILD_BEGIN = { \
if test -n "$${A2X_OUTDIR}" && test "$${A2X_OUTDIR}" != '.' ; then \
rm -rf "./$${A2X_OUTDIR}" || true ; \
test -d "$@" && rm -rf "$@" || true ; \
mkdir -p "./$${A2X_OUTDIR}" || exit ; \
case "$${A2X_OUTDIR}" in \
tmp/pdf.*) ln -s ../../images "./$${A2X_OUTDIR}" ;; \
esac; \
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; \
}
# When moving "*" hope a2x did not make any "hidden" files
# like ".*" that would be required for resulting documents.
# Leave the "images/" dir there, though.
# Otherwise, we 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 ; \
mv -f "./$${A2X_OUTDIR}/$(@F)" ./ || exit ; \
mv -f "./$${A2X_OUTDIR}/"*.* ./ 2>/dev/null || true ; \
rm -rf "./$${A2X_OUTDIR}" ; \
fi ; \
}
2011-01-26 11:35:08 +02:00
2016-07-18 03:11:41 +03:00
# Non-interactively spell check all documentation source files.
# This is useful for Buildbot and automated QA processing
# FIXME: how to present output (std{out,err}, single file or per target)?
2022-07-10 10:23:45 +03:00
# NOTE: ../ChangeLog is nowadays generated from commit messages, so
# its spelling (or errors in that) are not fixable and thus irrelevant.
# Similarly for the ../INSTALL file that is prepared by autoconf and not
# tracked as a source file by NUT Git repository.
2016-07-18 03:11:41 +03:00
@HAVE_ASPELL_TRUE@SPELLCHECK_SRC = $(ALL_TXT_SRC) ../README ../INSTALL.nut ../UPGRADING ../NEWS \
@HAVE_ASPELL_TRUE@ ../TODO ../scripts/ufw/README ../scripts/augeas/README ../lib/README \
2022-07-10 10:23:45 +03:00
@HAVE_ASPELL_TRUE@ ../tools/nut-scanner/README \
@HAVE_ASPELL_TRUE@ ../AUTHORS ../COPYING ../LICENSE-GPL2 ../LICENSE-GPL3
# Directory SPELLCHECK_SRC files are relative to. Overriden by other Makefiles.
@HAVE_ASPELL_TRUE@SPELLCHECK_DIR = $(srcdir)
# Note: de-facto our documentation is beyond ASCII (at least in names of
# international committers). The grep tests below look if the aspell output
# contained something other than the OK lines (tagged with asterisk) and
# aspell's version (tagged with @) and if it did - those lines must be the
# spellcheck complaints. Empty OUT is ok.
# We also must indent the input, because certain piped-in characters are
# interpreted as commands, and seems this feature can not be turned off.
# See also http://aspell.net/man-html/Through-A-Pipe.html
# TODO: Is "grep -a" or "grep -b" (treat input as ascii/bin) portable enough?
# Set SPELLCHECK_ERROR_FATAL=no if there are some unavoidable issues
# due to spellchecking, to temporarily not fail builds due to this.
# For Travis CI in particular, see ci_build.sh in NUT codebase root.
@HAVE_ASPELL_TRUE@SPELLCHECK_ERROR_FATAL = yes
@HAVE_ASPELL_TRUE@SPELLCHECK_ENV_DEBUG = no
@HAVE_ASPELL_TRUE@ASPELL_NUT_COMMON_ARGS = -p \
@HAVE_ASPELL_TRUE@ $(abs_srcdir)/$(NUT_SPELL_DICT) -d en \
@HAVE_ASPELL_TRUE@ --lang=en --ignore-accents --encoding=utf-8
@HAVE_ASPELL_TRUE@ASPELL_ENV_LANG = en.UTF-8
@HAVE_ASPELL_TRUE@ASPELL_OUT_NOTERRORS = (^[ \t]*[\*\@]|^$$)
@HAVE_ASPELL_TRUE@DISTCLEANFILES = $(NUT_SPELL_DICT).bak-pre-sorting .$(NUT_SPELL_DICT).sorted $(NUT_SPELL_DICT).sorted
2011-01-26 11:35:08 +02:00
all: all-recursive
2010-03-26 01:20:59 +02:00
.SUFFIXES:
2022-07-10 10:23:45 +03:00
.SUFFIXES: .txt .html .pdf -spellchecked .chunked
2010-03-26 01:20:59 +02:00
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu docs/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
2022-07-10 10:23:45 +03:00
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
2010-03-26 01:20:59 +02:00
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
2015-04-30 16:53:36 +03:00
docinfo.xml: $(top_builddir)/config.status $(srcdir)/docinfo.xml.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
2010-03-26 01:20:59 +02:00
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
2011-01-26 11:35:08 +02:00
# This directory's subdirectories are mostly independent; you can cd
2015-04-30 16:53:36 +03:00
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
2011-01-26 11:35:08 +02:00
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
2015-04-30 16:53:36 +03:00
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
2011-01-26 11:35:08 +02:00
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
2015-04-30 16:53:36 +03:00
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
TAGS: tags
2011-01-26 11:35:08 +02:00
2015-04-30 16:53:36 +03:00
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
2011-01-26 11:35:08 +02:00
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
2015-04-30 16:53:36 +03:00
$(am__define_uniq_tagged_files); \
2011-01-26 11:35:08 +02:00
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
2015-04-30 16:53:36 +03:00
ctags: ctags-recursive
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
2011-01-26 11:35:08 +02:00
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
2015-04-30 16:53:36 +03:00
cscopelist: cscopelist-recursive
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
2011-01-26 11:35:08 +02:00
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
2010-03-26 01:20:59 +02:00
@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
2011-01-26 11:35:08 +02:00
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
2013-11-24 17:00:12 +02:00
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
2011-01-26 11:35:08 +02:00
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
2010-03-26 01:20:59 +02:00
check-am: all-am
2022-07-10 10:23:45 +03:00
$(MAKE) $(AM_MAKEFLAGS) check-local
2011-01-26 11:35:08 +02:00
check: check-recursive
2010-03-26 01:20:59 +02:00
all-am: Makefile
2011-01-26 11:35:08 +02:00
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
2010-03-26 01:20:59 +02:00
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
2011-01-26 11:35:08 +02:00
installcheck: installcheck-recursive
2010-03-26 01:20:59 +02:00
install-strip:
2013-11-24 17:00:12 +02:00
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
2010-03-26 01:20:59 +02:00
mostlyclean-generic:
clean-generic:
2022-07-10 10:23:45 +03:00
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
2010-03-26 01:20:59 +02:00
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
2022-07-10 10:23:45 +03:00
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
2010-03-26 01:20:59 +02:00
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
2022-07-10 10:23:45 +03:00
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
2011-01-26 11:35:08 +02:00
clean: clean-recursive
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
distclean: distclean-recursive
2010-03-26 01:20:59 +02:00
-rm -f Makefile
2011-01-26 11:35:08 +02:00
distclean-am: clean-am distclean-generic distclean-tags
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
dvi: dvi-recursive
2010-03-26 01:20:59 +02:00
dvi-am:
2011-01-26 11:35:08 +02:00
html: html-recursive
2010-03-26 01:20:59 +02:00
html-am:
2011-01-26 11:35:08 +02:00
info: info-recursive
2010-03-26 01:20:59 +02:00
info-am:
install-data-am:
2011-01-26 11:35:08 +02:00
install-dvi: install-dvi-recursive
2010-03-26 01:20:59 +02:00
install-dvi-am:
install-exec-am:
2011-01-26 11:35:08 +02:00
install-html: install-html-recursive
2010-03-26 01:20:59 +02:00
install-html-am:
2011-01-26 11:35:08 +02:00
install-info: install-info-recursive
2010-03-26 01:20:59 +02:00
install-info-am:
install-man:
2011-01-26 11:35:08 +02:00
install-pdf: install-pdf-recursive
2010-03-26 01:20:59 +02:00
install-pdf-am:
2011-01-26 11:35:08 +02:00
install-ps: install-ps-recursive
2010-03-26 01:20:59 +02:00
install-ps-am:
installcheck-am:
2011-01-26 11:35:08 +02:00
maintainer-clean: maintainer-clean-recursive
2010-03-26 01:20:59 +02:00
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
2011-01-26 11:35:08 +02:00
mostlyclean: mostlyclean-recursive
2010-03-26 01:20:59 +02:00
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf-am:
2011-01-26 11:35:08 +02:00
ps: ps-recursive
2010-03-26 01:20:59 +02:00
ps-am:
uninstall-am:
2022-07-10 10:23:45 +03:00
.MAKE: $(am__recursive_targets) check-am install-am install-strip
2011-01-26 11:35:08 +02:00
2015-04-30 16:53:36 +03:00
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
2022-07-10 10:23:45 +03:00
check-am check-local clean clean-generic clean-libtool \
clean-local cscopelist-am ctags ctags-am distclean \
distclean-generic distclean-libtool distclean-tags distdir dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs installdirs-am \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
2011-01-26 11:35:08 +02:00
all: doc
2022-07-10 10:23:45 +03:00
# This list is defined by configure script choices and options:
check-local: @DOC_CHECK_LIST@
# This list is defined by configure script choices and options:
2011-01-26 11:35:08 +02:00
doc: @DOC_BUILD_LIST@
2022-07-10 10:23:45 +03:00
# This target can be called by developers to go around the configure
# script choices at their risk (e.g. missing tools are possible):
docs: pdf html-single html-chunked man-man html-man
all-docs: docs
check-docs: check-pdf check-html-single check-html-chunked check-man
2011-01-26 11:35:08 +02:00
pdf: $(ASCIIDOC_PDF)
# also build the HTML manpages with these targets
html-single: $(ASCIIDOC_HTML_SINGLE)
html-chunked: $(ASCIIDOC_HTML_CHUNKED)
2022-07-10 10:23:45 +03:00
# the "for" loops might better use $^ but it might be not portable
check-pdf: $(ASCIIDOC_PDF)
@FAILED=""; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
for F in $(ASCIIDOC_PDF) ; do \
test -s "$$F" && { file "$$F" | $(EGREP) -i 'PDF document' > /dev/null ; } || FAILED="$$FAILED $$F" ; \
done; if test -n "$$FAILED" ; then \
echo "FAILED PDF sanity check for:$$FAILED" >&2 ; file $$FAILED >&2 ; exit 1; \
fi; echo "PASSED PDF sanity check"; exit 0
check-html-single: $(ASCIIDOC_HTML_SINGLE)
@FAILED=""; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
for F in $(ASCIIDOC_HTML_SINGLE) ; do \
test -s "$$F" && { file "$$F" | $(EGREP) -i '(XML|HTML.*document)' > /dev/null ; } || FAILED="$$FAILED $$F" ; \
done; if test -n "$$FAILED" ; then \
echo "FAILED HTML-single sanity check for:$$FAILED" >&2 ; file $$FAILED >&2 ; exit 1; \
fi; echo "PASSED HTML-single sanity check"; exit 0
check-html-chunked: $(ASCIIDOC_HTML_CHUNKED)
@FAILED=""; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
for D in $(ASCIIDOC_HTML_CHUNKED); do \
for F in "$$D"/*.html ; do \
test -s "$$F" && { file "$$F" | $(EGREP) -i '(XML|HTML.*document)' > /dev/null ; } || FAILED="$$FAILED $$F" ; \
done; \
for F in "$$D"/*.css ; do \
test -s "$$F" && { $(EGREP) -i 'CSS stylesheet' "$$F" > /dev/null ; } || FAILED="$$FAILED $$F" ; \
done; \
done; if test -n "$$FAILED" ; then \
echo "FAILED HTML-chunked sanity check for:$$FAILED" >&2 ; file $$FAILED >&2 ; exit 1; \
fi; echo "PASSED HTML-chunked sanity check"; exit 0
# Note: usually the results from man-page check will be reported twice:
# once as a SUBDIRS child makefile, and once via DOC_CHECK_LIST expansion
# Note: default `make all` in the man directory caters to drivers etc.
# chosen during configure script execution. The "all-man" and "all-html"
# rules build everything documented.
check-man all-man man-man all-html html-man:
cd $(top_builddir)/docs/man/ && $(MAKE) -f Makefile $@
man:
cd $(top_builddir)/docs/man/ && $(MAKE) -f Makefile all
# Dirs to clean
2011-01-26 11:35:08 +02:00
clean-local:
2022-07-10 10:23:45 +03:00
rm -rf *.chunked *.bak tmp
2011-01-26 11:35:08 +02:00
user-manual.html user-manual.chunked user-manual.pdf: $(FULL_USER_MANUAL_DEPS)
developer-guide.html developer-guide.chunked developer-guide.pdf: $(FULL_DEVELOPER_GUIDE_DEPS)
packager-guide.html packager-guide.chunked packager-guide.pdf: packager-guide.txt asciidoc.conf
2022-07-10 10:23:45 +03:00
solaris-usb.html solaris-usb.chunked solaris-usb.pdf: solaris-usb.txt asciidoc.conf
# PORTABILITY NOTE: POSIX Make forbids the suffix rule definitions with
# prerequisites like done below, and GNU Make of some versions complains;
# https://www.gnu.org/software/make/manual/html_node/Error-Messages.html
# says the prerequisites were ignored while a suffix rule was created;
# eventually the POSIX stance would be taken to define a rule for a weird
# verbatim target file name with prerequisites:
# ../docs/Makefile:936: warning: ignoring prerequisites on suffix rule definition
# Changes from ".txt.pdf: docinfo.xml" to "*.pdf: docinfo.xml" = ".txt.pdf:"
# as done below may be pointless in the end (with regard to a portable way
# to trigger builds by a changed dependency), but at least predictable and
# not toxic.
*.html: common.xsl xhtml.xsl
.txt.html:
@A2X_OUTDIR="tmp/html-single.$(@F).$$$$" ; \
echo " DOC-HTML Generating $@"; \
$(DOCBUILD_BEGIN) ; RES=0; \
$(A2X) $(A2X_COMMON_OPTS) --attribute=xhtml11_format --format=xhtml --xsl-file=$(srcdir)/xhtml.xsl $< || RES=$$? ; \
$(DOCBUILD_END) ; exit $$RES
*.chunked: common.xsl chunked.xsl
.txt.chunked:
@A2X_OUTDIR="tmp/html-chunked.$(@F).$$$$" ; \
echo " DOC-HTML-CHUNKED Generating $@"; \
$(DOCBUILD_BEGIN) ; RES=0; \
$(A2X) $(A2X_COMMON_OPTS) --attribute=chunked_format --format=chunked --xsl-file=$(srcdir)/chunked.xsl $< || RES=$$? ; \
$(DOCBUILD_END) ; exit $$RES
# Note: non-HTML a2x modes may ignore the destination directory
*.pdf: docinfo.xml
.txt.pdf:
@A2X_OUTDIR="tmp/pdf.$(@F).$$$$" ; \
echo " DOC-PDF Generating $@"; \
$(DOCBUILD_BEGIN) ; RES=0; \
$(A2X) $(A2X_COMMON_OPTS) --attribute=pdf_format --format=pdf -a docinfo1 $< || RES=$$? ; \
$(DOCBUILD_END) ; exit $$RES
# WARNING: The percent wildcard is a GNU extension; otherwise we need
# a ".txt.txt-spellchecked" type of rule and files like "README" all
# renamed to *.txt, or lots of rules for files without the extensions
# Other Makefiles have a relatively simple life, dealing with just a
# few texts and name/extension patterns in their directories.
#?#.txt.txt-spellchecked: Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
#%-spellchecked: % Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
#*-spellchecked */*-spellchecked: $(@:-spellchecked=) $(top_srcdir)/docs/Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
# NOTE: This portable rule RELIES on just one SPELLCHECK_SRC defined
# at a time, with an outer Makefile caller ensuring the looping:
@HAVE_ASPELL_TRUE@$(SPELLCHECK_DIR)/$(SPELLCHECK_SRC_ONE)-spellchecked: $(SPELLCHECK_DIR)/$(SPELLCHECK_SRC_ONE) $(abs_top_srcdir)/docs/Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
@HAVE_ASPELL_TRUE@ @LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
@HAVE_ASPELL_TRUE@ rm -f "$@" || true ; \
@HAVE_ASPELL_TRUE@ echo " ASPELL Spell checking on $(SPELLCHECK_DIR)/$(SPELLCHECK_SRC_ONE)"; \
@HAVE_ASPELL_TRUE@ OUT="`(sed 's,^\(.*\)$$, \1,' | $(ASPELL) -a -t $(ASPELL_NUT_COMMON_ARGS) 2>&1) < "$(SPELLCHECK_DIR)/$(SPELLCHECK_SRC_ONE)"`" \
@HAVE_ASPELL_TRUE@ && { if test -n "$$OUT" ; then OUT="`echo "$$OUT" | $(EGREP) -b -v '$(ASPELL_OUT_NOTERRORS)' `" ; fi; \
@HAVE_ASPELL_TRUE@ test -z "$$OUT" ; } \
@HAVE_ASPELL_TRUE@ || { RES=$$? ; \
@HAVE_ASPELL_TRUE@ echo "FAILED : Aspell reported errors here:" >&2 \
@HAVE_ASPELL_TRUE@ && echo "----- vvv" >&2 \
@HAVE_ASPELL_TRUE@ && echo "$$OUT" >&2 \
@HAVE_ASPELL_TRUE@ && echo "----- ^^^" >&2 ; \
@HAVE_ASPELL_TRUE@ exit $$RES; } ; \
@HAVE_ASPELL_TRUE@ touch "$@"
2010-03-26 01:20:59 +02:00
2013-11-24 17:00:12 +02:00
@HAVE_ASPELL_TRUE@spellcheck:
2022-07-10 10:23:45 +03:00
@HAVE_ASPELL_TRUE@ @if test "$(SPELLCHECK_ENV_DEBUG)" != no ; then \
@HAVE_ASPELL_TRUE@ echo "ASPELL DEBUG : information about the setup follows:"; \
@HAVE_ASPELL_TRUE@ LANG=$(ASPELL_ENV_LANG); LC_ALL=$(ASPELL_ENV_LANG); export LANG; export LC_ALL; \
@HAVE_ASPELL_TRUE@ $(ASPELL) --help || true; \
@HAVE_ASPELL_TRUE@ dpkg -l |grep -i aspell || true ; \
@HAVE_ASPELL_TRUE@ echo "ASPELL automatic execution line is : ( sed 's,^\(.*\)$$, \1,' < docfile.txt | $(ASPELL) -a -t $(ASPELL_NUT_COMMON_ARGS) | $(EGREP) -b -v '$(ASPELL_OUT_NOTERRORS)' )" ; \
@HAVE_ASPELL_TRUE@ echo "ASPELL proceeding to spellchecking job..."; \
@HAVE_ASPELL_TRUE@ else true; fi
@HAVE_ASPELL_TRUE@ @FAILED="" ; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \
@HAVE_ASPELL_TRUE@ for docsrc in $(SPELLCHECK_SRC); do \
@HAVE_ASPELL_TRUE@ if test "$(SPELLCHECK_ENV_DEBUG)" != no ; then \
@HAVE_ASPELL_TRUE@ echo "ASPELL MAKEFILE DEBUG: Will see from `pwd` if '$(SPELLCHECK_DIR)/$${docsrc}-spellchecked' is up to date" >&2; \
@HAVE_ASPELL_TRUE@ else true ; fi ; \
@HAVE_ASPELL_TRUE@ $(MAKE) -s -f "$(abs_top_builddir)/docs/Makefile" SPELLCHECK_SRC_ONE="$${docsrc}" SPELLCHECK_DIR="$(SPELLCHECK_DIR)" "$(SPELLCHECK_DIR)/$${docsrc}-spellchecked" \
@HAVE_ASPELL_TRUE@ || FAILED="$$FAILED $(SPELLCHECK_DIR)/$$docsrc"; \
@HAVE_ASPELL_TRUE@ done ; \
@HAVE_ASPELL_TRUE@ if test -n "$$FAILED" ; then \
@HAVE_ASPELL_TRUE@ echo "=====================================================================" ; \
@HAVE_ASPELL_TRUE@ echo "FAILED automatic spellcheck for the following sources (relative to `pwd`): $$FAILED" ; \
@HAVE_ASPELL_TRUE@ echo "=====================================================================" ; \
@HAVE_ASPELL_TRUE@ echo "Please 'cd $(abs_top_builddir) && make spellcheck-interactive'"; \
@HAVE_ASPELL_TRUE@ echo "to either fix document sources or update the dictionary of accepted"; \
@HAVE_ASPELL_TRUE@ echo "words and spellings listed in the '$(NUT_SPELL_DICT)' file there."; \
@HAVE_ASPELL_TRUE@ echo "Either way, please follow up by posting a pull request or a patch"; \
@HAVE_ASPELL_TRUE@ echo "to integrate your fixes into the common NUT codebase."; \
@HAVE_ASPELL_TRUE@ echo "=====================================================================" ; \
@HAVE_ASPELL_TRUE@ test x"$(SPELLCHECK_ERROR_FATAL)" = xno || exit 1; \
@HAVE_ASPELL_TRUE@ echo "NOTE: SPELLCHECK_ERROR_FATAL == no so this make does not break the build!"; \
@HAVE_ASPELL_TRUE@ echo "=====================================================================" ; \
@HAVE_ASPELL_TRUE@ fi >&2 ; exit 0
# Interactively spell check all documentation source files below (so a human
# can edit the documentation errors and/or add words to custom dictionary).
# Note that here we do not restrain reported issues, so this might catch more
# than the automated test above.
@HAVE_ASPELL_TRUE@spellcheck-sortdict: $(abs_builddir)/$(NUT_SPELL_DICT).sorted
# Note that the source file may be not overwritable (distcheck, cdrom, ...),
# so we'd ignore that failure. But the practical use-case is a developer's
# in-tree workspace, so we want the working copy of the dictionary fixed up
# for easy `git diff`ing if possible.
# Note also that "$(<F)" is not POSIX portable, so we spell out the name var :(
@HAVE_ASPELL_TRUE@$(abs_builddir)/$(NUT_SPELL_DICT).sorted: $(abs_srcdir)/$(NUT_SPELL_DICT)
@HAVE_ASPELL_TRUE@ @cp -pf $(abs_srcdir)/$(NUT_SPELL_DICT) $(abs_builddir)/$(NUT_SPELL_DICT).bak-pre-sorting
@HAVE_ASPELL_TRUE@ @LANG=$(ASPELL_ENV_LANG); LC_ALL=$(ASPELL_ENV_LANG); export LANG; export LC_ALL; ( \
@HAVE_ASPELL_TRUE@ WORDLIST="`tail -n +2 < "$<" | sort | uniq`"; \
@HAVE_ASPELL_TRUE@ WORDCOUNT="`echo "$$WORDLIST" | wc -l`"; \
@HAVE_ASPELL_TRUE@ head -1 < "$<" | while read P L C E ; do echo "$$P $$L $$WORDCOUNT $$E"; break; done ; \
@HAVE_ASPELL_TRUE@ echo "$$WORDLIST"; \
@HAVE_ASPELL_TRUE@ ) > "$@"
@HAVE_ASPELL_TRUE@ @cp -f "$@" "$(abs_builddir)/$(NUT_SPELL_DICT)"
@HAVE_ASPELL_TRUE@ @if [ "$(abs_builddir)" != "$(abs_srcdir)" ] ; then \
@HAVE_ASPELL_TRUE@ cp -f "$@" "$<" || true ; \
@HAVE_ASPELL_TRUE@ cp -f "$(abs_builddir)/$(NUT_SPELL_DICT).bak-pre-sorting" "$(abs_srcdir)/" || true ; \
@HAVE_ASPELL_TRUE@ fi
2013-11-24 17:00:12 +02:00
@HAVE_ASPELL_TRUE@spellcheck-interactive:
2022-07-10 10:23:45 +03:00
@HAVE_ASPELL_TRUE@ @FAILED="" ; for docsrc in $(SPELLCHECK_SRC); do \
@HAVE_ASPELL_TRUE@ echo "Spell checking on $(SPELLCHECK_DIR)/$$docsrc"; \
@HAVE_ASPELL_TRUE@ LANG=$(ASPELL_ENV_LANG) LC_ALL=$(ASPELL_ENV_LANG) $(ASPELL) check $(ASPELL_NUT_COMMON_ARGS) $(SPELLCHECK_DIR)/$$docsrc || \
@HAVE_ASPELL_TRUE@ FAILED="$$FAILED $(SPELLCHECK_DIR)/$$docsrc"; \
@HAVE_ASPELL_TRUE@ done ; \
@HAVE_ASPELL_TRUE@ if test -n "$$FAILED" ; then \
@HAVE_ASPELL_TRUE@ echo "FAILED interactive spellcheck for the following sources (relative to `pwd`): $$FAILED" >&2 ; \
@HAVE_ASPELL_TRUE@ exit 1; \
@HAVE_ASPELL_TRUE@ fi ; exit 0
@HAVE_ASPELL_TRUE@ $(MAKE) spellcheck-sortdict
@HAVE_ASPELL_TRUE@ @echo "------------------------------------------------------------------------"; \
@HAVE_ASPELL_TRUE@ echo "Custom dictionary file $(NUT_SPELL_DICT) may have been updated now."; \
@HAVE_ASPELL_TRUE@ echo "Use 'git add -p docs/$(NUT_SPELL_DICT) && git checkout -- docs/$(NUT_SPELL_DICT) && make spellcheck-sortdict && git add -p docs/$(NUT_SPELL_DICT)'"; \
@HAVE_ASPELL_TRUE@ echo "to review changes (please DO NOT REMOVE LINES that aspell chose to drop,"; \
@HAVE_ASPELL_TRUE@ echo "because other systems might not know these words in their system dictionaries)"; \
@HAVE_ASPELL_TRUE@ echo "------------------------------------------------------------------------"
# This rule woulf probably just fail; normally with no ASPELL there are no callers for it
@HAVE_ASPELL_FALSE@*/*-spellchecked *-spellchecked: Makefile.am $(abs_srcdir)/$(NUT_SPELL_DICT)
@HAVE_ASPELL_FALSE@ @echo " SKIP-ASPELL $@ : Documentation spell check not available since 'aspell' was not found." >&2
2013-11-24 17:00:12 +02:00
@HAVE_ASPELL_FALSE@spellcheck:
@HAVE_ASPELL_FALSE@ @echo "Documentation spell check not available since 'aspell' was not found."
@HAVE_ASPELL_FALSE@spellcheck-interactive:
@HAVE_ASPELL_FALSE@ @echo "Documentation spell check not available since 'aspell' was not found."
2022-07-10 10:23:45 +03:00
.PHONY: html html-chunked html-single pdf man
2010-03-26 01:20:59 +02:00
# 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: