496 lines
14 KiB
Makefile
496 lines
14 KiB
Makefile
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
|
# @configure_input@
|
|
|
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
|
|
|
|
@SET_MAKE@
|
|
VPATH = @srcdir@
|
|
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 = include
|
|
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
|
$(srcdir)/config.h.in
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
|
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.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_libavahi.m4 \
|
|
$(top_srcdir)/m4/nut_check_libfreeipmi.m4 \
|
|
$(top_srcdir)/m4/nut_check_libgd.m4 \
|
|
$(top_srcdir)/m4/nut_check_libhal.m4 \
|
|
$(top_srcdir)/m4/nut_check_libltdl.m4 \
|
|
$(top_srcdir)/m4/nut_check_libneon.m4 \
|
|
$(top_srcdir)/m4/nut_check_libnetsnmp.m4 \
|
|
$(top_srcdir)/m4/nut_check_libpowerman.m4 \
|
|
$(top_srcdir)/m4/nut_check_libssl.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_config_libhal.m4 \
|
|
$(top_srcdir)/m4/nut_report_feature.m4 \
|
|
$(top_srcdir)/m4/nut_type_socklen_t.m4 \
|
|
$(top_srcdir)/configure.in
|
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
|
$(ACLOCAL_M4)
|
|
mkinstalldirs = $(install_sh) -d
|
|
CONFIG_HEADER = config.h
|
|
CONFIG_CLEAN_FILES =
|
|
CONFIG_CLEAN_VPATH_FILES =
|
|
SOURCES =
|
|
DIST_SOURCES =
|
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|
A2X = @A2X@
|
|
ACLOCAL = @ACLOCAL@
|
|
AMTAR = @AMTAR@
|
|
AR = @AR@
|
|
ASCIIDOC = @ASCIIDOC@
|
|
AUTOCONF = @AUTOCONF@
|
|
AUTOHEADER = @AUTOHEADER@
|
|
AUTOMAKE = @AUTOMAKE@
|
|
AWK = @AWK@
|
|
BINDIR = @BINDIR@
|
|
CC = @CC@
|
|
CCDEPMODE = @CCDEPMODE@
|
|
CFLAGS = @CFLAGS@
|
|
CONFPATH = @CONFPATH@
|
|
CPP = @CPP@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DBLATEX = @DBLATEX@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
DLLTOOL = @DLLTOOL@
|
|
DOC_BUILD_LIST = @DOC_BUILD_LIST@
|
|
DRIVER_BUILD_LIST = @DRIVER_BUILD_LIST@
|
|
DRIVER_INSTALL_TARGET = @DRIVER_INSTALL_TARGET@
|
|
DRIVER_MAN_LIST = @DRIVER_MAN_LIST@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
ECHO_N = @ECHO_N@
|
|
ECHO_T = @ECHO_T@
|
|
EGREP = @EGREP@
|
|
EXEEXT = @EXEEXT@
|
|
FGREP = @FGREP@
|
|
GREP = @GREP@
|
|
HAL_CALLOUTS_PATH = @HAL_CALLOUTS_PATH@
|
|
HAL_DEVICE_MATCH_KEY = @HAL_DEVICE_MATCH_KEY@
|
|
HAL_FDI_PATH = @HAL_FDI_PATH@
|
|
HAL_USER = @HAL_USER@
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
|
LD = @LD@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBAVAHI_CFLAGS = @LIBAVAHI_CFLAGS@
|
|
LIBAVAHI_LIBS = @LIBAVAHI_LIBS@
|
|
LIBGD_CFLAGS = @LIBGD_CFLAGS@
|
|
LIBGD_LDFLAGS = @LIBGD_LDFLAGS@
|
|
LIBHAL_CFLAGS = @LIBHAL_CFLAGS@
|
|
LIBHAL_LIBS = @LIBHAL_LIBS@
|
|
LIBIPMI_CFLAGS = @LIBIPMI_CFLAGS@
|
|
LIBIPMI_LIBS = @LIBIPMI_LIBS@
|
|
LIBLTDL_CFLAGS = @LIBLTDL_CFLAGS@
|
|
LIBLTDL_LIBS = @LIBLTDL_LIBS@
|
|
LIBNEON_CFLAGS = @LIBNEON_CFLAGS@
|
|
LIBNEON_LIBS = @LIBNEON_LIBS@
|
|
LIBNETSNMP_CFLAGS = @LIBNETSNMP_CFLAGS@
|
|
LIBNETSNMP_LIBS = @LIBNETSNMP_LIBS@
|
|
LIBOBJS = @LIBOBJS@
|
|
LIBPOWERMAN_CFLAGS = @LIBPOWERMAN_CFLAGS@
|
|
LIBPOWERMAN_LIBS = @LIBPOWERMAN_LIBS@
|
|
LIBS = @LIBS@
|
|
LIBSSL_CFLAGS = @LIBSSL_CFLAGS@
|
|
LIBSSL_LIBS = @LIBSSL_LIBS@
|
|
LIBTOOL = @LIBTOOL@
|
|
LIBUSB_CFLAGS = @LIBUSB_CFLAGS@
|
|
LIBUSB_LIBS = @LIBUSB_LIBS@
|
|
LIBWRAP_CFLAGS = @LIBWRAP_CFLAGS@
|
|
LIBWRAP_LIBS = @LIBWRAP_LIBS@
|
|
LIPO = @LIPO@
|
|
LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NETLIBS = @NETLIBS@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
NUT_NETVERSION = @NUT_NETVERSION@
|
|
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@
|
|
PIDPATH = @PIDPATH@
|
|
PKG_CONFIG = @PKG_CONFIG@
|
|
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
|
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
|
PORT = @PORT@
|
|
RANLIB = @RANLIB@
|
|
RUN_AS_GROUP = @RUN_AS_GROUP@
|
|
RUN_AS_USER = @RUN_AS_USER@
|
|
SBINDIR = @SBINDIR@
|
|
SED = @SED@
|
|
SERLIBS = @SERLIBS@
|
|
SET_MAKE = @SET_MAKE@
|
|
SHELL = @SHELL@
|
|
STATEPATH = @STATEPATH@
|
|
STRIP = @STRIP@
|
|
SUN_LIBUSB = @SUN_LIBUSB@
|
|
TREE_VERSION = @TREE_VERSION@
|
|
VERSION = @VERSION@
|
|
WORDS_BIGENDIAN = @WORDS_BIGENDIAN@
|
|
abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
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@
|
|
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@
|
|
docdir = @docdir@
|
|
driverexecdir = @driverexecdir@
|
|
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@
|
|
oldincludedir = @oldincludedir@
|
|
pdfdir = @pdfdir@
|
|
pkgconfigdir = @pkgconfigdir@
|
|
prefix = @prefix@
|
|
program_transform_name = @program_transform_name@
|
|
psdir = @psdir@
|
|
sbindir = @sbindir@
|
|
sharedstatedir = @sharedstatedir@
|
|
srcdir = @srcdir@
|
|
sysconfdir = @sysconfdir@
|
|
systemdsystemshutdowndir = @systemdsystemshutdowndir@
|
|
systemdsystemunitdir = @systemdsystemunitdir@
|
|
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@
|
|
EXTRA_DIST = attribute.h common.h extstate.h parseconf.h proto.h \
|
|
state.h timehead.h upsconf.h nut_stdint.h
|
|
|
|
|
|
# http://www.gnu.org/software/automake/manual/automake.html#Clean
|
|
BUILT_SOURCES = nut_version.h
|
|
CLEANFILES = nut_version.h
|
|
all: $(BUILT_SOURCES) config.h
|
|
$(MAKE) $(AM_MAKEFLAGS) all-am
|
|
|
|
.SUFFIXES:
|
|
$(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 include/Makefile'; \
|
|
$(am__cd) $(top_srcdir) && \
|
|
$(AUTOMAKE) --gnu include/Makefile
|
|
.PRECIOUS: 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__depfiles_maybe)'; \
|
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
|
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):
|
|
|
|
config.h: stamp-h1
|
|
@if test ! -f $@; then \
|
|
rm -f stamp-h1; \
|
|
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
|
|
else :; fi
|
|
|
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
|
@rm -f stamp-h1
|
|
cd $(top_builddir) && $(SHELL) ./config.status include/config.h
|
|
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
|
rm -f stamp-h1
|
|
touch $@
|
|
|
|
distclean-hdr:
|
|
-rm -f config.h stamp-h1
|
|
|
|
mostlyclean-libtool:
|
|
-rm -f *.lo
|
|
|
|
clean-libtool:
|
|
-rm -rf .libs _libs
|
|
tags: TAGS
|
|
TAGS:
|
|
|
|
ctags: CTAGS
|
|
CTAGS:
|
|
|
|
|
|
distdir: $(DISTFILES)
|
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|
list='$(DISTFILES)'; \
|
|
dist_files=`for file in $$list; do echo $$file; done | \
|
|
sed -e "s|^$$srcdirstrip/||;t" \
|
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
|
case $$dist_files in \
|
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
|
sort -u` ;; \
|
|
esac; \
|
|
for file in $$dist_files; do \
|
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
|
if test -d $$d/$$file; then \
|
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
|
if test -d "$(distdir)/$$file"; then \
|
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|
fi; \
|
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|
fi; \
|
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
|
else \
|
|
test -f "$(distdir)/$$file" \
|
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
|
|| exit 1; \
|
|
fi; \
|
|
done
|
|
$(MAKE) $(AM_MAKEFLAGS) \
|
|
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
|
dist-hook
|
|
check-am: all-am
|
|
check: $(BUILT_SOURCES)
|
|
$(MAKE) $(AM_MAKEFLAGS) check-am
|
|
all-am: Makefile config.h
|
|
installdirs:
|
|
install: $(BUILT_SOURCES)
|
|
$(MAKE) $(AM_MAKEFLAGS) install-am
|
|
install-exec: install-exec-am
|
|
install-data: install-data-am
|
|
uninstall: uninstall-am
|
|
|
|
install-am: all-am
|
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
|
|
|
installcheck: installcheck-am
|
|
install-strip:
|
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|
`test -z '$(STRIP)' || \
|
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
|
mostlyclean-generic:
|
|
|
|
clean-generic:
|
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|
|
|
distclean-generic:
|
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
|
|
|
maintainer-clean-generic:
|
|
@echo "This command is intended for maintainers to use"
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
|
clean: clean-am
|
|
|
|
clean-am: clean-generic clean-libtool mostlyclean-am
|
|
|
|
distclean: distclean-am
|
|
-rm -f Makefile
|
|
distclean-am: clean-am distclean-generic distclean-hdr
|
|
|
|
dvi: dvi-am
|
|
|
|
dvi-am:
|
|
|
|
html: html-am
|
|
|
|
html-am:
|
|
|
|
info: info-am
|
|
|
|
info-am:
|
|
|
|
install-data-am:
|
|
|
|
install-dvi: install-dvi-am
|
|
|
|
install-dvi-am:
|
|
|
|
install-exec-am:
|
|
|
|
install-html: install-html-am
|
|
|
|
install-html-am:
|
|
|
|
install-info: install-info-am
|
|
|
|
install-info-am:
|
|
|
|
install-man:
|
|
|
|
install-pdf: install-pdf-am
|
|
|
|
install-pdf-am:
|
|
|
|
install-ps: install-ps-am
|
|
|
|
install-ps-am:
|
|
|
|
installcheck-am:
|
|
|
|
maintainer-clean: maintainer-clean-am
|
|
-rm -f Makefile
|
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
|
|
|
mostlyclean: mostlyclean-am
|
|
|
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
|
|
|
pdf: pdf-am
|
|
|
|
pdf-am:
|
|
|
|
ps: ps-am
|
|
|
|
ps-am:
|
|
|
|
uninstall-am:
|
|
|
|
.MAKE: all check install install-am install-strip
|
|
|
|
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
|
dist-hook distclean distclean-generic distclean-hdr \
|
|
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-info install-info-am install-man \
|
|
install-pdf install-pdf-am install-ps install-ps-am \
|
|
install-strip installcheck installcheck-am installdirs \
|
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
|
uninstall uninstall-am
|
|
|
|
|
|
# magic to include SVN revision number in NUT version string
|
|
|
|
nut_version.h: FORCE
|
|
@GITREV=`git describe --tags 2>/dev/null | sed 's/^v\([0-9]\)/\1/' `; \
|
|
if [ -z "$$GITREV" ]; \
|
|
then SVNREV=`LANG=C svnversion -n $(top_srcdir) 2>/dev/null`; \
|
|
if [ -z "$$SVNREV" -o "$$SVNREV" = "exported" ]; \
|
|
then NUT_VERSION="$(PACKAGE_VERSION)"; \
|
|
else NUT_VERSION="$(PACKAGE_VERSION)-$$SVNREV"; \
|
|
fi ; \
|
|
else NUT_VERSION="$$GITREV"; \
|
|
fi ; \
|
|
echo '/* Autogenerated file. Do not change. */' > _nut_version.h ; \
|
|
echo '/* This file was generated by "make". */' >> _nut_version.h ; \
|
|
echo "#define NUT_VERSION_MACRO \"$$NUT_VERSION\"" >> _nut_version.h ; \
|
|
echo "NUT_VERSION: \"$$NUT_VERSION\""
|
|
-test -f nut_version.h || cp _nut_version.h nut_version.h
|
|
-cmp -s _nut_version.h nut_version.h || cp _nut_version.h nut_version.h
|
|
-rm -f _nut_version.h
|
|
|
|
FORCE:
|
|
|
|
# counter part of BUILT_SOURCES: since nut_version is not a direct
|
|
# deps of a local target, we must clean it by ourself before the
|
|
# distribution
|
|
dist-hook:
|
|
rm -f $(distdir)/nut_version.h
|
|
|
|
# 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:
|