]>
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@ |
8c6db833 LP |
26 | pamlibdir=@pamlibdir@ |
27 | pkgconfigdatadir=$(datadir)/pkgconfig | |
036643a2 | 28 | |
8c4a3079 | 29 | # Our own, non-special dirs |
d1ab0ca0 | 30 | pkgsysconfdir=$(sysconfdir)/systemd |
d1ab0ca0 | 31 | sessionunitdir=$(pkgdatadir)/session |
8c4a3079 LP |
32 | |
33 | # And these are the special ones for / | |
34 | rootdir=@rootdir@ | |
8c4a3079 LP |
35 | rootbindir=$(rootdir)/bin |
36 | rootlibexecdir=$(rootdir)/lib/systemd | |
37 | systemunitdir=$(rootdir)/lib/systemd/system | |
70fcff31 | 38 | |
47be870b LP |
39 | AM_CPPFLAGS = \ |
40 | -include $(top_builddir)/config.h \ | |
487393e9 | 41 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ |
036643a2 | 42 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 43 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 44 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 45 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
487393e9 | 46 | -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \ |
036643a2 | 47 | -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \ |
70fcff31 | 48 | -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \ |
8c4a3079 | 49 | -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
f401faf5 | 50 | -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ |
2cb1a60d | 51 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
8c6db833 | 52 | -DRUNTIME_DIR=\"$(localstatedir)/run\" \ |
ca2cab5d | 53 | -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ |
e99e38bb | 54 | -I $(top_srcdir)/src |
47be870b | 55 | |
8c4a3079 | 56 | rootbin_PROGRAMS = \ |
134dc482 | 57 | systemd \ |
4a2a8b5a LP |
58 | systemctl \ |
59 | systemd-notify | |
a9b5b032 | 60 | |
8c4a3079 | 61 | bin_PROGRAMS = \ |
fa776d8e | 62 | systemd-cgls |
10e87ee7 LP |
63 | |
64 | if HAVE_GTK | |
65 | bin_PROGRAMS += \ | |
8e274523 | 66 | systemadm |
a9b5b032 | 67 | endif |
8e274523 | 68 | |
8c4a3079 | 69 | rootlibexec_PROGRAMS = \ |
8e274523 | 70 | systemd-logger \ |
0b7964b8 | 71 | systemd-cgroups-agent \ |
4927fcae | 72 | systemd-initctl \ |
ca2cab5d | 73 | systemd-update-utmp \ |
f6144808 | 74 | systemd-random-seed \ |
5192bd19 | 75 | systemd-shutdownd \ |
449ddb2d | 76 | systemd-modules-load \ |
addab137 | 77 | systemd-remount-api-vfs \ |
97c4a07d LP |
78 | systemd-kmsg-syslogd \ |
79 | systemd-vconsole-setup | |
47be870b LP |
80 | |
81 | noinst_PROGRAMS = \ | |
82 | test-engine \ | |
15ae422b | 83 | test-job-type \ |
af5bc85d | 84 | test-ns \ |
8c47c732 | 85 | test-loopback \ |
e5907703 | 86 | test-hostname \ |
8c6db833 | 87 | test-daemon \ |
c24eb49e LP |
88 | test-cgroup \ |
89 | test-env-replace | |
8c6db833 LP |
90 | |
91 | if HAVE_PAM | |
92 | pamlib_LTLIBRARIES = \ | |
93 | pam_systemd.la | |
94 | endif | |
47be870b | 95 | |
487393e9 LP |
96 | dist_pkgsysconf_DATA = \ |
97 | src/system.conf | |
98 | ||
d1ab0ca0 | 99 | dist_dbuspolicy_DATA = \ |
dfac97b2 | 100 | src/org.freedesktop.systemd1.conf |
e24067c3 | 101 | |
d122948d LP |
102 | dist_dbussystemservice_DATA = \ |
103 | src/org.freedesktop.systemd1.service | |
104 | ||
d1ab0ca0 | 105 | dist_udevrules_DATA = \ |
dfac97b2 | 106 | src/99-systemd.rules |
5cc5d790 | 107 | |
d122948d | 108 | dbusinterface_DATA = \ |
4288f619 LP |
109 | org.freedesktop.systemd1.Manager.xml \ |
110 | org.freedesktop.systemd1.Job.xml \ | |
111 | org.freedesktop.systemd1.Unit.xml \ | |
112 | org.freedesktop.systemd1.Service.xml \ | |
113 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 114 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
115 | org.freedesktop.systemd1.Target.xml \ |
116 | org.freedesktop.systemd1.Device.xml \ | |
117 | org.freedesktop.systemd1.Mount.xml \ | |
118 | org.freedesktop.systemd1.Automount.xml \ | |
119 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 LP |
120 | org.freedesktop.systemd1.Swap.xml \ |
121 | org.freedesktop.systemd1.Path.xml | |
4288f619 | 122 | |
d1ab0ca0 | 123 | dist_systemunit_DATA = \ |
70fcff31 | 124 | units/emergency.service \ |
f057408c | 125 | units/emergency.target \ |
f92a18f5 | 126 | units/basic.target \ |
5e6afdd3 LP |
127 | units/getty.target \ |
128 | units/halt.target \ | |
70449379 LP |
129 | units/local-fs.target \ |
130 | units/network.target \ | |
131 | units/nss-lookup.target \ | |
683f468c | 132 | units/mail-transfer-agent.target \ |
a2ff477f | 133 | units/http-daemon.target \ |
5e6afdd3 LP |
134 | units/poweroff.target \ |
135 | units/reboot.target \ | |
5e6afdd3 | 136 | units/rescue.target \ |
f0b02ca2 | 137 | units/rpcbind.target \ |
70449379 LP |
138 | units/rtc-set.target \ |
139 | units/shutdown.target \ | |
4e67ddd6 | 140 | units/umount.target \ |
70449379 LP |
141 | units/sigpwr.target \ |
142 | units/sockets.target \ | |
143 | units/swap.target \ | |
83bda358 | 144 | units/dbus.target \ |
70fcff31 | 145 | units/systemd-initctl.socket \ |
670802d4 | 146 | units/systemd-logger.socket \ |
f6144808 | 147 | units/systemd-shutdownd.socket \ |
addab137 | 148 | units/systemd-kmsg-syslogd.socket \ |
670802d4 LP |
149 | units/dev-hugepages.automount \ |
150 | units/dev-hugepages.mount \ | |
151 | units/dev-mqueue.automount \ | |
152 | units/dev-mqueue.mount \ | |
153 | units/proc-sys-fs-binfmt_misc.automount \ | |
154 | units/proc-sys-fs-binfmt_misc.mount \ | |
155 | units/sys-kernel-debug.automount \ | |
156 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
157 | units/sys-kernel-security.automount \ |
158 | units/sys-kernel-security.mount \ | |
b54dd8b7 | 159 | units/tmp.mount \ |
6d526de2 | 160 | units/var-lock.mount \ |
3c268bdf | 161 | units/var-lock.service \ |
da78e1b4 | 162 | units/var-run.mount \ |
3c268bdf | 163 | units/var-run.service \ |
5481ab2b | 164 | units/hwclock-load.service \ |
f556ea46 LP |
165 | units/hwclock-save.service \ |
166 | units/sysctl.service \ | |
90685f7d | 167 | units/remount-rootfs.service \ |
da78e1b4 | 168 | units/printer.target \ |
ceda54d9 LP |
169 | units/bluetooth.target \ |
170 | units/smartcard.target | |
70fcff31 | 171 | |
6f6083dc | 172 | nodist_systemunit_DATA = \ |
f92a18f5 | 173 | units/sysinit.target \ |
5e6afdd3 | 174 | units/getty@.service \ |
93a45c56 | 175 | units/serial-getty@.service \ |
5e6afdd3 | 176 | units/graphical.target \ |
6f6083dc | 177 | units/remote-fs.target \ |
5e6afdd3 | 178 | units/multi-user.target \ |
dfac97b2 | 179 | units/systemd-initctl.service \ |
a7b6f8e5 | 180 | units/systemd-logger.service \ |
f6144808 | 181 | units/systemd-shutdownd.service \ |
addab137 | 182 | units/systemd-kmsg-syslogd.service \ |
b2423f1f | 183 | units/systemd-modules-load.service \ |
97c4a07d | 184 | units/systemd-vconsole-setup.service \ |
449ddb2d | 185 | units/systemd-remount-api-vfs.service \ |
cd6d0a45 LP |
186 | units/systemd-update-utmp-runlevel.service \ |
187 | units/systemd-update-utmp-shutdown.service \ | |
ca2cab5d LP |
188 | units/systemd-random-seed-save.service \ |
189 | units/systemd-random-seed-load.service \ | |
83bda358 | 190 | units/syslog.target |
d1ab0ca0 | 191 | |
0d26c910 LP |
192 | dist_sessionunit_DATA = \ |
193 | units/session/default.target | |
194 | ||
6f6083dc | 195 | nodist_sessionunit_DATA = \ |
a1b256b0 LP |
196 | units/session/remote-fs.target \ |
197 | units/session/exit.service | |
fb1bd35a | 198 | |
e24067c3 | 199 | EXTRA_DIST = \ |
f92a18f5 | 200 | units/sysinit.target.m4 \ |
5e6afdd3 | 201 | units/getty@.service.m4 \ |
93a45c56 | 202 | units/serial-getty@.service.m4 \ |
5e6afdd3 LP |
203 | units/graphical.target.m4 \ |
204 | units/multi-user.target.m4 \ | |
705dbf3a | 205 | units/remote-fs.target.m4 \ |
70fcff31 | 206 | units/systemd-initctl.service.in \ |
70fcff31 | 207 | units/systemd-logger.service.in \ |
f6144808 | 208 | units/systemd-shutdownd.service.in \ |
addab137 | 209 | units/systemd-kmsg-syslogd.service.in \ |
b2423f1f | 210 | units/systemd-modules-load.service.in \ |
97c4a07d | 211 | units/systemd-vconsole-setup.service.in \ |
449ddb2d | 212 | units/systemd-remount-api-vfs.service.in \ |
cd6d0a45 LP |
213 | units/systemd-update-utmp-runlevel.service.in \ |
214 | units/systemd-update-utmp-shutdown.service.in \ | |
ca2cab5d LP |
215 | units/systemd-random-seed-save.service.in \ |
216 | units/systemd-random-seed-load.service.in \ | |
a7b6f8e5 | 217 | units/syslog.target.in \ |
a1b256b0 | 218 | units/session/exit.service.in \ |
64ca679e | 219 | systemd.pc.in |
e24067c3 | 220 | |
5e6afdd3 LP |
221 | if TARGET_FEDORA |
222 | dist_systemunit_DATA += \ | |
223 | units/fedora/halt.service \ | |
224 | units/fedora/killall.service \ | |
225 | units/fedora/poweroff.service \ | |
226 | units/fedora/prefdm.service \ | |
227 | units/fedora/rc-local.service \ | |
228 | units/fedora/reboot.service \ | |
f057408c | 229 | units/fedora/sysinit.service \ |
1310609b LP |
230 | units/fedora/single.service \ |
231 | units/fedora/plymouth-quit.service \ | |
0278dfeb LP |
232 | units/fedora/plymouth-reboot.service \ |
233 | units/fedora/plymouth-poweroff.service \ | |
234 | units/fedora/plymouth-halt.service | |
5e6afdd3 LP |
235 | endif |
236 | ||
ad206afc MB |
237 | if TARGET_DEBIAN |
238 | dist_systemunit_DATA += \ | |
239 | units/debian/halt.service \ | |
240 | units/debian/killall.service \ | |
241 | units/debian/poweroff.service \ | |
f10814d9 | 242 | units/debian/reboot.service \ |
a5dc0a45 MB |
243 | units/debian/fsck.target \ |
244 | units/debian/umountfs.service \ | |
245 | units/debian/umountnfs.service \ | |
246 | units/debian/umountroot.service | |
ad206afc MB |
247 | endif |
248 | ||
65b0095b KS |
249 | if TARGET_SUSE |
250 | dist_systemunit_DATA += \ | |
251 | units/suse/halt.service \ | |
252 | units/suse/poweroff.service \ | |
922cc001 LP |
253 | units/suse/reboot.service \ |
254 | units/suse/fsck.target | |
65b0095b KS |
255 | endif |
256 | ||
ea2d9ed4 MAP |
257 | if TARGET_GENTOO |
258 | dist_systemunit_DATA += \ | |
259 | units/gentoo/halt.service \ | |
260 | units/gentoo/killall.service \ | |
261 | units/gentoo/poweroff.service \ | |
262 | units/gentoo/reboot.service \ | |
263 | units/gentoo/xdm.service | |
264 | endif | |
265 | ||
1ebdf2d8 TG |
266 | if TARGET_ARCH |
267 | dist_systemunit_DATA += \ | |
268 | units/arch/sysinit.service \ | |
269 | units/arch/rc-local.service \ | |
270 | units/arch/halt.service \ | |
271 | units/arch/poweroff.service \ | |
272 | units/arch/reboot.service | |
273 | endif | |
274 | ||
240a3a85 LP |
275 | dist_doc_DATA = \ |
276 | README \ | |
795750ca LP |
277 | LICENSE \ |
278 | DISTRO_PORTING \ | |
240a3a85 LP |
279 | src/sd-daemon.h \ |
280 | src/sd-daemon.c | |
281 | ||
8c6db833 LP |
282 | pkgconfigdata_DATA = \ |
283 | systemd.pc | |
284 | ||
139be57d LP |
285 | noinst_LTLIBRARIES = \ |
286 | libsystemd-basic.la \ | |
287 | libsystemd-core.la | |
288 | ||
139be57d | 289 | libsystemd_basic_la_SOURCES = \ |
e99e38bb | 290 | src/util.c \ |
e51bc1a2 | 291 | src/label.c \ |
e99e38bb LP |
292 | src/hashmap.c \ |
293 | src/set.c \ | |
294 | src/strv.c \ | |
295 | src/conf-parser.c \ | |
296 | src/socket-util.c \ | |
297 | src/log.c \ | |
298 | src/ratelimit.c | |
47be870b | 299 | |
4927fcae LP |
300 | libsystemd_basic_la_CFLAGS = \ |
301 | $(AM_CFLAGS) \ | |
302 | $(SELINUX_CFLAGS) | |
303 | ||
304 | libsystemd_basic_la_LIBADD = \ | |
305 | $(SELINUX_LIBS) | |
306 | ||
139be57d | 307 | libsystemd_core_la_SOURCES = \ |
e99e38bb LP |
308 | src/unit.c \ |
309 | src/job.c \ | |
310 | src/manager.c \ | |
84e3543e | 311 | src/path-lookup.c \ |
e99e38bb LP |
312 | src/load-fragment.c \ |
313 | src/service.c \ | |
314 | src/automount.c \ | |
315 | src/mount.c \ | |
316 | src/swap.c \ | |
317 | src/device.c \ | |
318 | src/target.c \ | |
319 | src/snapshot.c \ | |
320 | src/socket.c \ | |
321 | src/timer.c \ | |
01f78473 | 322 | src/path.c \ |
e99e38bb LP |
323 | src/load-dropin.c \ |
324 | src/execute.c \ | |
d06dacd0 | 325 | src/exit-status.c \ |
e99e38bb LP |
326 | src/dbus.c \ |
327 | src/dbus-manager.c \ | |
328 | src/dbus-unit.c \ | |
329 | src/dbus-job.c \ | |
330 | src/dbus-service.c \ | |
331 | src/dbus-socket.c \ | |
871d7de4 | 332 | src/dbus-timer.c \ |
e99e38bb LP |
333 | src/dbus-target.c \ |
334 | src/dbus-mount.c \ | |
335 | src/dbus-automount.c \ | |
336 | src/dbus-swap.c \ | |
337 | src/dbus-snapshot.c \ | |
338 | src/dbus-device.c \ | |
339 | src/dbus-execute.c \ | |
01f78473 | 340 | src/dbus-path.c \ |
e99e38bb LP |
341 | src/cgroup.c \ |
342 | src/mount-setup.c \ | |
343 | src/hostname-setup.c \ | |
344 | src/loopback-setup.c \ | |
11c3a4ee | 345 | src/kmod-setup.c \ |
72bca11b | 346 | src/locale-setup.c \ |
e99e38bb LP |
347 | src/specifier.c \ |
348 | src/unit-name.c \ | |
349 | src/fdset.c \ | |
0213c3f8 | 350 | src/namespace.c \ |
8c6db833 LP |
351 | src/tcpwrap.c \ |
352 | src/cgroup-util.c | |
47be870b | 353 | |
139be57d LP |
354 | libsystemd_core_la_CFLAGS = \ |
355 | $(AM_CFLAGS) \ | |
356 | $(DBUS_CFLAGS) \ | |
4927fcae LP |
357 | $(UDEV_CFLAGS) \ |
358 | $(LIBWRAP_CFLAGS) \ | |
359 | $(PAM_CFLAGS) \ | |
360 | $(AUDIT_CFLAGS) | |
139be57d LP |
361 | |
362 | libsystemd_core_la_LIBADD = \ | |
363 | libsystemd-basic.la \ | |
364 | $(DBUS_LIBS) \ | |
365 | $(UDEV_LIBS) \ | |
139be57d | 366 | $(LIBWRAP_LIBS) \ |
7a58bfa4 | 367 | $(PAM_LIBS) \ |
4927fcae | 368 | $(AUDIT_LIBS) |
139be57d | 369 | |
9a1ac7b9 LP |
370 | # This is needed because automake is buggy in how it generates the |
371 | # rules for C programs, but not Vala programs. We therefore can't | |
372 | # list the .h files as dependencies if we want make dist to work. | |
373 | ||
462b33e9 | 374 | EXTRA_DIST += \ |
139be57d LP |
375 | ${libsystemd_basic_la_SOURCES:.c=.h} \ |
376 | ${libsystemd_core_la_SOURCES:.c=.h} \ | |
e99e38bb LP |
377 | src/macro.h \ |
378 | src/ioprio.h \ | |
379 | src/missing.h \ | |
380 | src/list.h \ | |
381 | src/securebits.h \ | |
382 | src/linux/auto_dev-ioctl.h \ | |
383 | src/initreq.h \ | |
514f4ef5 | 384 | src/sd-daemon.h \ |
9a1ac7b9 | 385 | src/special.h \ |
398ef8ba | 386 | src/dbus-common.h \ |
ab35fb1b | 387 | src/bus-errors.h \ |
cd6d0a45 | 388 | src/cgroup-show.h \ |
302e27c8 | 389 | src/utmp-wtmp.h \ |
f6144808 LP |
390 | src/build.h \ |
391 | src/shutdownd.h | |
6f6083dc LP |
392 | |
393 | MANPAGES = \ | |
160cd5c9 | 394 | man/systemd.1 \ |
6f6083dc LP |
395 | man/systemctl.1 \ |
396 | man/systemadm.1 \ | |
fa776d8e | 397 | man/systemd-cgls.1 \ |
c5abba08 | 398 | man/systemd-notify.1 \ |
f9378423 LP |
399 | man/sd_notify.3 \ |
400 | man/sd_booted.3 \ | |
401 | man/sd_listen_fds.3 \ | |
402 | man/sd_is_fifo.3 \ | |
6f6083dc LP |
403 | man/systemd.unit.5 \ |
404 | man/systemd.service.5 \ | |
1f812fea | 405 | man/systemd.socket.5 \ |
cdb788e4 | 406 | man/systemd.mount.5 \ |
65232ea7 | 407 | man/systemd.automount.5 \ |
e0cabd4b | 408 | man/systemd.swap.5 \ |
11fcc3ab | 409 | man/systemd.timer.5 \ |
b36b082c | 410 | man/systemd.path.5 \ |
da49e9ab | 411 | man/systemd.target.5 \ |
eec575d8 | 412 | man/systemd.device.5 \ |
b2c20dd9 | 413 | man/systemd.snapshot.5 \ |
dd1eb43b | 414 | man/systemd.exec.5 \ |
6f6083dc | 415 | man/daemon.7 \ |
359957ee LP |
416 | man/sd-daemon.7 \ |
417 | man/runlevel.8 \ | |
160cd5c9 LP |
418 | man/telinit.8 \ |
419 | man/halt.8 \ | |
420 | man/shutdown.8 \ | |
f3e219a2 LP |
421 | man/pam_systemd.8 \ |
422 | man/systemd.conf.5 | |
6f6083dc LP |
423 | |
424 | MANPAGES_ALIAS = \ | |
425 | man/reboot.8 \ | |
426 | man/poweroff.8 \ | |
427 | man/sd_is_socket.3 \ | |
428 | man/sd_is_socket_unix.3 \ | |
429 | man/sd_is_socket_inet.3 \ | |
430 | man/sd_notifyf.3 \ | |
431 | man/init.1 | |
432 | ||
433 | man/reboot.8: man/halt.8 | |
434 | man/poweroff.8: man/halt.8 | |
435 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
436 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
437 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
438 | man/sd_notifyf.3: man/sd_notify.3 | |
439 | man/init.1: man/systemd.1 | |
440 | ||
441 | dist_man_MANS = \ | |
442 | $(MANPAGES) \ | |
443 | $(MANPAGES_ALIAS) | |
9f2c5942 LP |
444 | |
445 | nodist_man_MANS = \ | |
9f235308 | 446 | man/systemd.special.7 |
d1ab0ca0 | 447 | |
6f6083dc LP |
448 | XML_FILES = \ |
449 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
450 | ||
451 | XML_IN_FILES = \ | |
452 | ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}} | |
453 | ||
9f2c5942 | 454 | dist_noinst_DATA = \ |
6f6083dc | 455 | ${XML_FILES:.xml=.html} |
d1ab0ca0 | 456 | |
9f2c5942 | 457 | nodist_noinst_DATA = \ |
6f6083dc | 458 | ${XML_IN_FILES:.xml.in=.html} |
d1ab0ca0 LP |
459 | |
460 | EXTRA_DIST += \ | |
6f6083dc LP |
461 | $(XML_FILES) \ |
462 | $(XML_IN_FILES) \ | |
463 | ${nodist_man_MANS:=.in} \ | |
464 | ${XML_IN_FILES:.xml.in=.html.in} | |
d1ab0ca0 | 465 | |
47be870b | 466 | systemd_SOURCES = \ |
e99e38bb | 467 | src/main.c |
47be870b | 468 | |
10e87ee7 LP |
469 | systemd_CFLAGS = \ |
470 | $(AM_CFLAGS) \ | |
47be870b | 471 | $(DBUS_CFLAGS) \ |
35d2e7ec | 472 | $(UDEV_CFLAGS) |
47be870b LP |
473 | |
474 | systemd_LDADD = \ | |
139be57d | 475 | libsystemd-core.la |
47be870b LP |
476 | |
477 | test_engine_SOURCES = \ | |
e99e38bb | 478 | src/test-engine.c |
47be870b | 479 | |
10e87ee7 | 480 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
481 | test_engine_LDADD = $(systemd_LDADD) |
482 | ||
483 | test_job_type_SOURCES = \ | |
e1d680ad | 484 | src/test-job-type.c |
47be870b | 485 | |
10e87ee7 | 486 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
487 | test_job_type_LDADD = $(systemd_LDADD) |
488 | ||
15ae422b | 489 | test_ns_SOURCES = \ |
139be57d | 490 | src/test-ns.c |
15ae422b | 491 | |
10e87ee7 | 492 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
493 | test_ns_LDADD = $(systemd_LDADD) |
494 | ||
af5bc85d | 495 | test_loopback_SOURCES = \ |
e99e38bb LP |
496 | src/test-loopback.c \ |
497 | src/loopback-setup.c | |
af5bc85d | 498 | |
139be57d LP |
499 | test_loopback_LDADD = \ |
500 | libsystemd-basic.la | |
501 | ||
e5907703 LP |
502 | test_hostname_SOURCES = \ |
503 | src/test-hostname.c \ | |
504 | src/hostname-setup.c | |
505 | ||
506 | test_hostname_LDADD = \ | |
507 | libsystemd-basic.la | |
508 | ||
8c47c732 | 509 | test_daemon_SOURCES = \ |
8c47c732 LP |
510 | src/test-daemon.c \ |
511 | src/sd-daemon.c | |
af5bc85d | 512 | |
139be57d LP |
513 | test_daemon_LDADD = \ |
514 | libsystemd-basic.la | |
515 | ||
8c6db833 LP |
516 | test_cgroup_SOURCES = \ |
517 | src/test-cgroup.c \ | |
518 | src/cgroup-util.c | |
519 | ||
520 | test_cgroup_CFLAGS = \ | |
35d2e7ec | 521 | $(AM_CFLAGS) |
8c6db833 LP |
522 | |
523 | test_cgroup_LDADD = \ | |
35d2e7ec | 524 | libsystemd-basic.la |
8c6db833 | 525 | |
c24eb49e LP |
526 | test_env_replace_SOURCES = \ |
527 | src/test-env-replace.c | |
528 | ||
529 | test_env_replace_CFLAGS = \ | |
530 | $(AM_CFLAGS) | |
531 | ||
532 | test_env_replace_LDADD = \ | |
533 | libsystemd-basic.la | |
534 | ||
47be870b | 535 | systemd_logger_SOURCES = \ |
e99e38bb | 536 | src/logger.c \ |
0213c3f8 LP |
537 | src/sd-daemon.c \ |
538 | src/tcpwrap.c | |
539 | ||
540 | systemd_logger_LDADD = \ | |
139be57d | 541 | libsystemd-basic.la \ |
0213c3f8 | 542 | $(LIBWRAP_LIBS) |
47be870b | 543 | |
0b7964b8 | 544 | systemd_initctl_SOURCES = \ |
e99e38bb | 545 | src/initctl.c \ |
a822056b LP |
546 | src/sd-daemon.c \ |
547 | src/dbus-common.c | |
0b7964b8 | 548 | |
10e87ee7 LP |
549 | systemd_initctl_CFLAGS = \ |
550 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
551 | $(DBUS_CFLAGS) |
552 | ||
553 | systemd_initctl_LDADD = \ | |
139be57d | 554 | libsystemd-basic.la \ |
0b7964b8 LP |
555 | $(DBUS_LIBS) |
556 | ||
4927fcae LP |
557 | systemd_update_utmp_SOURCES = \ |
558 | src/update-utmp.c \ | |
559 | src/dbus-common.c \ | |
560 | src/utmp-wtmp.c | |
561 | ||
562 | systemd_update_utmp_CFLAGS = \ | |
563 | $(AM_CFLAGS) \ | |
564 | $(DBUS_CFLAGS) \ | |
565 | $(AUDIT_CFLAGS) | |
566 | ||
567 | systemd_update_utmp_LDADD = \ | |
568 | libsystemd-basic.la \ | |
569 | $(DBUS_LIBS) \ | |
570 | $(AUDIT_LIBS) | |
571 | ||
ca2cab5d LP |
572 | systemd_random_seed_SOURCES = \ |
573 | src/random-seed.c | |
574 | ||
575 | systemd_random_seed_CFLAGS = \ | |
576 | $(AM_CFLAGS) | |
577 | ||
578 | systemd_random_seed_LDADD = \ | |
579 | libsystemd-basic.la | |
580 | ||
f6144808 | 581 | systemd_shutdownd_SOURCES = \ |
9be9828c | 582 | src/utmp-wtmp.c \ |
f6144808 LP |
583 | src/sd-daemon.c \ |
584 | src/shutdownd.c | |
585 | ||
586 | systemd_shutdownd_CFLAGS = \ | |
587 | $(AM_CFLAGS) | |
588 | ||
589 | systemd_shutdownd_LDADD = \ | |
590 | libsystemd-basic.la | |
591 | ||
b2423f1f LP |
592 | systemd_modules_load_SOURCES = \ |
593 | src/modules-load.c | |
594 | ||
595 | systemd_modules_load_CFLAGS = \ | |
596 | $(AM_CFLAGS) | |
597 | ||
598 | systemd_modules_load_LDADD = \ | |
599 | libsystemd-basic.la | |
600 | ||
97c4a07d LP |
601 | systemd_vconsole_setup_SOURCES = \ |
602 | src/vconsole-setup.c | |
603 | ||
604 | systemd_vconsole_setup_CFLAGS = \ | |
605 | $(AM_CFLAGS) | |
606 | ||
607 | systemd_vconsole_setup_LDADD = \ | |
608 | libsystemd-basic.la | |
609 | ||
449ddb2d LP |
610 | systemd_remount_api_vfs_SOURCES = \ |
611 | src/remount-api-vfs.c \ | |
612 | src/mount-setup.c | |
613 | ||
614 | systemd_remount_api_vfs_CFLAGS = \ | |
615 | $(AM_CFLAGS) | |
616 | ||
617 | systemd_remount_api_vfs_LDADD = \ | |
618 | libsystemd-basic.la | |
619 | ||
8e274523 | 620 | systemd_cgroups_agent_SOURCES = \ |
3c661fad LP |
621 | src/cgroups-agent.c \ |
622 | src/dbus-common.c | |
8e274523 | 623 | |
10e87ee7 LP |
624 | systemd_cgroups_agent_CFLAGS = \ |
625 | $(AM_CFLAGS) \ | |
8e274523 LP |
626 | $(DBUS_CFLAGS) |
627 | ||
628 | systemd_cgroups_agent_LDADD = \ | |
139be57d | 629 | libsystemd-basic.la \ |
8e274523 LP |
630 | $(DBUS_LIBS) |
631 | ||
addab137 LP |
632 | systemd_kmsg_syslogd_SOURCES = \ |
633 | src/kmsg-syslogd.c \ | |
634 | src/sd-daemon.c \ | |
635 | src/fdset.c | |
636 | ||
637 | systemd_kmsg_syslogd_CFLAGS = \ | |
638 | $(AM_CFLAGS) | |
639 | ||
640 | systemd_kmsg_syslogd_LDADD = \ | |
641 | libsystemd-basic.la | |
642 | ||
7e4249b9 LP |
643 | systemctl_SOURCES = \ |
644 | src/systemctl.c \ | |
9a1ac7b9 | 645 | src/utmp-wtmp.c \ |
ab35fb1b | 646 | src/dbus-common.c \ |
ee5762e3 LP |
647 | src/path-lookup.c \ |
648 | src/sd-daemon.c \ | |
c6c18be3 | 649 | src/cgroup-show.c \ |
d06dacd0 LP |
650 | src/cgroup-util.c \ |
651 | src/exit-status.c | |
139be57d LP |
652 | |
653 | systemctl_CFLAGS = \ | |
654 | $(AM_CFLAGS) \ | |
35d2e7ec | 655 | $(DBUS_CFLAGS) |
7e4249b9 | 656 | |
139be57d LP |
657 | systemctl_LDADD = \ |
658 | libsystemd-basic.la \ | |
35d2e7ec | 659 | $(DBUS_LIBS) |
7e4249b9 | 660 | |
4a2a8b5a LP |
661 | systemd_notify_SOURCES = \ |
662 | src/notify.c \ | |
139be57d LP |
663 | src/sd-daemon.c |
664 | ||
665 | systemd_notify_LDADD = \ | |
666 | libsystemd-basic.la | |
4a2a8b5a | 667 | |
fa776d8e | 668 | systemd_cgls_SOURCES = \ |
d04247cf | 669 | src/cgls.c \ |
c6c18be3 LP |
670 | src/cgroup-show.c \ |
671 | src/cgroup-util.c | |
fa776d8e LP |
672 | |
673 | systemd_cgls_CFLAGS = \ | |
35d2e7ec | 674 | $(AM_CFLAGS) |
c6c18be3 LP |
675 | |
676 | systemd_cgls_LDADD = \ | |
35d2e7ec | 677 | libsystemd-basic.la |
fa776d8e | 678 | |
47be870b | 679 | systemadm_SOURCES = \ |
e99e38bb LP |
680 | src/systemadm.vala \ |
681 | src/systemd-interfaces.vala | |
47be870b | 682 | |
10e87ee7 LP |
683 | systemadm_CFLAGS = \ |
684 | $(AM_CFLAGS) \ | |
685 | $(DBUSGLIB_CFLAGS) \ | |
686 | $(GTK_CFLAGS) \ | |
687 | -Wno-unused-variable \ | |
688 | -Wno-unused-function \ | |
689 | -Wno-shadow \ | |
690 | -Wno-format-nonliteral | |
691 | ||
692 | systemadm_VALAFLAGS = \ | |
693 | --pkg=dbus-glib-1 \ | |
694 | --pkg=posix \ | |
695 | --pkg=gtk+-2.0 \ | |
696 | -g | |
697 | ||
139be57d LP |
698 | systemadm_LDADD = \ |
699 | $(DBUSGLIB_LIBS) \ | |
700 | $(GTK_LIBS) | |
c1e1601e | 701 | |
8c6db833 LP |
702 | pam_systemd_la_SOURCES = \ |
703 | src/pam-module.c \ | |
704 | src/cgroup-util.c \ | |
705 | src/sd-daemon.c | |
706 | ||
707 | pam_systemd_la_CFLAGS = \ | |
35d2e7ec | 708 | $(AM_CFLAGS) |
8c6db833 LP |
709 | -fvisibility=hidden |
710 | ||
711 | pam_systemd_la_LDFLAGS = \ | |
712 | -module \ | |
713 | -export-dynamic \ | |
714 | -avoid-version \ | |
715 | -shared \ | |
716 | -export-symbols-regex '^pam_sm_.*' | |
717 | ||
718 | pam_systemd_la_LIBADD = \ | |
719 | libsystemd-basic.la \ | |
35d2e7ec | 720 | $(PAM_LIBS) |
8c6db833 | 721 | |
5e6afdd3 | 722 | SED_PROCESS = \ |
a00e4879 | 723 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
1136a371 | 724 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5e6afdd3 | 725 | -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ |
1136a371 | 726 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
8c6db833 LP |
727 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ |
728 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
729 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ | |
730 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ | |
731 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
732 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
733 | -e 's,@prefix\@,$(prefix),g' \ | |
2d02719c | 734 | < $< > $@ |
70fcff31 | 735 | |
9f2c5942 | 736 | units/%: units/%.in Makefile |
5e6afdd3 LP |
737 | $(SED_PROCESS) |
738 | ||
2a3d6294 | 739 | man/%: man/%.in Makefile |
5e6afdd3 LP |
740 | $(SED_PROCESS) |
741 | ||
8c6db833 LP |
742 | %.pc: %.pc.in Makefile |
743 | $(SED_PROCESS) | |
744 | ||
fb1bd35a | 745 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 746 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 747 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ |
fb1bd35a LP |
748 | |
749 | M4_PROCESS_SESSION = \ | |
a00e4879 | 750 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 751 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ |
5e6afdd3 | 752 | |
9f2c5942 | 753 | units/%: units/%.m4 Makefile |
fb1bd35a | 754 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 755 | |
9f2c5942 | 756 | units/session/%: units/%.m4 Makefile |
fb1bd35a | 757 | $(M4_PROCESS_SESSION) |
a7b6f8e5 | 758 | |
c1e1601e | 759 | CLEANFILES = \ |
6f6083dc LP |
760 | $(nodist_systemunit_DATA) \ |
761 | $(nodist_sessionunit_DATA) \ | |
762 | $(nodist_man_MANS) \ | |
763 | ${XML_IN_FILES:.xml.in=.html} \ | |
764 | $(pkgconfigdata_DATA) | |
4697132b | 765 | |
42e39f0b LP |
766 | if HAVE_VALAC |
767 | CLEANFILES += \ | |
6f6083dc | 768 | ${systemadm_SOURCES:.vala=.c} |
42e39f0b LP |
769 | endif |
770 | ||
c3bd7322 | 771 | if HAVE_XSLTPROC |
c6365917 LP |
772 | XSLTPROC_FLAGS = \ |
773 | --nonet \ | |
774 | --param funcsynopsis.style "'ansi'" | |
775 | ||
9f2c5942 | 776 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 777 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 778 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
d1ab0ca0 | 779 | |
9f2c5942 | 780 | XSLTPROC_PROCESS_MAN_IN = \ |
a00e4879 | 781 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 782 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ |
9f2c5942 LP |
783 | mv ${@:.in=} $@ |
784 | ||
785 | XSLTPROC_PROCESS_HTML = \ | |
a00e4879 | 786 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 787 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< |
d1ab0ca0 | 788 | |
9f2c5942 | 789 | XSLTPROC_PROCESS_HTML_IN = \ |
a00e4879 | 790 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 791 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \ |
9f2c5942 LP |
792 | mv ${@:.in=} $@ |
793 | ||
6f6083dc | 794 | man/%.1: man/%.xml |
f9378423 LP |
795 | $(XSLTPROC_PROCESS_MAN) |
796 | ||
6f6083dc | 797 | man/%.1.in: man/%.xml.in |
f9378423 LP |
798 | $(XSLTPROC_PROCESS_MAN) |
799 | ||
6f6083dc | 800 | man/%.3: man/%.xml |
359957ee LP |
801 | $(XSLTPROC_PROCESS_MAN) |
802 | ||
6f6083dc | 803 | man/%.3.in: man/%.xml.in |
359957ee LP |
804 | $(XSLTPROC_PROCESS_MAN) |
805 | ||
9f2c5942 LP |
806 | man/%.5: man/%.xml |
807 | $(XSLTPROC_PROCESS_MAN) | |
808 | ||
809 | man/%.5.in: man/%.xml.in | |
810 | $(XSLTPROC_PROCESS_MAN) | |
811 | ||
812 | man/%.7: man/%.xml | |
813 | $(XSLTPROC_PROCESS_MAN) | |
814 | ||
815 | man/%.7.in: man/%.xml.in | |
816 | $(XSLTPROC_PROCESS_MAN_IN) | |
817 | ||
f9378423 LP |
818 | man/%.8: man/%.xml |
819 | $(XSLTPROC_PROCESS_MAN) | |
820 | ||
821 | man/%.8.in: man/%.xml.in | |
822 | $(XSLTPROC_PROCESS_MAN_IN) | |
823 | ||
9f2c5942 LP |
824 | man/%.html: man/%.xml |
825 | $(XSLTPROC_PROCESS_HTML) | |
826 | ||
827 | man/%.html.in: man/%.xml.in | |
828 | $(XSLTPROC_PROCESS_HTML_IN) | |
829 | ||
d1ab0ca0 LP |
830 | CLEANFILES += \ |
831 | $(dist_man_MANS) \ | |
6f6083dc LP |
832 | ${nodist_man_MANS:=.in} \ |
833 | ${XML_FILES:.xml=.html} \ | |
834 | ${XML_IN_FILES:.xml.in=.html.in} | |
c3bd7322 | 835 | endif |
d1ab0ca0 | 836 | |
4288f619 | 837 | org.freedesktop.systemd1.%.xml: systemd |
4627d396 | 838 | $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@ |
4288f619 | 839 | |
6f6083dc LP |
840 | CLEANFILES += \ |
841 | $(dbusinterface_DATA) | |
4288f619 | 842 | |
4697132b | 843 | install-data-hook: |
64c1b5bf | 844 | $(MKDIR_P) -m 0755 \ |
43aa226d LP |
845 | $(DESTDIR)$(systemunitdir) \ |
846 | $(DESTDIR)$(sessionunitdir) \ | |
5e6afdd3 | 847 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
f92a18f5 | 848 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants \ |
cd6d0a45 LP |
849 | $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ |
850 | $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \ | |
851 | $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \ | |
852 | $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \ | |
853 | $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \ | |
854 | $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \ | |
64c1b5bf | 855 | $(DESTDIR)$(pkgsysconfdir)/system \ |
5e6afdd3 LP |
856 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
857 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ | |
858 | $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \ | |
64c1b5bf | 859 | $(DESTDIR)$(pkgsysconfdir)/session \ |
e82e442b | 860 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
e9da3678 LP |
861 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
862 | rm -f session && \ | |
5e6afdd3 LP |
863 | $(LN_S) $(pkgsysconfdir)/session session ) |
864 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ | |
a145090c | 865 | rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \ |
5e6afdd3 | 866 | $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ |
a145090c LP |
867 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \ |
868 | $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket ) | |
cd6d0a45 LP |
869 | ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \ |
870 | rm -f systemd-update-utmp-runlevel.service && \ | |
871 | $(LN_S) ../systemd-update-utmp-runlevel.service ) | |
872 | ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \ | |
873 | rm -f systemd-update-utmp-runlevel.service && \ | |
874 | $(LN_S) ../systemd-update-utmp-runlevel.service ) | |
875 | ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \ | |
876 | rm -f systemd-update-utmp-runlevel.service && \ | |
877 | $(LN_S) ../systemd-update-utmp-runlevel.service ) | |
878 | ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \ | |
879 | rm -f systemd-update-utmp-runlevel.service && \ | |
880 | $(LN_S) ../systemd-update-utmp-runlevel.service ) | |
881 | ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \ | |
882 | rm -f systemd-update-utmp-runlevel.service && \ | |
883 | $(LN_S) ../systemd-update-utmp-runlevel.service ) | |
884 | ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ | |
885 | rm -f systemd-update-utmp-shutdown.service && \ | |
886 | $(LN_S) ../systemd-update-utmp-shutdown.service ) | |
70449379 | 887 | ( cd $(DESTDIR)$(sessionunitdir) && \ |
da78e1b4 | 888 | rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \ |
8c4a3079 LP |
889 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
890 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
891 | $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ | |
da78e1b4 LP |
892 | $(LN_S) $(systemunitdir)/swap.target swap.target && \ |
893 | $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ | |
894 | $(LN_S) $(systemunitdir)/printer.target printer.target) | |
5e6afdd3 | 895 | ( cd $(DESTDIR)$(systemunitdir) && \ |
c88f64bd | 896 | rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \ |
5e6afdd3 LP |
897 | $(LN_S) poweroff.target runlevel0.target && \ |
898 | $(LN_S) rescue.target runlevel1.target && \ | |
c88f64bd LP |
899 | $(LN_S) multi-user.target runlevel2.target && \ |
900 | $(LN_S) multi-user.target runlevel3.target && \ | |
901 | $(LN_S) multi-user.target runlevel4.target && \ | |
902 | $(LN_S) graphical.target runlevel5.target && \ | |
5e6afdd3 LP |
903 | $(LN_S) reboot.target runlevel6.target ) |
904 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
905 | rm -f default.target ctrl-alt-del.target kbrequest.target && \ | |
906 | $(LN_S) $(systemunitdir)/graphical.target default.target && \ | |
907 | $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \ | |
c88f64bd | 908 | $(LN_S) $(systemunitdir)/rescue.target kbrequest.target ) |
5e6afdd3 | 909 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ |
b2bb3dbe | 910 | rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ |
5e6afdd3 LP |
911 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ |
912 | $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ | |
913 | $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ | |
914 | $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ | |
915 | $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ | |
b2bb3dbe | 916 | $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) |
5e6afdd3 | 917 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
f92a18f5 LP |
918 | rm -f getty.target remote-fs.target && \ |
919 | $(LN_S) $(systemunitdir)/getty.target getty.target && \ | |
920 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) | |
921 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ | |
6d526de2 LP |
922 | rm -f dev-hugepages.automount \ |
923 | dev-mqueue.automount \ | |
924 | proc-sys-fs-binfmt_misc.automount \ | |
925 | sys-kernel-debug.automount \ | |
6d526de2 | 926 | sys-kernel-security.automount && \ |
670802d4 LP |
927 | $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \ |
928 | $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \ | |
929 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \ | |
6d526de2 | 930 | $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \ |
8c4a3079 | 931 | $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount ) |
d122948d LP |
932 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
933 | rm -f org.freedesktop.systemd1.service && \ | |
934 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
5e6afdd3 | 935 | if TARGET_FEDORA |
a3723b97 | 936 | $(MKDIR_P) -m 0755 \ |
f057408c | 937 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ |
3cc144eb LP |
938 | $(DESTDIR)$(systemunitdir)/reboot.target.wants \ |
939 | $(DESTDIR)$(systemunitdir)/poweroff.target.wants \ | |
940 | $(DESTDIR)$(systemunitdir)/halt.target.wants \ | |
941 | $(DESTDIR)$(systemunitdir)/rescue.target.wants \ | |
942 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants | |
1e287fe3 LP |
943 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
944 | rm -f display-manager.service && \ | |
945 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 946 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
af65a091 | 947 | rm -f prefdm.service && \ |
83698d60 | 948 | $(LN_S) $(systemunitdir)/prefdm.service prefdm.service ) |
5e6afdd3 | 949 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
3cc144eb LP |
950 | rm -f rc-local.service && \ |
951 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
f057408c LP |
952 | ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \ |
953 | rm -f single.service && \ | |
954 | $(LN_S) $(systemunitdir)/single.service single.service ) | |
3cc144eb LP |
955 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
956 | rm -f plymouth-quit.service && \ | |
957 | $(LN_S) ../plymouth-quit.service plymouth-quit.service ) | |
958 | ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \ | |
0278dfeb | 959 | rm -f plymouth-reboot.service && \ |
3cc144eb LP |
960 | $(LN_S) ../plymouth-reboot.service plymouth-reboot.service ) |
961 | ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \ | |
0278dfeb | 962 | rm -f plymouth-poweroff.service && \ |
3cc144eb LP |
963 | $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service ) |
964 | ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \ | |
0278dfeb | 965 | rm -f plymouth-halt.service && \ |
3cc144eb | 966 | $(LN_S) ../plymouth-halt.service plymouth-halt.service ) |
5e6afdd3 LP |
967 | ( cd $(DESTDIR)$(systemunitdir) && \ |
968 | rm -f local.service && \ | |
969 | $(LN_S) rc-local.service local.service ) | |
a3723b97 | 970 | ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \ |
1afaf573 | 971 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) |
5e6afdd3 | 972 | endif |
f306f4c4 MAP |
973 | if TARGET_GENTOO |
974 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
975 | rm -f display-manager.service && \ | |
976 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
977 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
83698d60 LP |
978 | rm -f xdm.service && \ |
979 | $(LN_S) $(systemunitdir)/xdm.service xdm.service ) | |
f306f4c4 | 980 | endif |
a5dc0a45 MB |
981 | if TARGET_DEBIAN |
982 | $(MKDIR_P) -m 0755 \ | |
983 | $(DESTDIR)$(systemunitdir)/umount.target.wants | |
984 | ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \ | |
985 | rm -f umountfs.service umountnfs.service umountroot.service && \ | |
986 | $(LN_S) ../umountfs.service umountfs.service && \ | |
987 | $(LN_S) ../umountnfs.service umountnfs.service && \ | |
988 | $(LN_S) ../umountroot.service umountroot.service ) | |
e082d6c8 MB |
989 | ( cd $(DESTDIR)$(systemunitdir) && \ |
990 | rm -f runlevel5.target && \ | |
991 | $(LN_S) multi-user.target runlevel5.target ) | |
a5dc0a45 | 992 | endif |
922cc001 | 993 | if !TARGET_SUSE |
f10814d9 | 994 | if !TARGET_DEBIAN |
922cc001 LP |
995 | ( cd $(DESTDIR)$(systemunitdir) && \ |
996 | rm -f fsck.target && \ | |
997 | $(LN_S) sysinit.target fsck.target ) | |
998 | endif | |
f10814d9 | 999 | endif |
5e6afdd3 | 1000 | |
d1ab0ca0 | 1001 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
1002 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
1003 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
1004 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
1005 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 | 1006 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
8c6db833 | 1007 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
8c4a3079 | 1008 | --with-rootdir=$$dc_install_base/$(rootdir) |
a45f61d7 LP |
1009 | |
1010 | upload: all distcheck | |
53eff0c7 | 1011 | cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/ |
a45f61d7 LP |
1012 | scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/ |
1013 | scp man/*.html tango:public/systemd-man/ | |
1014 | ||
1015 | git-tag: | |
1016 | git tag "v$(VERSION)" -m "systemd $(VERSION)" |