]> git.ipfire.org Git - collecty.git/blame - Makefile.am
Remove TODO list
[collecty.git] / Makefile.am
CommitLineData
2fc9f9a2
MT
1###############################################################################
2# #
3# collecty - The IPFire statictics collection daemon #
4# Copyright (C) 2015 collecty development team #
5# #
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. #
10# #
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. #
15# #
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/>. #
18# #
19###############################################################################
20
21ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22AM_MAKEFLAGS = --no-print-directory
23AUTOMAKE_OPTIONS = color-tests
24
25# remove target it the command fails
26.DELETE_ON_ERROR:
27
28# keep itermediate files
29.SECONDARY:
30
31SUBDIRS = . po
32
33pythondir = $(pyexecdir)
34
c968f6d9
MT
35# Dirs of external packages
36dbuspolicydir=@dbuspolicydir@
37dbussystemservicedir=@dbussystemservicedir@
38
2fc9f9a2
MT
39CLEANFILES =
40DISTCLEANFILES =
41EXTRA_DIST =
42INSTALL_DIRS =
43noinst_DATA =
44
45@INTLTOOL_POLICY_RULE@
46
47.PHONY: update-po
48update-po:
49 $(MAKE) -C po update-po
50
51DISTCHECK_CONFIGURE_FLAGS = \
c968f6d9
MT
52 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
53 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2fc9f9a2
MT
54 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
55
56# ------------------------------------------------------------------------------
57
58AM_V_XSLT = $(AM_V_XSLT_$(V))
59AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
60AM_V_XSLT_0 = @echo " XSLT " $@;
61
62# ------------------------------------------------------------------------------
63
64dist_doc_DATA = \
65 COPYING
66
67# ------------------------------------------------------------------------------
68
69dist_bin_SCRIPTS = \
70 src/collectyd \
71 src/collecty-client
72
73collecty_PYTHON = \
74 src/collecty/__init__.py \
73241420 75 src/collecty/__version__.py \
c968f6d9 76 src/collecty/bus.py \
2fc9f9a2 77 src/collecty/client.py \
9823dfef 78 src/collecty/colours.py \
2fc9f9a2
MT
79 src/collecty/constants.py \
80 src/collecty/daemon.py \
81 src/collecty/errors.py \
82 src/collecty/i18n.py \
429ba506 83 src/collecty/locales.py \
9823dfef
MT
84 src/collecty/logger.py \
85 src/collecty/util.py
2fc9f9a2
MT
86
87collectydir = $(pythondir)/collecty
88
89collectyplugins_PYTHON = \
90 src/collecty/plugins/base.py \
27f02dbd 91 src/collecty/plugins/contextswitches.py \
0ec1854a 92 src/collecty/plugins/conntrack.py \
81b24bab 93 src/collecty/plugins/cpufreq.py \
9823dfef 94 src/collecty/plugins/df.py \
30777a6c 95 src/collecty/plugins/disk.py \
2fc9f9a2
MT
96 src/collecty/plugins/entropy.py \
97 src/collecty/plugins/__init__.py \
98 src/collecty/plugins/interface.py \
5125dbcd 99 src/collecty/plugins/interrupts.py \
29455c5f 100 src/collecty/plugins/ipfrag.py \
2fc9f9a2
MT
101 src/collecty/plugins/latency.py \
102 src/collecty/plugins/loadavg.py \
c389fccf 103 src/collecty/plugins/memory.py \
af16115b 104 src/collecty/plugins/processor.py \
c389fccf 105 src/collecty/plugins/sensors.py
2fc9f9a2
MT
106
107collectypluginsdir = $(collectydir)/plugins
108
30777a6c
MT
109pkgpyexec_LTLIBRARIES = \
110 _collecty.la
111
112_collecty_la_SOURCES = \
86d23308
MT
113 src/_collecty/_collectymodule.c \
114 src/_collecty/_collectymodule.h \
115 src/_collecty/blockdev.c \
116 src/_collecty/ping.c \
117 src/_collecty/sensors.c \
118 src/_collecty/utils.c
30777a6c
MT
119
120_collecty_la_CFLAGS = \
121 $(AM_CFLAGS) \
122 $(LIBATASMART_CFLAGS) \
63f9f8be 123 $(OPING_CFLAGS) \
297fa319 124 $(PYTHON_CFLAGS)
30777a6c
MT
125
126_collecty_la_LDFLAGS = \
127 $(AM_LDFLAGS) \
128 -shared \
129 -module \
130 -avoid-version
131
132_collecty_la_LIBADD = \
133 $(LIBATASMART_LIBS) \
63f9f8be 134 $(OPING_LIBS) \
297fa319 135 $(PYTHON_LIBS) \
c389fccf 136 $(SENSORS_LIBS)
30777a6c 137
c968f6d9
MT
138dist_dbuspolicy_DATA = \
139 src/dbus/org.ipfire.collecty1.conf
140
141dist_dbussystemservice_DATA = \
142 src/dbus/org.ipfire.collecty1.service
143
144systemdsystemunit_DATA = \
145 src/systemd/collecty.service
146
147dist_systemdsystemunit_DATA = \
148 src/systemd/org.ipfire.collecty1.busname
149
150EXTRA_DIST += \
151 src/systemd/collecty.service.in
152
153CLEANFILES += \
154 src/systemd/collecty.service
155
2fc9f9a2
MT
156# ------------------------------------------------------------------------------
157
158if ENABLE_MANPAGES
159MANPAGES = \
160 man/collectyd.1
161
162MANPAGES_XML = $(patsubst %.1,%.xml,$(patsubst %.5,%.xml,$(MANPAGES)))
163MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
164
165man: $(MANPAGES) $(MANPAGES_HTML)
166
167man_MANS = \
168 $(MANPAGES)
169
170noinst_DATA += \
171 $(MANPAGES_HTML)
172
173CLEANFILES += \
174 $(man_MANS) \
175 $(MANPAGES_HTML)
176
177EXTRA_DIST += \
178 $(MANPAGES_XML) \
179 man/custom-html.xsl
180
181XSLTPROC_FLAGS = \
182 --nonet \
183 --stringparam man.output.quietly 1 \
184 --stringparam funcsynopsis.style ansi \
185 --stringparam man.th.extra1.suppress 1 \
186 --stringparam man.authors.section.enabled 1 \
187 --stringparam man.copyright.section.enabled 1
188
189XSLTPROC_COMMAND_MAN = \
190 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
191 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
192
193XSLTPROC_COMMAND_HTML = \
194 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
195
196man/%.1: man/%.xml
197 $(XSLTPROC_COMMAND_MAN)
198
199man/%.5: man/%.xml
200 $(XSLTPROC_COMMAND_MAN)
201
202man/%.html: man/%.xml man/custom-html.xsl
203 $(XSLTPROC_COMMAND_HTML)
204
205endif
206
207# ------------------------------------------------------------------------------
208
2fc9f9a2
MT
209substitutions = \
210 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
211 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
212 '|configsdir=$(configsdir)|' \
213 '|bindir=$(bindir)|'
214
215SED_PROCESS = \
216 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
217 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
218 < $< > $@
219
220src/systemd/%: src/systemd/%.in Makefile
221 $(SED_PROCESS)