2010-03-26 01:20:59 +02:00
|
|
|
# top-level Makefile for NUT
|
|
|
|
|
|
|
|
# include directory for aclocal
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
|
|
|
# subdirectories to build and distribute. The order matters, as
|
2012-01-24 12:22:33 +02:00
|
|
|
# several subdirectories depend on stuff in "common" or tools being built first
|
|
|
|
SUBDIRS = include common clients conf data tools docs drivers \
|
2012-08-13 00:39:31 +03:00
|
|
|
lib scripts server tests
|
2010-03-26 01:20:59 +02:00
|
|
|
|
2011-06-01 23:31:49 +03:00
|
|
|
# COPYING is included automatically.
|
|
|
|
EXTRA_DIST = LICENSE-GPL2 LICENSE-GPL3 MAINTAINERS UPGRADING
|
2010-03-26 01:20:59 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# flags to pass to ./configure when calling "make distcheck" and "make
|
|
|
|
# distcheck-light". Try to check as many features as possible! Also
|
|
|
|
# need to give hotplug-dir and udev-dir, so that staged install does
|
|
|
|
# not fail.
|
|
|
|
|
2011-01-26 11:35:08 +02:00
|
|
|
DISTCHECK_FLAGS = --with-all --with-ssl --with-doc=auto
|
|
|
|
DISTCHECK_LIGHT_FLAGS = --with-all=auto --with-ssl=auto --with-doc=auto
|
2010-03-26 01:20:59 +02:00
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = ${DISTCHECK_FLAGS} \
|
|
|
|
--with-hotplug-dir='$${prefix}/etc/hotplug' \
|
|
|
|
--with-udev-dir='$${prefix}/etc/udev'
|
|
|
|
|
|
|
|
distcheck-light:
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) DISTCHECK_FLAGS="$(DISTCHECK_LIGHT_FLAGS)" distcheck
|
|
|
|
|
|
|
|
# workaround the dist generated files that are also part of the distribution
|
2011-01-26 11:35:08 +02:00
|
|
|
# Note that distcleancheck is disabled for now, while waiting for a proper
|
|
|
|
# solution, that do not break older unix systems
|
|
|
|
#distcleancheck_listfiles = \
|
|
|
|
# find . -type f -exec sh -c 'test -f $(srcdir)/{} || echo {}' ';'
|
|
|
|
distcleancheck:
|
|
|
|
@:
|
|
|
|
|
|
|
|
# Automatically generate the ChangeLog from SVN logs:
|
|
|
|
MAINTAINERCLEAN_FILES = ChangeLog
|
2012-01-24 12:22:33 +02:00
|
|
|
# Force ChangeLog regeneration upon make dist (due to inexistant 'dummy-stamp'),
|
|
|
|
# in case it has already been generated previously
|
|
|
|
dummy-stamp:
|
|
|
|
ChangeLog: tools/svn2cl.authors dummy-stamp
|
2012-06-01 16:55:19 +03:00
|
|
|
svn2cl --group-by-day --include-rev --authors=$< --reparagraph --revision 'HEAD:2332' --output=$@ || \
|
2011-01-26 11:35:08 +02:00
|
|
|
echo "svn2cl failed to generate the ChangeLog. See http://trac.networkupstools.org/projects/nut/timeline" > $@
|
|
|
|
|
|
|
|
if HAVE_ASCIIDOC
|
|
|
|
website:
|
|
|
|
cd docs; $(MAKE) $(AM_MAKEFLAGS) website
|
|
|
|
cd docs/man; $(MAKE) $(AM_MAKEFLAGS) html-man
|
|
|
|
cd tools; $(MAKE) $(AM_MAKEFLAGS) website
|
|
|
|
cd docs/website; $(MAKE) $(AM_MAKEFLAGS) website
|
|
|
|
else !HAVE_ASCIIDOC
|
|
|
|
website:
|
|
|
|
@echo "Not building website since 'asciidoc' was not found."
|
|
|
|
endif !HAVE_ASCIIDOC
|
2010-03-26 01:20:59 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# targets from old build system (pre-automake).
|
|
|
|
# supported for a period of time for backward "compatibility".
|
|
|
|
|
|
|
|
WARN="----------------------------------------------------------------------"
|
|
|
|
|
|
|
|
build:
|
|
|
|
@echo $(WARN)
|
|
|
|
@echo "Warning: 'make build' is deprecated. Use 'make all' instead."
|
|
|
|
@echo $(WARN)
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) all
|
|
|
|
install-bin:
|
|
|
|
@echo $(WARN)
|
|
|
|
@echo "Warning: 'make install-bin' is deprecated."
|
|
|
|
@echo "Use 'make install-exec' instead for a similar effect."
|
|
|
|
@echo $(WARN)
|
|
|
|
cd common; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
cd drivers; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
cd server; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
cd clients; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
install-man: install-data-recursive
|
|
|
|
@echo $(WARN)
|
|
|
|
@echo "Warning: 'make install-man' is deprecated."
|
|
|
|
@echo "Use 'cd man; make install' instead."
|
|
|
|
@echo $(WARN)
|
|
|
|
cd man; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
install-conf:
|
|
|
|
@echo $(WARN)
|
|
|
|
@echo "Warning: 'make install-conf' is deprecated."
|
|
|
|
@echo "Use 'cd conf; make install' instead."
|
|
|
|
@echo $(WARN)
|
|
|
|
cd conf; $(MAKE) $(AM_MAKEFLAGS) install
|
|
|
|
# The target install-data already has a standardized meaning under automake
|
|
|
|
install-dirs:
|
|
|
|
@echo $(WARN)
|
|
|
|
@echo "Warning: 'make install-dirs' is deprecated."
|
|
|
|
@echo "Use 'make installdirs' instead."
|
|
|
|
@echo $(WARN)
|
|
|
|
make installdirs
|
|
|
|
cgi build-cgi install-cgi install-cgi-dir install-cgi-bin \
|
|
|
|
install-cgi-man install-cgi-conf install-cgi-html:
|
|
|
|
@echo "Error: 'make $@' no longer exists."
|
|
|
|
@echo "Use './configure --with-cgi' instead."
|
|
|
|
install-lib:
|
|
|
|
@echo "Error: 'make $@' no longer exists."
|
|
|
|
@echo "Use './configure --with-lib' instead."
|
|
|
|
usb build-usb install-usb:
|
|
|
|
@echo "Error: 'make $@' no longer exists."
|
|
|
|
@echo "Use './configure --with-usb' instead."
|
|
|
|
snmp build-snmp install-snmp install-snmp-mgr install-snmp-man:
|
|
|
|
@echo "Error: 'make $@' no longer exists."
|
|
|
|
@echo "Use './configure --with-snmp' instead."
|
|
|
|
setver:
|
|
|
|
@echo "Error: 'make setver' no longer exists."
|
|
|
|
@echo "Edit configure.in to set version number."
|