]>
Commit | Line | Data |
---|---|---|
47be870b LP |
1 | # This file is part of systemd. |
2 | # | |
3 | # Copyright 2010 Lennart Poettering | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # systemd is distributed in the hope that it will be useful, but | |
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | # General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
18 | ACLOCAL_AMFLAGS = -I m4 | |
19 | ||
8c4a3079 | 20 | # Dirs of external packages |
d122948d LP |
21 | dbuspolicydir=@dbuspolicydir@ |
22 | dbussessionservicedir=@dbussessionservicedir@ | |
23 | dbussystemservicedir=@dbussystemservicedir@ | |
24 | dbusinterfacedir=@dbusinterfacedir@ | |
d1ab0ca0 | 25 | udevrulesdir=@udevrulesdir@ |
036643a2 | 26 | |
8c4a3079 | 27 | # Our own, non-special dirs |
d1ab0ca0 | 28 | pkgsysconfdir=$(sysconfdir)/systemd |
d1ab0ca0 | 29 | sessionunitdir=$(pkgdatadir)/session |
8c4a3079 LP |
30 | |
31 | # And these are the special ones for / | |
32 | rootdir=@rootdir@ | |
8c4a3079 LP |
33 | rootbindir=$(rootdir)/bin |
34 | rootlibexecdir=$(rootdir)/lib/systemd | |
35 | systemunitdir=$(rootdir)/lib/systemd/system | |
70fcff31 | 36 | |
47be870b LP |
37 | AM_CPPFLAGS = \ |
38 | -include $(top_builddir)/config.h \ | |
036643a2 | 39 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 40 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 41 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 42 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
036643a2 | 43 | -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \ |
70fcff31 | 44 | -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \ |
8c4a3079 | 45 | -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
f401faf5 | 46 | -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ |
e99e38bb | 47 | -I $(top_srcdir)/src |
47be870b | 48 | |
8c4a3079 | 49 | rootbin_PROGRAMS = \ |
134dc482 | 50 | systemd \ |
a9b5b032 MT |
51 | systemctl |
52 | ||
8c4a3079 | 53 | bin_PROGRAMS = \ |
10e87ee7 LP |
54 | systemd-install |
55 | ||
56 | if HAVE_GTK | |
57 | bin_PROGRAMS += \ | |
8e274523 | 58 | systemadm |
a9b5b032 | 59 | endif |
8e274523 | 60 | |
8c4a3079 | 61 | rootlibexec_PROGRAMS = \ |
8e274523 | 62 | systemd-logger \ |
0b7964b8 LP |
63 | systemd-cgroups-agent \ |
64 | systemd-initctl | |
47be870b LP |
65 | |
66 | noinst_PROGRAMS = \ | |
67 | test-engine \ | |
15ae422b | 68 | test-job-type \ |
af5bc85d | 69 | test-ns \ |
8c47c732 LP |
70 | test-loopback \ |
71 | test-daemon | |
47be870b | 72 | |
d1ab0ca0 | 73 | dist_dbuspolicy_DATA = \ |
dfac97b2 | 74 | src/org.freedesktop.systemd1.conf |
e24067c3 | 75 | |
d122948d LP |
76 | dist_dbussystemservice_DATA = \ |
77 | src/org.freedesktop.systemd1.service | |
78 | ||
d1ab0ca0 | 79 | dist_udevrules_DATA = \ |
dfac97b2 | 80 | src/99-systemd.rules |
5cc5d790 | 81 | |
d122948d | 82 | dbusinterface_DATA = \ |
4288f619 LP |
83 | org.freedesktop.systemd1.Manager.xml \ |
84 | org.freedesktop.systemd1.Job.xml \ | |
85 | org.freedesktop.systemd1.Unit.xml \ | |
86 | org.freedesktop.systemd1.Service.xml \ | |
87 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 88 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
89 | org.freedesktop.systemd1.Target.xml \ |
90 | org.freedesktop.systemd1.Device.xml \ | |
91 | org.freedesktop.systemd1.Mount.xml \ | |
92 | org.freedesktop.systemd1.Automount.xml \ | |
93 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 LP |
94 | org.freedesktop.systemd1.Swap.xml \ |
95 | org.freedesktop.systemd1.Path.xml | |
4288f619 | 96 | |
d1ab0ca0 | 97 | dist_systemunit_DATA = \ |
70fcff31 | 98 | units/emergency.service \ |
f92a18f5 | 99 | units/basic.target \ |
5e6afdd3 LP |
100 | units/getty.target \ |
101 | units/halt.target \ | |
70449379 LP |
102 | units/local-fs.target \ |
103 | units/network.target \ | |
104 | units/nss-lookup.target \ | |
683f468c | 105 | units/mail-transfer-agent.target \ |
5e6afdd3 LP |
106 | units/poweroff.target \ |
107 | units/reboot.target \ | |
70449379 | 108 | units/remote-fs.target \ |
5e6afdd3 | 109 | units/rescue.target \ |
f0b02ca2 | 110 | units/rpcbind.target \ |
70449379 LP |
111 | units/rtc-set.target \ |
112 | units/shutdown.target \ | |
113 | units/sigpwr.target \ | |
114 | units/sockets.target \ | |
115 | units/swap.target \ | |
70fcff31 | 116 | units/systemd-initctl.socket \ |
670802d4 LP |
117 | units/systemd-logger.socket \ |
118 | units/dev-hugepages.automount \ | |
119 | units/dev-hugepages.mount \ | |
120 | units/dev-mqueue.automount \ | |
121 | units/dev-mqueue.mount \ | |
122 | units/proc-sys-fs-binfmt_misc.automount \ | |
123 | units/proc-sys-fs-binfmt_misc.mount \ | |
124 | units/sys-kernel-debug.automount \ | |
125 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
126 | units/sys-kernel-security.automount \ |
127 | units/sys-kernel-security.mount \ | |
128 | units/var-lock.mount \ | |
670802d4 | 129 | units/var-run.mount |
70fcff31 | 130 | |
d1ab0ca0 | 131 | systemunit_DATA = \ |
f92a18f5 | 132 | units/sysinit.target \ |
5e6afdd3 LP |
133 | units/getty@.service \ |
134 | units/graphical.target \ | |
135 | units/multi-user.target \ | |
dfac97b2 | 136 | units/systemd-initctl.service \ |
a7b6f8e5 LP |
137 | units/systemd-logger.service \ |
138 | units/syslog.target | |
d1ab0ca0 | 139 | |
0d26c910 LP |
140 | dist_sessionunit_DATA = \ |
141 | units/session/default.target | |
142 | ||
fb1bd35a | 143 | sessionunit_DATA = \ |
a1b256b0 LP |
144 | units/session/remote-fs.target \ |
145 | units/session/exit.service | |
fb1bd35a | 146 | |
e24067c3 | 147 | EXTRA_DIST = \ |
f92a18f5 | 148 | units/sysinit.target.m4 \ |
5e6afdd3 LP |
149 | units/getty@.service.m4 \ |
150 | units/graphical.target.m4 \ | |
151 | units/multi-user.target.m4 \ | |
705dbf3a | 152 | units/remote-fs.target.m4 \ |
70fcff31 | 153 | units/systemd-initctl.service.in \ |
70fcff31 | 154 | units/systemd-logger.service.in \ |
a7b6f8e5 | 155 | units/syslog.target.in \ |
a1b256b0 | 156 | units/session/exit.service.in \ |
31cee6f6 | 157 | LICENSE \ |
eb10a764 LP |
158 | README \ |
159 | DISTRO_PORTING | |
e24067c3 | 160 | |
5e6afdd3 LP |
161 | if TARGET_FEDORA |
162 | dist_systemunit_DATA += \ | |
163 | units/fedora/halt.service \ | |
164 | units/fedora/killall.service \ | |
165 | units/fedora/poweroff.service \ | |
166 | units/fedora/prefdm.service \ | |
167 | units/fedora/rc-local.service \ | |
168 | units/fedora/reboot.service \ | |
169 | units/fedora/sysinit.service | |
170 | endif | |
171 | ||
65b0095b KS |
172 | if TARGET_SUSE |
173 | dist_systemunit_DATA += \ | |
174 | units/suse/halt.service \ | |
175 | units/suse/poweroff.service \ | |
176 | units/suse/reboot.service | |
177 | endif | |
178 | ||
ea2d9ed4 MAP |
179 | if TARGET_GENTOO |
180 | dist_systemunit_DATA += \ | |
181 | units/gentoo/halt.service \ | |
182 | units/gentoo/killall.service \ | |
183 | units/gentoo/poweroff.service \ | |
184 | units/gentoo/reboot.service \ | |
185 | units/gentoo/xdm.service | |
186 | endif | |
187 | ||
1ebdf2d8 TG |
188 | if TARGET_ARCH |
189 | dist_systemunit_DATA += \ | |
190 | units/arch/sysinit.service \ | |
191 | units/arch/rc-local.service \ | |
192 | units/arch/halt.service \ | |
193 | units/arch/poweroff.service \ | |
194 | units/arch/reboot.service | |
195 | endif | |
196 | ||
75db651a TFH |
197 | # This is needed because automake is buggy in how it generates the |
198 | # rules for C programs, but not Vala programs. We therefore can't | |
199 | # list the .h files as dependencies if we want make dist to work. | |
ea6145da | 200 | BASIC_SOURCES = \ |
e99e38bb LP |
201 | src/util.c \ |
202 | src/hashmap.c \ | |
203 | src/set.c \ | |
204 | src/strv.c \ | |
205 | src/conf-parser.c \ | |
206 | src/socket-util.c \ | |
207 | src/log.c \ | |
208 | src/ratelimit.c | |
47be870b | 209 | |
ea6145da | 210 | COMMON_SOURCES = \ |
47be870b | 211 | $(BASIC_SOURCES) \ |
e99e38bb LP |
212 | src/unit.c \ |
213 | src/job.c \ | |
214 | src/manager.c \ | |
84e3543e | 215 | src/path-lookup.c \ |
e99e38bb LP |
216 | src/load-fragment.c \ |
217 | src/service.c \ | |
218 | src/automount.c \ | |
219 | src/mount.c \ | |
220 | src/swap.c \ | |
221 | src/device.c \ | |
222 | src/target.c \ | |
223 | src/snapshot.c \ | |
224 | src/socket.c \ | |
225 | src/timer.c \ | |
01f78473 | 226 | src/path.c \ |
e99e38bb LP |
227 | src/load-dropin.c \ |
228 | src/execute.c \ | |
229 | src/dbus.c \ | |
230 | src/dbus-manager.c \ | |
231 | src/dbus-unit.c \ | |
232 | src/dbus-job.c \ | |
233 | src/dbus-service.c \ | |
234 | src/dbus-socket.c \ | |
871d7de4 | 235 | src/dbus-timer.c \ |
e99e38bb LP |
236 | src/dbus-target.c \ |
237 | src/dbus-mount.c \ | |
238 | src/dbus-automount.c \ | |
239 | src/dbus-swap.c \ | |
240 | src/dbus-snapshot.c \ | |
241 | src/dbus-device.c \ | |
242 | src/dbus-execute.c \ | |
01f78473 | 243 | src/dbus-path.c \ |
e99e38bb LP |
244 | src/cgroup.c \ |
245 | src/mount-setup.c \ | |
246 | src/hostname-setup.c \ | |
247 | src/loopback-setup.c \ | |
11c3a4ee | 248 | src/kmod-setup.c \ |
e99e38bb LP |
249 | src/utmp-wtmp.c \ |
250 | src/specifier.c \ | |
251 | src/unit-name.c \ | |
252 | src/fdset.c \ | |
0213c3f8 LP |
253 | src/namespace.c \ |
254 | src/tcpwrap.c | |
47be870b | 255 | |
462b33e9 TFH |
256 | EXTRA_DIST += \ |
257 | ${COMMON_SOURCES:.c=.h} \ | |
e99e38bb LP |
258 | src/macro.h \ |
259 | src/ioprio.h \ | |
260 | src/missing.h \ | |
261 | src/list.h \ | |
262 | src/securebits.h \ | |
263 | src/linux/auto_dev-ioctl.h \ | |
264 | src/initreq.h \ | |
265 | src/sd-daemon.h | |
462b33e9 | 266 | |
d1ab0ca0 | 267 | dist_man_MANS = \ |
dfac97b2 | 268 | man/systemd.unit.5 \ |
9f2c5942 LP |
269 | man/systemd.service.5 |
270 | ||
271 | nodist_man_MANS = \ | |
9f235308 | 272 | man/systemd.special.7 |
d1ab0ca0 | 273 | |
9f2c5942 | 274 | dist_noinst_DATA = \ |
dfac97b2 | 275 | man/systemd.unit.html \ |
9f2c5942 | 276 | man/systemd.service.html |
d1ab0ca0 | 277 | |
9f2c5942 LP |
278 | nodist_noinst_DATA = \ |
279 | man/systemd.special.html | |
d1ab0ca0 LP |
280 | |
281 | EXTRA_DIST += \ | |
282 | man/systemd.unit.xml \ | |
9f235308 | 283 | man/systemd.service.xml \ |
9f2c5942 LP |
284 | man/systemd.special.xml.in \ |
285 | man/systemd.special.7.in \ | |
286 | man/systemd.special.html.in | |
d1ab0ca0 | 287 | |
47be870b LP |
288 | systemd_SOURCES = \ |
289 | $(COMMON_SOURCES) \ | |
e99e38bb | 290 | src/main.c |
47be870b | 291 | |
10e87ee7 LP |
292 | systemd_CFLAGS = \ |
293 | $(AM_CFLAGS) \ | |
47be870b | 294 | $(DBUS_CFLAGS) \ |
8e274523 LP |
295 | $(UDEV_CFLAGS) \ |
296 | $(CGROUP_CFLAGS) | |
47be870b LP |
297 | |
298 | systemd_LDADD = \ | |
299 | $(DBUS_LIBS) \ | |
8e274523 | 300 | $(UDEV_LIBS) \ |
0213c3f8 | 301 | $(CGROUP_LIBS) \ |
5b6319dc LP |
302 | $(LIBWRAP_LIBS) \ |
303 | $(PAM_LIBS) | |
47be870b LP |
304 | |
305 | test_engine_SOURCES = \ | |
306 | $(COMMON_SOURCES) \ | |
e99e38bb | 307 | src/test-engine.c |
47be870b | 308 | |
10e87ee7 | 309 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
310 | test_engine_LDADD = $(systemd_LDADD) |
311 | ||
312 | test_job_type_SOURCES = \ | |
313 | $(COMMON_SOURCES) \ | |
e1d680ad | 314 | src/test-job-type.c |
47be870b | 315 | |
10e87ee7 | 316 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
317 | test_job_type_LDADD = $(systemd_LDADD) |
318 | ||
15ae422b LP |
319 | test_ns_SOURCES = \ |
320 | $(BASIC_SOURCES) \ | |
e99e38bb LP |
321 | src/test-ns.c \ |
322 | src/namespace.c | |
15ae422b | 323 | |
10e87ee7 | 324 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
325 | test_ns_LDADD = $(systemd_LDADD) |
326 | ||
af5bc85d LP |
327 | test_loopback_SOURCES = \ |
328 | $(BASIC_SOURCES) \ | |
e99e38bb LP |
329 | src/test-loopback.c \ |
330 | src/loopback-setup.c | |
af5bc85d | 331 | |
8c47c732 LP |
332 | test_daemon_SOURCES = \ |
333 | $(BASIC_SOURCES) \ | |
334 | src/test-daemon.c \ | |
335 | src/sd-daemon.c | |
af5bc85d | 336 | |
47be870b LP |
337 | systemd_logger_SOURCES = \ |
338 | $(BASIC_SOURCES) \ | |
e99e38bb | 339 | src/logger.c \ |
0213c3f8 LP |
340 | src/sd-daemon.c \ |
341 | src/tcpwrap.c | |
342 | ||
343 | systemd_logger_LDADD = \ | |
344 | $(LIBWRAP_LIBS) | |
47be870b | 345 | |
0b7964b8 LP |
346 | systemd_initctl_SOURCES = \ |
347 | $(BASIC_SOURCES) \ | |
e99e38bb LP |
348 | src/initctl.c \ |
349 | src/sd-daemon.c | |
0b7964b8 | 350 | |
10e87ee7 LP |
351 | systemd_initctl_CFLAGS = \ |
352 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
353 | $(DBUS_CFLAGS) |
354 | ||
355 | systemd_initctl_LDADD = \ | |
356 | $(DBUS_LIBS) | |
357 | ||
8e274523 LP |
358 | systemd_cgroups_agent_SOURCES = \ |
359 | $(BASIC_SOURCES) \ | |
e99e38bb | 360 | src/cgroups-agent.c |
8e274523 | 361 | |
10e87ee7 LP |
362 | systemd_cgroups_agent_CFLAGS = \ |
363 | $(AM_CFLAGS) \ | |
8e274523 LP |
364 | $(DBUS_CFLAGS) |
365 | ||
366 | systemd_cgroups_agent_LDADD = \ | |
367 | $(DBUS_LIBS) | |
368 | ||
7e4249b9 LP |
369 | systemctl_SOURCES = \ |
370 | src/systemctl.c \ | |
371 | $(BASIC_SOURCES) | |
372 | ||
10e87ee7 | 373 | systemctl_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) |
7e4249b9 LP |
374 | systemctl_LDADD = $(DBUS_LIBS) |
375 | ||
10e87ee7 LP |
376 | systemd_install_SOURCES = \ |
377 | src/install.c \ | |
378 | src/path-lookup.c \ | |
379 | $(BASIC_SOURCES) | |
e99e38bb | 380 | |
10e87ee7 LP |
381 | # We don't really link here against D-Bus, however we indirectly include D-Bus header files |
382 | systemd_install_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) | |
47be870b | 383 | |
47be870b | 384 | systemadm_SOURCES = \ |
e99e38bb LP |
385 | src/systemadm.vala \ |
386 | src/systemd-interfaces.vala | |
47be870b | 387 | |
10e87ee7 LP |
388 | systemadm_CFLAGS = \ |
389 | $(AM_CFLAGS) \ | |
390 | $(DBUSGLIB_CFLAGS) \ | |
391 | $(GTK_CFLAGS) \ | |
392 | -Wno-unused-variable \ | |
393 | -Wno-unused-function \ | |
394 | -Wno-shadow \ | |
395 | -Wno-format-nonliteral | |
396 | ||
397 | systemadm_VALAFLAGS = \ | |
398 | --pkg=dbus-glib-1 \ | |
399 | --pkg=posix \ | |
400 | --pkg=gtk+-2.0 \ | |
401 | -g | |
402 | ||
47be870b | 403 | systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS) |
c1e1601e | 404 | |
5e6afdd3 | 405 | SED_PROCESS = \ |
a00e4879 | 406 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
1136a371 | 407 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5e6afdd3 | 408 | -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ |
a1b256b0 | 409 | -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \ |
1136a371 | 410 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
2d02719c | 411 | < $< > $@ |
70fcff31 | 412 | |
9f2c5942 | 413 | units/%: units/%.in Makefile |
5e6afdd3 LP |
414 | $(SED_PROCESS) |
415 | ||
2a3d6294 | 416 | man/%: man/%.in Makefile |
5e6afdd3 LP |
417 | $(SED_PROCESS) |
418 | ||
fb1bd35a | 419 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 420 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 421 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ |
fb1bd35a LP |
422 | |
423 | M4_PROCESS_SESSION = \ | |
a00e4879 | 424 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 425 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ |
5e6afdd3 | 426 | |
9f2c5942 | 427 | units/%: units/%.m4 Makefile |
fb1bd35a | 428 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 429 | |
9f2c5942 | 430 | units/session/%: units/%.m4 Makefile |
fb1bd35a | 431 | $(M4_PROCESS_SESSION) |
a7b6f8e5 | 432 | |
c1e1601e | 433 | CLEANFILES = \ |
dfac97b2 | 434 | units/systemd-initctl.service \ |
a7b6f8e5 | 435 | units/systemd-logger.service \ |
5e6afdd3 | 436 | units/syslog.target \ |
f92a18f5 | 437 | units/sysinit.target \ |
5e6afdd3 LP |
438 | units/getty@.service \ |
439 | units/graphical.target \ | |
705dbf3a LP |
440 | units/multi-user.target \ |
441 | units/remote-fs.target \ | |
9f2c5942 | 442 | units/session/remote-fs.target \ |
a1b256b0 | 443 | units/session/exit.service \ |
9f2c5942 LP |
444 | man/systemd.special.7 \ |
445 | man/systemd.special.html | |
4697132b | 446 | |
42e39f0b LP |
447 | if HAVE_VALAC |
448 | CLEANFILES += \ | |
449 | src/systemd-interfaces.c \ | |
42e39f0b LP |
450 | src/systemadm.c |
451 | endif | |
452 | ||
c3bd7322 | 453 | if HAVE_XSLTPROC |
9f2c5942 | 454 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 455 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
d1ab0ca0 LP |
456 | $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
457 | ||
9f2c5942 | 458 | XSLTPROC_PROCESS_MAN_IN = \ |
a00e4879 | 459 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 LP |
460 | $(XSLTPROC) -o ${@:.in=} -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ |
461 | mv ${@:.in=} $@ | |
462 | ||
463 | XSLTPROC_PROCESS_HTML = \ | |
a00e4879 | 464 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
d1ab0ca0 LP |
465 | $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< |
466 | ||
9f2c5942 | 467 | XSLTPROC_PROCESS_HTML_IN = \ |
a00e4879 | 468 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 LP |
469 | $(XSLTPROC) -o ${@:.in=} -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \ |
470 | mv ${@:.in=} $@ | |
471 | ||
472 | man/%.5: man/%.xml | |
473 | $(XSLTPROC_PROCESS_MAN) | |
474 | ||
475 | man/%.5.in: man/%.xml.in | |
476 | $(XSLTPROC_PROCESS_MAN) | |
477 | ||
478 | man/%.7: man/%.xml | |
479 | $(XSLTPROC_PROCESS_MAN) | |
480 | ||
481 | man/%.7.in: man/%.xml.in | |
482 | $(XSLTPROC_PROCESS_MAN_IN) | |
483 | ||
484 | man/%.html: man/%.xml | |
485 | $(XSLTPROC_PROCESS_HTML) | |
486 | ||
487 | man/%.html.in: man/%.xml.in | |
488 | $(XSLTPROC_PROCESS_HTML_IN) | |
489 | ||
d1ab0ca0 LP |
490 | CLEANFILES += \ |
491 | $(dist_man_MANS) \ | |
9f2c5942 LP |
492 | man/systemd.special.7.in \ |
493 | man/systemd.unit.html \ | |
494 | man/systemd.service.html \ | |
495 | man/systemd.special.html.in | |
c3bd7322 | 496 | endif |
d1ab0ca0 | 497 | |
4288f619 LP |
498 | org.freedesktop.systemd1.%.xml: systemd |
499 | $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@ | |
500 | ||
d122948d | 501 | CLEANFILES += $(dbusinterface_DATA) |
4288f619 | 502 | |
4697132b | 503 | install-data-hook: |
64c1b5bf | 504 | $(MKDIR_P) -m 0755 \ |
43aa226d LP |
505 | $(DESTDIR)$(systemunitdir) \ |
506 | $(DESTDIR)$(sessionunitdir) \ | |
5e6afdd3 | 507 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
f92a18f5 | 508 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants \ |
64c1b5bf | 509 | $(DESTDIR)$(pkgsysconfdir)/system \ |
5e6afdd3 LP |
510 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
511 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ | |
512 | $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \ | |
64c1b5bf | 513 | $(DESTDIR)$(pkgsysconfdir)/session \ |
e82e442b | 514 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
53f7d807 LP |
515 | $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup/systemd || \ |
516 | echo "Don't forget to create /cgroup/systemd! Couldn't create it for you, continuing anyway." | |
e9da3678 LP |
517 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
518 | rm -f session && \ | |
5e6afdd3 LP |
519 | $(LN_S) $(pkgsysconfdir)/session session ) |
520 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ | |
70449379 | 521 | rm -f systemd-initctl.socket systemd-logger.socket && \ |
5e6afdd3 LP |
522 | $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ |
523 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket ) | |
70449379 | 524 | ( cd $(DESTDIR)$(sessionunitdir) && \ |
fb1bd35a | 525 | rm -f shutdown.target sockets.target local-fs.target swap.target && \ |
8c4a3079 LP |
526 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
527 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
528 | $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ | |
529 | $(LN_S) $(systemunitdir)/swap.target swap.target ) | |
5e6afdd3 LP |
530 | ( cd $(DESTDIR)$(systemunitdir) && \ |
531 | rm -f runlevel0.target runlevel1.target runlevel6.target && \ | |
532 | $(LN_S) poweroff.target runlevel0.target && \ | |
533 | $(LN_S) rescue.target runlevel1.target && \ | |
534 | $(LN_S) reboot.target runlevel6.target ) | |
535 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
536 | rm -f default.target ctrl-alt-del.target kbrequest.target && \ | |
537 | $(LN_S) $(systemunitdir)/graphical.target default.target && \ | |
538 | $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \ | |
539 | $(LN_S) $(systemunitdir)/rescue.target kbrequest.target && \ | |
540 | rm -f runlevel2.target runlevel3.target runlevel4.target runlevel5.target && \ | |
541 | $(LN_S) $(systemunitdir)/multi-user.target runlevel2.target && \ | |
542 | $(LN_S) $(systemunitdir)/multi-user.target runlevel3.target && \ | |
543 | $(LN_S) $(systemunitdir)/multi-user.target runlevel4.target && \ | |
544 | $(LN_S) $(systemunitdir)/graphical.target runlevel5.target ) | |
545 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ | |
546 | rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ | |
547 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ | |
548 | $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ | |
549 | $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ | |
550 | $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ | |
551 | $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ | |
552 | $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) | |
553 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ | |
f92a18f5 LP |
554 | rm -f getty.target remote-fs.target && \ |
555 | $(LN_S) $(systemunitdir)/getty.target getty.target && \ | |
556 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) | |
557 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ | |
6d526de2 LP |
558 | rm -f dev-hugepages.automount \ |
559 | dev-mqueue.automount \ | |
560 | proc-sys-fs-binfmt_misc.automount \ | |
561 | sys-kernel-debug.automount \ | |
6d526de2 | 562 | sys-kernel-security.automount && \ |
670802d4 LP |
563 | $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \ |
564 | $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \ | |
565 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \ | |
6d526de2 | 566 | $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \ |
8c4a3079 | 567 | $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount ) |
d122948d LP |
568 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
569 | rm -f org.freedesktop.systemd1.service && \ | |
570 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
5e6afdd3 | 571 | if TARGET_FEDORA |
1e287fe3 LP |
572 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
573 | rm -f display-manager.service && \ | |
574 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 575 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
1e287fe3 LP |
576 | rm -f display-manager.service && \ |
577 | $(LN_S) ../display-manager.service display-manager.service ) | |
5e6afdd3 LP |
578 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
579 | rm -f rc-local.service && \ | |
580 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
581 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
582 | rm -f local.service && \ | |
583 | $(LN_S) rc-local.service local.service ) | |
1afaf573 LP |
584 | ( cd $(DESTDIR)/etc/init.d && \ |
585 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) | |
5e6afdd3 | 586 | endif |
f306f4c4 MAP |
587 | if TARGET_GENTOO |
588 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
589 | rm -f display-manager.service && \ | |
590 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
591 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
592 | rm -f display-manager.service && \ | |
593 | $(LN_S) ../display-manager.service display-manager.service ) | |
594 | endif | |
5e6afdd3 | 595 | |
d1ab0ca0 | 596 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
597 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
598 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
599 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
600 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 LP |
601 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
602 | --with-rootdir=$$dc_install_base/$(rootdir) |