Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ static char * get_libname_in_dir(const char* base_libname, size_t base_libname_l
*/
DIR *dp;
struct dirent *dirp;
char *libname_path = NULL;
char *libname_path = NULL, *libname_alias = NULL;
char current_test_path[LARGEBUF];

memset(current_test_path, 0, LARGEBUF);
Expand Down Expand Up @@ -2278,9 +2278,15 @@ static char * get_libname_in_dir(const char* base_libname, size_t base_libname_l

upsdebugx(5,"Comparing lib %s with dirpath entry %s", base_libname, dirp->d_name);
compres = strncmp(dirp->d_name, base_libname, base_libname_length);
if (compres == 0
&& dirp->d_name[base_libname_length] == '\0' /* avoid "*.dll.a" etc. */
) {
if (compres == 0) {
/* avoid "*.dll.a", ".so.1.2.3" etc. */
if (dirp->d_name[base_libname_length] != '\0') {
if (!libname_alias) {
libname_alias = xstrdup(dirp->d_name);
}
continue;
}

snprintf(current_test_path, LARGEBUF, "%s/%s", dirname, dirp->d_name);
#if HAVE_DECL_REALPATH
libname_path = realpath(current_test_path, NULL);
Expand Down Expand Up @@ -2332,6 +2338,17 @@ static char * get_libname_in_dir(const char* base_libname, size_t base_libname_l

closedir(dp);

if (libname_alias) {
if (!libname_path) {
upsdebugx(1, "Got no strong candidate path for lib %s in %s"
", but saw seemingly related names (are you missing"
" a symbolic link, perhaps?) e.g.: %s",
base_libname, dirname, libname_alias);
}

free(libname_alias);
}

return libname_path;
}

Expand Down
2 changes: 1 addition & 1 deletion conf/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SPELLCHECK_SRC = $(dist_sysconf_DATA) \
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXTRA_DIST = evolution500.seq epdu-managed.dev
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion data/html/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
31 changes: 28 additions & 3 deletions docs/config-prereqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,27 @@ Some of the below are alternatives, e.g. compiler toolkits (gcc vs. clang)
or SSL implementations (OpenSSL vs Mozilla NSS) -- no problem installing
both, at a disk space cost.

NOTE: Some NUT branches may need additional or different software versions
[NOTE]
======
Some NUT branches may need additional or different software versions
that are not yet included into `master` branch dependencies, e.g. the DMF
(Dynamic Mapping Files) sub-project needs LUA 5.1.
(Dynamic Mapping Files) sub-project needs LUA 5.1 for build and run-time,
and some Python modules for build, e.g. using OS packaging or custom call
to `pip install pycparser`.

In case your system still provides a Python 2.x environment (and for some
reason you want to use it instead of Python 3.x), but does not anymore
provide a `pip` nor `pycparser` packages for it, you may need to use an
external bootstrap first, e.g.:

------
# Fetch get-pip.py for python 2.7
:; curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
:; python2 get-pip.py
:; python2 -m pip --version
:; python2 -m pip install pycparser
------
======

More packages and/or system setup may be needed to actually run NUT with
all features enabled; chapters below concern just with building it.
Expand Down Expand Up @@ -825,10 +843,17 @@ default site.
openssl nss \
augeas \
libusb1 \
neon \
net-snmp \
avahi

# For netxml-ups driver the library should suffice; however for nut-scanner
# you may currently require to add a `libneon.so` symlink (the package seems
# to only deliver a numbered SO library name), e.g.:
:; pkg_add neon && \
if ! test -s /usr/local/lib/libneon.so ; then
ln -s "`cd /usr/local/lib && ls -1 libneon.so.* | sort -n | tail -1`" /usr/local/lib/libneon.so
fi

# Select a LUA-5.1 (or possibly 5.2?) version
:; pkg_add \
lua
Expand Down
2 changes: 1 addition & 1 deletion docs/man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ endif !HAVE_ASCIIDOC
# 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):
# 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)" $@

Expand Down
9 changes: 8 additions & 1 deletion drivers/hidparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ extern "C" {
/* *INDENT-ON* */
#endif /* __cplusplus */

#include "config.h"
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include "hidtypes.h"

/* Include "usb-common.h" or "libshut.h" as appropriate, to define the
Expand Down
8 changes: 7 additions & 1 deletion drivers/libhid.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
#ifndef NUT_LIBHID_H_SEEN
#define NUT_LIBHID_H_SEEN

#include "config.h"
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include <sys/types.h>
#include "nut_stdint.h"
Expand Down
9 changes: 8 additions & 1 deletion drivers/nutdrv_qx.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@
#ifndef NUTDRV_QX_H
#define NUTDRV_QX_H

/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "config.h"

/* For testing purposes */
/*#define TESTING*/
Expand Down
8 changes: 7 additions & 1 deletion drivers/serial.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#ifndef SERIAL_H_SEEN
#define SERIAL_H_SEEN 1

#include "config.h" /* should be first */
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include "attribute.h"

Expand Down
8 changes: 8 additions & 0 deletions drivers/snmp-ups.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
#ifndef SNMP_UPS_H
#define SNMP_UPS_H

/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include "nut_stdint.h" /* uint32_t */

/* FIXME: still needed?
Expand Down
8 changes: 7 additions & 1 deletion drivers/usb-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@
#ifndef NUT_USB_COMMON_H
#define NUT_USB_COMMON_H

#include "config.h" /* be sure to know all about the system config */
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

/* Note: usb-common.h (this file) is included by nut_libusb.h,
* so not looping the includes ;)
Expand Down
10 changes: 9 additions & 1 deletion drivers/usbhid-ups.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@
#ifndef USBHID_UPS_H
#define USBHID_UPS_H

/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "config.h"

#include "libhid.h"

extern hid_dev_handle_t udev;
Expand Down
8 changes: 7 additions & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
#ifndef NUT_COMMON_H_SEEN
#define NUT_COMMON_H_SEEN 1

#include "config.h" /* must be the first header */
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#ifdef WIN32
# ifndef __POSIX_VISIBLE
Expand Down
8 changes: 7 additions & 1 deletion include/nut_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
#ifndef NUT_FLOAT_H_SEEN
#define NUT_FLOAT_H_SEEN 1

#include "config.h"
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#if defined HAVE_FLOAT_H
# include <float.h>
Expand Down
8 changes: 7 additions & 1 deletion include/nut_stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
#ifndef NUT_STDINT_H_SEEN
#define NUT_STDINT_H_SEEN 1

#include "config.h"
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
Expand Down
8 changes: 7 additions & 1 deletion include/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
#ifndef NUT_PROTO_H_SEEN
#define NUT_PROTO_H_SEEN 1

#include "config.h"
/* "config.h" is generated by autotools and lacks a header guard, so
* we use an unambiguously named macro we know we must have, as one.
* It must be the first header: be sure to know all about system config.
*/
#ifndef NUT_NETVERSION
# include "config.h"
#endif

#include "attribute.h"

Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SPELLCHECK_SRC = README.adoc RedHat/README.adoc usb_resetter/README.adoc
# 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):
# 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 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/Solaris/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/Windows/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ SPELLCHECK_SRC = README.adoc DriverInstaller/README.adoc Installer/README.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/devd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/hotplug/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SPELLCHECK_SRC = README.adoc common/README_ipp-os-shutdown.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ SPELLCHECK_SRC = \
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/systemd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/udev/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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_MAKEFILE) 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)" $@

Expand Down
2 changes: 1 addition & 1 deletion scripts/upsdrvsvcctl/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SPELLCHECK_SRC = README.adoc
# 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):
# 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)" $@

Expand Down
Loading