1 ###############################################################################
3 # collecty - The IPFire statictics collection daemon #
4 # Copyright (C) 2015 collecty development team #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
25 # remove target it the command fails
28 # keep itermediate files
33 pythondir = $(pyexecdir)
35 # Dirs of external packages
36 dbuspolicydir=@dbuspolicydir@
37 dbussystemservicedir=@dbussystemservicedir@
45 @INTLTOOL_POLICY_RULE@
49 $(MAKE) -C po update-po
51 DISTCHECK_CONFIGURE_FLAGS = \
52 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
53 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
54 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
56 # ------------------------------------------------------------------------------
58 AM_V_XSLT = $(AM_V_XSLT_$(V))
59 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
60 AM_V_XSLT_0 = @echo " XSLT " $@;
62 # ------------------------------------------------------------------------------
67 # ------------------------------------------------------------------------------
74 src/collecty/__init__.py \
75 src/collecty/__version__.py \
77 src/collecty/client.py \
78 src/collecty/constants.py \
79 src/collecty/daemon.py \
80 src/collecty/errors.py \
81 src/collecty/i18n.py \
82 src/collecty/logger.py
84 collectydir = $(pythondir)/collecty
86 collectyplugins_PYTHON = \
87 src/collecty/plugins/base.py \
88 src/collecty/plugins/conntrack.py \
89 src/collecty/plugins/cpu.py \
90 src/collecty/plugins/cpufreq.py \
91 src/collecty/plugins/disk.py \
92 src/collecty/plugins/entropy.py \
93 src/collecty/plugins/__init__.py \
94 src/collecty/plugins/interface.py \
95 src/collecty/plugins/latency.py \
96 src/collecty/plugins/loadavg.py \
97 src/collecty/plugins/memory.py \
98 src/collecty/plugins/sensors.py
100 collectypluginsdir = $(collectydir)/plugins
102 pkgpyexec_LTLIBRARIES = \
105 _collecty_la_SOURCES = \
106 src/_collectymodule.c
108 _collecty_la_CFLAGS = \
110 $(LIBATASMART_CFLAGS) \
114 _collecty_la_LDFLAGS = \
120 _collecty_la_LIBADD = \
121 $(LIBATASMART_LIBS) \
126 dist_dbuspolicy_DATA = \
127 src/dbus/org.ipfire.collecty1.conf
129 dist_dbussystemservice_DATA = \
130 src/dbus/org.ipfire.collecty1.service
132 systemdsystemunit_DATA = \
133 src/systemd/collecty.service
135 dist_systemdsystemunit_DATA = \
136 src/systemd/org.ipfire.collecty1.busname
139 src/systemd/collecty.service.in
142 src/systemd/collecty.service
144 # ------------------------------------------------------------------------------
150 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
151 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
153 man: $(MANPAGES) $(MANPAGES_HTML)
171 --stringparam man.output.quietly 1 \
172 --stringparam funcsynopsis.style ansi \
173 --stringparam man.th.extra1.suppress 1 \
174 --stringparam man.authors.section.enabled 1 \
175 --stringparam man.copyright.section.enabled 1
177 XSLTPROC_COMMAND_MAN = \
178 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
179 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
181 XSLTPROC_COMMAND_HTML = \
182 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
185 $(XSLTPROC_COMMAND_MAN)
188 $(XSLTPROC_COMMAND_MAN)
190 man/%.html: man/%.xml man/custom-html.xsl
191 $(XSLTPROC_COMMAND_HTML)
195 # ------------------------------------------------------------------------------
198 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
199 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
200 '|configsdir=$(configsdir)|' \
204 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
205 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
208 src/systemd/%: src/systemd/%.in Makefile