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)
41 @INTLTOOL_POLICY_RULE@
45 $(MAKE) -C po update-po
47 DISTCHECK_CONFIGURE_FLAGS = \
48 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
50 # ------------------------------------------------------------------------------
52 AM_V_XSLT = $(AM_V_XSLT_$(V))
53 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
54 AM_V_XSLT_0 = @echo " XSLT " $@;
56 # ------------------------------------------------------------------------------
61 # ------------------------------------------------------------------------------
68 src/collecty/__init__.py \
69 src/collecty/client.py \
70 src/collecty/constants.py \
71 src/collecty/daemon.py \
72 src/collecty/errors.py \
73 src/collecty/i18n.py \
74 src/collecty/logger.py \
77 collectydir = $(pythondir)/collecty
79 collectyplugins_PYTHON = \
80 src/collecty/plugins/base.py \
81 src/collecty/plugins/conntrack.py \
82 src/collecty/plugins/cpu.py \
83 src/collecty/plugins/entropy.py \
84 src/collecty/plugins/__init__.py \
85 src/collecty/plugins/interface.py \
86 src/collecty/plugins/latency.py \
87 src/collecty/plugins/loadavg.py \
88 src/collecty/plugins/memory.py
90 collectypluginsdir = $(collectydir)/plugins
92 # ------------------------------------------------------------------------------
98 MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
99 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
101 man: $(MANPAGES) $(MANPAGES_HTML)
119 --stringparam man.output.quietly 1 \
120 --stringparam funcsynopsis.style ansi \
121 --stringparam man.th.extra1.suppress 1 \
122 --stringparam man.authors.section.enabled 1 \
123 --stringparam man.copyright.section.enabled 1
125 XSLTPROC_COMMAND_MAN = \
126 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
127 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
129 XSLTPROC_COMMAND_HTML = \
130 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
133 $(XSLTPROC_COMMAND_MAN)
136 $(XSLTPROC_COMMAND_MAN)
138 man/%.html: man/%.xml man/custom-html.xsl
139 $(XSLTPROC_COMMAND_HTML)
143 # ------------------------------------------------------------------------------
146 systemdsystemunit_DATA = \
147 src/systemd/collecty.service
150 $(systemdsystemunit_DATA)
153 $(systemdsystemunitdir)
157 src/systemd/collecty.service.in
159 # ------------------------------------------------------------------------------
162 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
163 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
164 '|configsdir=$(configsdir)|' \
168 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
169 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
172 src/systemd/%: src/systemd/%.in Makefile