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