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