forked from systemd/systemd-bootchart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
236 lines (195 loc) · 5.4 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# -*- Mode: makefile; indent-tabs-mode: t -*-
#
# This file is part of systemd-bootchart
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# systemd is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
AUTOMAKE_OPTIONS = color-tests parallel-tests
GCC_COLORS ?= 'ooh, shiny!'
export GCC_COLORS
SUBDIRS = .
# remove targets if the command fails
.DELETE_ON_ERROR:
# keep intermediate files
.SECONDARY:
# Keep the test-suite.log
.PRECIOUS: $(TEST_SUITE_LOG) Makefile
# Dirs of external packages
systemdir=@systemdir@
# And these are the special ones for /
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
pkgsysconfdir=$(sysconfdir)/systemd
systemunitdir=$(rootprefix)/lib/systemd/system
AM_CFLAGS = $(OUR_CFLAGS)
AM_LDFLAGS = $(OUR_LDFLAGS)
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
-DROOTPREFIX=\"$(rootprefix)\" \
-DLIBDIR=\"$(libdir)\" \
-DROOTLIBDIR=\"$(rootlibdir)\" \
-DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
-I $(top_srcdir)/src
#####################################################
dist_noinst_DATA = \
LICENSE.LGPL2.1 \
LICENSE.GPL2
EXTRA_DIST = \
man/bootchart.conf.xml \
man/systemd-bootchart.xml \
man/custom-man.xsl \
man/standard-conf.xml \
man/standard-options.xml \
units/systemd-bootchart.service.in \
tests/run
MANPAGES = man/bootchart.conf.5 man/systemd-bootchart.1
MANPAGES_ALIAS = man/bootchart.conf.d.5
if COND_man
MAYBE_MANPAGES = $(MANPAGES) $(MANPAGES_ALIAS)
endif
man_MANS = $(MAYBE_MANPAGES)
man/bootchart.conf.d.5: man/bootchart.conf.5
XSLTPROC_FLAGS = \
--nonet \
--xinclude \
--stringparam man.output.quietly 1 \
--stringparam funcsynopsis.style ansi \
--stringparam man.authors.section.enabled 0 \
--stringparam man.copyright.section.enabled 0 \
--stringparam systemd.version $(VERSION) \
--path '$(builddir)/man:$(srcdir)/man'
XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
XSLTPROC_PROCESS_MAN = \
$(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
man/%.1: man/%.xml man/custom-man.xsl
$(XSLTPROC_PROCESS_MAN)
man/%.5: man/%.xml man/custom-man.xsl
$(XSLTPROC_PROCESS_MAN)
#####################################################
libutils_la_SOURCES = \
src/alloc-util.c \
src/alloc-util.h \
src/architecture.h \
src/attributes.h \
src/build.h \
src/cgroup-util.c \
src/cgroup-util.h \
src/conf-files.c \
src/conf-files.h \
src/conf-parser.c \
src/conf-parser.h \
src/def.h \
src/dirent-util.c \
src/dirent-util.h \
src/fd-util.c \
src/fd-util.h \
src/fileio.c \
src/fileio.h \
src/formats-util.h \
src/fs-util.c \
src/fs-util.h \
src/hash-funcs.c \
src/hash-funcs.h \
src/hashmap.c \
src/hashmap.h \
src/io-util.c \
src/io-util.h \
src/list.h \
src/log.c \
src/log.h \
src/macro.h \
src/mempool.c \
src/mempool.h \
src/missing.h \
src/parse-util.c \
src/parse-util.h \
src/path-util.c \
src/path-util.h \
src/process-util.c \
src/process-util.h \
src/random-util.c \
src/random-util.h \
src/_sd-common.h \
src/sd-messages.h \
src/set.h \
src/siphash24.c \
src/siphash24.h \
src/stdio-util.h \
src/string-util.c \
src/string-util.h \
src/strv.c \
src/strv.h \
src/strxcpyx.c \
src/strxcpyx.h \
src/terminal-util.c \
src/terminal-util.h \
src/time-util.c \
src/time-util.h \
src/unaligned.h \
src/utf8.c \
src/utf8.h \
src/util.c \
src/util.h
libutils_la_CFLAGS = \
$(AM_CFLAGS) \
$(LIBSYSTEMD_CFLAGS)
libutils_la_LIBADD = \
$(LIBSYSTEMD_LIBS)
noinst_LTLIBRARIES = libutils.la
#####################################################
systemd_bootchart_SOURCES = \
src/bootchart.c \
src/bootchart.h \
src/store.c \
src/store.h \
src/svg.c \
src/svg.h
systemd_bootchart_LDADD = \
libutils.la
#####################################################
TESTS = tests/run
substitutions = \
'|rootlibexecdir=$(rootlibexecdir)|'
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
< $< > $@
units/%: units/%.in
$(SED_PROCESS)
man/%: man/%.in
$(SED_PROCESS)
rootlibexec_PROGRAMS = systemd-bootchart
dist_pkgsysconf_DATA = src/bootchart.conf
nodist_systemunit_DATA = units/systemd-bootchart.service
in_files = $(filter %.in,$(EXTRA_DIST))
CLEANFILES = \
$(MANPAGES) $(MANPAGES_ALIAS) \
$(pkgconfigdata_DATA) \
$(pkgconfiglib_DATA) \
$(in_files:.in=)
install-exec-hook: $(INSTALL_EXEC_HOOKS)
uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
install-data-hook: $(INSTALL_DATA_HOOKS)
.PHONY: git-tag
git-tag:
git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
.PHONY: git-tar
git-tar:
git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | xz > systemd-$(VERSION).tar.xz