]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
update fixme
[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 \
335aa753 212 units/quotaon.service
70fcff31 213
6f6083dc 214nodist_systemunit_DATA = \
f92a18f5 215 units/sysinit.target \
5e6afdd3 216 units/getty@.service \
93a45c56 217 units/serial-getty@.service \
5e6afdd3 218 units/graphical.target \
6f6083dc 219 units/remote-fs.target \
5e6afdd3 220 units/multi-user.target \
dfac97b2 221 units/systemd-initctl.service \
a7b6f8e5 222 units/systemd-logger.service \
f6144808 223 units/systemd-shutdownd.service \
addab137 224 units/systemd-kmsg-syslogd.service \
b2423f1f 225 units/systemd-modules-load.service \
97c4a07d 226 units/systemd-vconsole-setup.service \
449ddb2d 227 units/systemd-remount-api-vfs.service \
cd6d0a45
LP
228 units/systemd-update-utmp-runlevel.service \
229 units/systemd-update-utmp-shutdown.service \
ca2cab5d
LP
230 units/systemd-random-seed-save.service \
231 units/systemd-random-seed-load.service \
4bb2357f
LP
232 units/systemd-readahead-collect.service \
233 units/systemd-readahead-replay.service \
c7b50859 234 units/systemd-readahead-done.service \
3b63d2d3
LP
235 units/systemd-tmpfiles-setup.service \
236 units/systemd-tmpfiles-clean.service \
447be155 237 units/systemd-user-sessions.service \
85ed27f6 238 units/syslog.target \
46574a5b
LP
239 units/halt.service \
240 units/poweroff.service \
241 units/reboot.service \
a9e1f5ec
LP
242 units/kexec.service \
243 units/fsck@.service \
335aa753
LP
244 units/fsck-root.service \
245 units/quotacheck.service
d1ab0ca0 246
0d26c910 247dist_sessionunit_DATA = \
85ed27f6
LP
248 units/session/default.target \
249 units/session/exit.target
0d26c910 250
6f6083dc 251nodist_sessionunit_DATA = \
a1b256b0
LP
252 units/session/remote-fs.target \
253 units/session/exit.service
fb1bd35a 254
e24067c3 255EXTRA_DIST = \
f92a18f5 256 units/sysinit.target.m4 \
5e6afdd3 257 units/getty@.service.m4 \
93a45c56 258 units/serial-getty@.service.m4 \
5e6afdd3
LP
259 units/graphical.target.m4 \
260 units/multi-user.target.m4 \
705dbf3a 261 units/remote-fs.target.m4 \
70fcff31 262 units/systemd-initctl.service.in \
70fcff31 263 units/systemd-logger.service.in \
f6144808 264 units/systemd-shutdownd.service.in \
addab137 265 units/systemd-kmsg-syslogd.service.in \
b2423f1f 266 units/systemd-modules-load.service.in \
97c4a07d 267 units/systemd-vconsole-setup.service.in \
449ddb2d 268 units/systemd-remount-api-vfs.service.in \
cd6d0a45
LP
269 units/systemd-update-utmp-runlevel.service.in \
270 units/systemd-update-utmp-shutdown.service.in \
ca2cab5d
LP
271 units/systemd-random-seed-save.service.in \
272 units/systemd-random-seed-load.service.in \
4bb2357f
LP
273 units/systemd-readahead-collect.service.in \
274 units/systemd-readahead-replay.service.in \
c7b50859 275 units/systemd-readahead-done.service.in \
3b63d2d3
LP
276 units/systemd-tmpfiles-setup.service.in \
277 units/systemd-tmpfiles-clean.service.in \
447be155 278 units/systemd-user-sessions.service.in \
a7b6f8e5 279 units/syslog.target.in \
46574a5b
LP
280 units/halt.service.in \
281 units/poweroff.service.in \
282 units/reboot.service.in \
85ed27f6 283 units/kexec.service.in \
a1b256b0 284 units/session/exit.service.in \
a9e1f5ec
LP
285 units/fsck@.service.in \
286 units/fsck-root.service.in \
335aa753 287 units/quotacheck.service.in \
64ca679e 288 systemd.pc.in
e24067c3 289
5e6afdd3
LP
290if TARGET_FEDORA
291dist_systemunit_DATA += \
5e6afdd3
LP
292 units/fedora/prefdm.service \
293 units/fedora/rc-local.service \
ddd941ed 294 units/fedora/halt-local.service \
f057408c 295 units/fedora/sysinit.service \
1310609b
LP
296 units/fedora/single.service \
297 units/fedora/plymouth-quit.service \
0278dfeb
LP
298 units/fedora/plymouth-reboot.service \
299 units/fedora/plymouth-poweroff.service \
300 units/fedora/plymouth-halt.service
5e6afdd3
LP
301endif
302
ad206afc
MB
303if TARGET_DEBIAN
304dist_systemunit_DATA += \
a5dc0a45
MB
305 units/debian/fsck.target \
306 units/debian/umountfs.service \
307 units/debian/umountnfs.service \
308 units/debian/umountroot.service
ad206afc
MB
309endif
310
65b0095b
KS
311if TARGET_SUSE
312dist_systemunit_DATA += \
922cc001 313 units/suse/fsck.target
65b0095b
KS
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 += \
323 units/arch/sysinit.service \
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 \
402 src/loopback-setup.c \
11c3a4ee 403 src/kmod-setup.c \
72bca11b 404 src/locale-setup.c \
e99e38bb
LP
405 src/specifier.c \
406 src/unit-name.c \
407 src/fdset.c \
0213c3f8 408 src/namespace.c \
8c6db833 409 src/tcpwrap.c \
52661efd
LP
410 src/cgroup-util.c \
411 src/condition.c
47be870b 412
139be57d
LP
413libsystemd_core_la_CFLAGS = \
414 $(AM_CFLAGS) \
415 $(DBUS_CFLAGS) \
4927fcae
LP
416 $(UDEV_CFLAGS) \
417 $(LIBWRAP_CFLAGS) \
418 $(PAM_CFLAGS) \
419 $(AUDIT_CFLAGS)
139be57d
LP
420
421libsystemd_core_la_LIBADD = \
422 libsystemd-basic.la \
423 $(DBUS_LIBS) \
424 $(UDEV_LIBS) \
139be57d 425 $(LIBWRAP_LIBS) \
7a58bfa4 426 $(PAM_LIBS) \
4927fcae 427 $(AUDIT_LIBS)
139be57d 428
9a1ac7b9
LP
429# This is needed because automake is buggy in how it generates the
430# rules for C programs, but not Vala programs. We therefore can't
431# list the .h files as dependencies if we want make dist to work.
432
462b33e9 433EXTRA_DIST += \
139be57d
LP
434 ${libsystemd_basic_la_SOURCES:.c=.h} \
435 ${libsystemd_core_la_SOURCES:.c=.h} \
e99e38bb
LP
436 src/macro.h \
437 src/ioprio.h \
438 src/missing.h \
439 src/list.h \
440 src/securebits.h \
441 src/linux/auto_dev-ioctl.h \
30b89475 442 src/linux/fanotify.h \
e99e38bb 443 src/initreq.h \
514f4ef5 444 src/sd-daemon.h \
d0b48809 445 src/sd-readahead.h \
9a1ac7b9 446 src/special.h \
398ef8ba 447 src/dbus-common.h \
ab35fb1b 448 src/bus-errors.h \
cd6d0a45 449 src/cgroup-show.h \
f6144808 450 src/build.h \
30b89475 451 src/shutdownd.h \
26e190cf 452 src/umount.h \
30b89475 453 src/readahead-common.h
6f6083dc
LP
454
455MANPAGES = \
160cd5c9 456 man/systemd.1 \
6f6083dc
LP
457 man/systemctl.1 \
458 man/systemadm.1 \
fa776d8e 459 man/systemd-cgls.1 \
c5abba08 460 man/systemd-notify.1 \
f9378423 461 man/sd_notify.3 \
6624768c 462 man/sd_readahead.3 \
f9378423
LP
463 man/sd_booted.3 \
464 man/sd_listen_fds.3 \
465 man/sd_is_fifo.3 \
6f6083dc
LP
466 man/systemd.unit.5 \
467 man/systemd.service.5 \
1f812fea 468 man/systemd.socket.5 \
cdb788e4 469 man/systemd.mount.5 \
65232ea7 470 man/systemd.automount.5 \
e0cabd4b 471 man/systemd.swap.5 \
11fcc3ab 472 man/systemd.timer.5 \
b36b082c 473 man/systemd.path.5 \
da49e9ab 474 man/systemd.target.5 \
eec575d8 475 man/systemd.device.5 \
b2c20dd9 476 man/systemd.snapshot.5 \
dd1eb43b 477 man/systemd.exec.5 \
6f6083dc 478 man/daemon.7 \
359957ee 479 man/sd-daemon.7 \
e62e6670 480 man/sd-readahead.7 \
359957ee 481 man/runlevel.8 \
160cd5c9
LP
482 man/telinit.8 \
483 man/halt.8 \
484 man/shutdown.8 \
f3e219a2
LP
485 man/pam_systemd.8 \
486 man/systemd.conf.5
6f6083dc
LP
487
488MANPAGES_ALIAS = \
489 man/reboot.8 \
490 man/poweroff.8 \
491 man/sd_is_socket.3 \
492 man/sd_is_socket_unix.3 \
493 man/sd_is_socket_inet.3 \
494 man/sd_notifyf.3 \
495 man/init.1
496
497man/reboot.8: man/halt.8
498man/poweroff.8: man/halt.8
499man/sd_is_socket.3: man/sd_is_fifo.3
500man/sd_is_socket_unix.3: man/sd_is_fifo.3
501man/sd_is_socket_inet.3: man/sd_is_fifo.3
502man/sd_notifyf.3: man/sd_notify.3
503man/init.1: man/systemd.1
504
505dist_man_MANS = \
506 $(MANPAGES) \
507 $(MANPAGES_ALIAS)
9f2c5942
LP
508
509nodist_man_MANS = \
9f235308 510 man/systemd.special.7
d1ab0ca0 511
6f6083dc
LP
512XML_FILES = \
513 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
514
515XML_IN_FILES = \
516 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
517
9f2c5942 518dist_noinst_DATA = \
6f6083dc 519 ${XML_FILES:.xml=.html}
d1ab0ca0 520
9f2c5942 521nodist_noinst_DATA = \
6f6083dc 522 ${XML_IN_FILES:.xml.in=.html}
d1ab0ca0
LP
523
524EXTRA_DIST += \
6f6083dc
LP
525 $(XML_FILES) \
526 $(XML_IN_FILES) \
527 ${nodist_man_MANS:=.in} \
528 ${XML_IN_FILES:.xml.in=.html.in}
d1ab0ca0 529
47be870b 530systemd_SOURCES = \
e99e38bb 531 src/main.c
47be870b 532
10e87ee7
LP
533systemd_CFLAGS = \
534 $(AM_CFLAGS) \
47be870b 535 $(DBUS_CFLAGS) \
35d2e7ec 536 $(UDEV_CFLAGS)
47be870b
LP
537
538systemd_LDADD = \
139be57d 539 libsystemd-core.la
47be870b
LP
540
541test_engine_SOURCES = \
e99e38bb 542 src/test-engine.c
47be870b 543
10e87ee7 544test_engine_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
545test_engine_LDADD = $(systemd_LDADD)
546
547test_job_type_SOURCES = \
e1d680ad 548 src/test-job-type.c
47be870b 549
10e87ee7 550test_job_type_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
551test_job_type_LDADD = $(systemd_LDADD)
552
15ae422b 553test_ns_SOURCES = \
139be57d 554 src/test-ns.c
15ae422b 555
10e87ee7 556test_ns_CFLAGS = $(systemd_CFLAGS)
15ae422b
LP
557test_ns_LDADD = $(systemd_LDADD)
558
af5bc85d 559test_loopback_SOURCES = \
e99e38bb
LP
560 src/test-loopback.c \
561 src/loopback-setup.c
af5bc85d 562
139be57d
LP
563test_loopback_LDADD = \
564 libsystemd-basic.la
565
e5907703
LP
566test_hostname_SOURCES = \
567 src/test-hostname.c \
568 src/hostname-setup.c
569
570test_hostname_LDADD = \
571 libsystemd-basic.la
572
8c47c732 573test_daemon_SOURCES = \
8c47c732
LP
574 src/test-daemon.c \
575 src/sd-daemon.c
af5bc85d 576
139be57d
LP
577test_daemon_LDADD = \
578 libsystemd-basic.la
579
8c6db833
LP
580test_cgroup_SOURCES = \
581 src/test-cgroup.c \
582 src/cgroup-util.c
583
584test_cgroup_CFLAGS = \
35d2e7ec 585 $(AM_CFLAGS)
8c6db833
LP
586
587test_cgroup_LDADD = \
35d2e7ec 588 libsystemd-basic.la
8c6db833 589
c24eb49e
LP
590test_env_replace_SOURCES = \
591 src/test-env-replace.c
592
593test_env_replace_CFLAGS = \
594 $(AM_CFLAGS)
595
596test_env_replace_LDADD = \
597 libsystemd-basic.la
598
47be870b 599systemd_logger_SOURCES = \
e99e38bb 600 src/logger.c \
0213c3f8
LP
601 src/sd-daemon.c \
602 src/tcpwrap.c
603
604systemd_logger_LDADD = \
139be57d 605 libsystemd-basic.la \
0213c3f8 606 $(LIBWRAP_LIBS)
47be870b 607
0b7964b8 608systemd_initctl_SOURCES = \
e99e38bb 609 src/initctl.c \
a822056b
LP
610 src/sd-daemon.c \
611 src/dbus-common.c
0b7964b8 612
10e87ee7
LP
613systemd_initctl_CFLAGS = \
614 $(AM_CFLAGS) \
0b7964b8
LP
615 $(DBUS_CFLAGS)
616
617systemd_initctl_LDADD = \
139be57d 618 libsystemd-basic.la \
0b7964b8
LP
619 $(DBUS_LIBS)
620
4927fcae
LP
621systemd_update_utmp_SOURCES = \
622 src/update-utmp.c \
623 src/dbus-common.c \
624 src/utmp-wtmp.c
625
626systemd_update_utmp_CFLAGS = \
627 $(AM_CFLAGS) \
628 $(DBUS_CFLAGS) \
629 $(AUDIT_CFLAGS)
630
631systemd_update_utmp_LDADD = \
632 libsystemd-basic.la \
633 $(DBUS_LIBS) \
634 $(AUDIT_LIBS)
635
ca2cab5d
LP
636systemd_random_seed_SOURCES = \
637 src/random-seed.c
638
639systemd_random_seed_CFLAGS = \
640 $(AM_CFLAGS)
641
642systemd_random_seed_LDADD = \
643 libsystemd-basic.la
644
f6144808 645systemd_shutdownd_SOURCES = \
9be9828c 646 src/utmp-wtmp.c \
f6144808
LP
647 src/sd-daemon.c \
648 src/shutdownd.c
649
650systemd_shutdownd_CFLAGS = \
651 $(AM_CFLAGS)
652
653systemd_shutdownd_LDADD = \
654 libsystemd-basic.la
655
b1b2a107
FF
656systemd_shutdown_SOURCES = \
657 src/mount-setup.c \
658 src/umount.c \
659 src/shutdown.c
660
661systemd_shutdown_CFLAGS = \
662 $(AM_CFLAGS) \
663 $(UDEV_CFLAGS)
664
665systemd_shutdown_LDADD = \
666 libsystemd-basic.la \
667 $(UDEV_LIBS)
668
b2423f1f
LP
669systemd_modules_load_SOURCES = \
670 src/modules-load.c
671
672systemd_modules_load_CFLAGS = \
673 $(AM_CFLAGS)
674
3d20ed6d 675systemd_modules_load_LDADD = \
5008d581
LP
676 libsystemd-basic.la
677
bfaf42d2
LP
678systemd_tmpfiles_SOURCES = \
679 src/tmpfiles.c
5008d581 680
bfaf42d2 681systemd_tmpfiles_CFLAGS = \
5008d581
LP
682 $(AM_CFLAGS)
683
3d20ed6d
LP
684systemd_tmpfiles_LDADD = \
685 libsystemd-basic.la
686
687systemd_fsck_SOURCES = \
688 src/fsck.c \
3d20ed6d
LP
689 src/dbus-common.c
690
691systemd_fsck_CFLAGS = \
692 $(AM_CFLAGS) \
693 $(UDEV_CFLAGS) \
694 $(DBUS_CFLAGS)
695
696systemd_fsck_LDADD = \
697 libsystemd-basic.la \
698 $(UDEV_LIBS) \
699 $(DBUS_LIBS)
700
701systemd_quotacheck_SOURCES = \
702 src/quotacheck.c
703
704systemd_quotacheck_CFLAGS = \
705 $(AM_CFLAGS)
706
707systemd_quotacheck_LDADD = \
e9278741
LP
708 libsystemd-basic.la
709
710systemd_user_sessions_SOURCES = \
711 src/user-sessions.c \
712 src/cgroup-util.c
713
714systemd_user_sessions_CFLAGS = \
715 $(AM_CFLAGS)
716
3d20ed6d 717systemd_user_sessions_LDADD = \
b2423f1f
LP
718 libsystemd-basic.la
719
97c4a07d
LP
720systemd_vconsole_setup_SOURCES = \
721 src/vconsole-setup.c
722
723systemd_vconsole_setup_CFLAGS = \
724 $(AM_CFLAGS)
725
726systemd_vconsole_setup_LDADD = \
727 libsystemd-basic.la
728
449ddb2d
LP
729systemd_remount_api_vfs_SOURCES = \
730 src/remount-api-vfs.c \
731 src/mount-setup.c
732
733systemd_remount_api_vfs_CFLAGS = \
734 $(AM_CFLAGS)
735
736systemd_remount_api_vfs_LDADD = \
737 libsystemd-basic.la
738
8e274523 739systemd_cgroups_agent_SOURCES = \
3c661fad
LP
740 src/cgroups-agent.c \
741 src/dbus-common.c
8e274523 742
10e87ee7
LP
743systemd_cgroups_agent_CFLAGS = \
744 $(AM_CFLAGS) \
8e274523
LP
745 $(DBUS_CFLAGS)
746
747systemd_cgroups_agent_LDADD = \
139be57d 748 libsystemd-basic.la \
8e274523
LP
749 $(DBUS_LIBS)
750
addab137
LP
751systemd_kmsg_syslogd_SOURCES = \
752 src/kmsg-syslogd.c \
753 src/sd-daemon.c \
754 src/fdset.c
755
756systemd_kmsg_syslogd_CFLAGS = \
757 $(AM_CFLAGS)
758
759systemd_kmsg_syslogd_LDADD = \
760 libsystemd-basic.la
761
7e4249b9
LP
762systemctl_SOURCES = \
763 src/systemctl.c \
9a1ac7b9 764 src/utmp-wtmp.c \
ab35fb1b 765 src/dbus-common.c \
ee5762e3
LP
766 src/path-lookup.c \
767 src/sd-daemon.c \
c6c18be3 768 src/cgroup-show.c \
d06dacd0 769 src/cgroup-util.c \
71fad675
LP
770 src/exit-status.c \
771 src/unit-name.c
139be57d
LP
772
773systemctl_CFLAGS = \
774 $(AM_CFLAGS) \
35d2e7ec 775 $(DBUS_CFLAGS)
7e4249b9 776
139be57d
LP
777systemctl_LDADD = \
778 libsystemd-basic.la \
35d2e7ec 779 $(DBUS_LIBS)
7e4249b9 780
4a2a8b5a
LP
781systemd_notify_SOURCES = \
782 src/notify.c \
d0b48809
LP
783 src/sd-daemon.c \
784 src/sd-readahead.c
139be57d
LP
785
786systemd_notify_LDADD = \
787 libsystemd-basic.la
4a2a8b5a 788
490aed58
LP
789systemd_ask_password_SOURCES = \
790 src/ask-password.c
791
792systemd_ask_password_LDADD = \
793 libsystemd-basic.la
794
795systemd_reply_password_SOURCES = \
796 src/reply-password.c
797
798systemd_reply_password_LDADD = \
799 libsystemd-basic.la
800
22be093f
LP
801systemd_readahead_collect_SOURCES = \
802 src/readahead-collect.c \
803 src/sd-daemon.c \
804 src/readahead-common.c
805
806systemd_readahead_collect_CFLAGS = \
807 $(UDEV_CFLAGS)
808
809systemd_readahead_collect_LDADD = \
810 libsystemd-basic.la \
811 $(UDEV_LIBS)
812
813systemd_readahead_replay_SOURCES = \
814 src/readahead-replay.c \
815 src/sd-daemon.c \
816 src/readahead-common.c
817
818systemd_readahead_replay_CFLAGS = \
819 $(UDEV_CFLAGS)
820
821systemd_readahead_replay_LDADD = \
822 libsystemd-basic.la \
823 $(UDEV_LIBS)
824
fa776d8e 825systemd_cgls_SOURCES = \
d04247cf 826 src/cgls.c \
c6c18be3
LP
827 src/cgroup-show.c \
828 src/cgroup-util.c
fa776d8e
LP
829
830systemd_cgls_CFLAGS = \
35d2e7ec 831 $(AM_CFLAGS)
c6c18be3
LP
832
833systemd_cgls_LDADD = \
35d2e7ec 834 libsystemd-basic.la
fa776d8e 835
47be870b 836systemadm_SOURCES = \
e99e38bb
LP
837 src/systemadm.vala \
838 src/systemd-interfaces.vala
47be870b 839
10e87ee7
LP
840systemadm_CFLAGS = \
841 $(AM_CFLAGS) \
842 $(DBUSGLIB_CFLAGS) \
843 $(GTK_CFLAGS) \
844 -Wno-unused-variable \
845 -Wno-unused-function \
846 -Wno-shadow \
847 -Wno-format-nonliteral
848
849systemadm_VALAFLAGS = \
850 --pkg=dbus-glib-1 \
851 --pkg=posix \
852 --pkg=gtk+-2.0 \
853 -g
854
139be57d
LP
855systemadm_LDADD = \
856 $(DBUSGLIB_LIBS) \
857 $(GTK_LIBS)
c1e1601e 858
d674a4ab
LP
859systemd_gnome_ask_password_agent_SOURCES = \
860 src/gnome-ask-password-agent.vala
490aed58 861
d674a4ab 862systemd_gnome_ask_password_agent_CFLAGS = \
490aed58
LP
863 $(AM_CFLAGS) \
864 $(DBUSGLIB_CFLAGS) \
865 $(GTK_CFLAGS) \
866 -Wno-unused-variable \
867 -Wno-unused-function \
868 -Wno-shadow \
869 -Wno-format-nonliteral
870
d674a4ab 871systemd_gnome_ask_password_agent_VALAFLAGS = \
490aed58
LP
872 --pkg=dbus-glib-1 \
873 --pkg=posix \
874 --pkg=gtk+-2.0 \
875 --pkg=linux \
876 --pkg=gio-unix-2.0 \
efb3237e 877 --pkg=libnotify \
490aed58
LP
878 -g
879
d674a4ab 880systemd_gnome_ask_password_agent_LDADD = \
490aed58
LP
881 $(DBUSGLIB_LIBS) \
882 $(GTK_LIBS)
883
ec863ba6
LP
884systemd_tty_ask_password_agent_SOURCES = \
885 src/tty-ask-password-agent.c \
886 src/utmp-wtmp.c
887
888systemd_tty_ask_password_agent_LDADD = \
889 libsystemd-basic.la
890
8c6db833
LP
891pam_systemd_la_SOURCES = \
892 src/pam-module.c \
893 src/cgroup-util.c \
894 src/sd-daemon.c
895
896pam_systemd_la_CFLAGS = \
35d2e7ec 897 $(AM_CFLAGS)
8c6db833
LP
898 -fvisibility=hidden
899
900pam_systemd_la_LDFLAGS = \
901 -module \
902 -export-dynamic \
903 -avoid-version \
904 -shared \
905 -export-symbols-regex '^pam_sm_.*'
906
907pam_systemd_la_LIBADD = \
908 libsystemd-basic.la \
35d2e7ec 909 $(PAM_LIBS)
8c6db833 910
5e6afdd3 911SED_PROCESS = \
a00e4879 912 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1136a371 913 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),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 && \
447be155
LP
1119 rm -f getty.target systemd-user-sessions.service && \
1120 $(LN_S) ../getty.target getty.target && \
1121 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
5e6afdd3 1122 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
b2bb3dbe 1123 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
5e6afdd3
LP
1124 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1125 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1126 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1127 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1128 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
b2bb3dbe 1129 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
980d8750
LP
1130 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1131 rm -f quotaon.service quotacheck.service && \
1132 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1133 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
5e6afdd3 1134 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
3e24da51 1135 rm -f remote-fs.target && \
f92a18f5 1136 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
980d8750
LP
1137 ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1138 rm -f hwclock-load.service && \
1139 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
c0a1b6e9 1140 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
6d526de2
LP
1141 rm -f dev-hugepages.automount \
1142 dev-mqueue.automount \
1143 proc-sys-fs-binfmt_misc.automount \
1144 sys-kernel-debug.automount \
f0a73e24 1145 sys-kernel-security.automount \
d3f09cf3
KS
1146 systemd-vconsole-setup.service \
1147 systemd-modules-load.service \
1148 systemd-random-seed-load.service \
3b63d2d3 1149 systemd-tmpfiles-setup.service \
f9ccc724 1150 sysctl.service \
3b63d2d3 1151 systemd-tmpfiles-clean.timer && \
670802d4
LP
1152 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1153 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1154 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
6d526de2 1155 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
f0a73e24 1156 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
45cf9716
KS
1157 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1158 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1159 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
3b63d2d3 1160 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
45cf9716 1161 $(LN_S) ../sysctl.service sysctl.service && \
3b63d2d3 1162 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
d122948d
LP
1163 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1164 rm -f org.freedesktop.systemd1.service && \
1165 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
5e6afdd3 1166if TARGET_FEDORA
a3723b97 1167 $(MKDIR_P) -m 0755 \
f057408c 1168 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
3cc144eb
LP
1169 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1170 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1171 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1172 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
ddd941ed
LP
1173 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1174 $(DESTDIR)$(systemunitdir)/final.target.wants
1e287fe3
LP
1175 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1176 rm -f display-manager.service && \
1177 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
5e6afdd3 1178 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
af65a091 1179 rm -f prefdm.service && \
83698d60 1180 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
5e6afdd3 1181 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
3cc144eb
LP
1182 rm -f rc-local.service && \
1183 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
ddd941ed
LP
1184 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1185 rm -f halt-local.service && \
1186 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
f057408c
LP
1187 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1188 rm -f single.service && \
1189 $(LN_S) $(systemunitdir)/single.service single.service )
3cc144eb
LP
1190 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1191 rm -f plymouth-quit.service && \
1192 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1193 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
0278dfeb 1194 rm -f plymouth-reboot.service && \
3cc144eb
LP
1195 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1196 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
0278dfeb 1197 rm -f plymouth-poweroff.service && \
3cc144eb
LP
1198 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1199 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
0278dfeb 1200 rm -f plymouth-halt.service && \
3cc144eb 1201 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
5e6afdd3
LP
1202 ( cd $(DESTDIR)$(systemunitdir) && \
1203 rm -f local.service && \
1204 $(LN_S) rc-local.service local.service )
a3723b97 1205 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1afaf573 1206 $(LN_S) halt reboot > /dev/null 2>&1 || true )
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
a5dc0a45
MB
1216if TARGET_DEBIAN
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
922cc001 1228if !TARGET_SUSE
f10814d9 1229if !TARGET_DEBIAN
922cc001
LP
1230 ( cd $(DESTDIR)$(systemunitdir) && \
1231 rm -f fsck.target && \
1232 $(LN_S) sysinit.target fsck.target )
1233endif
f10814d9 1234endif
5e6afdd3 1235
d1ab0ca0 1236DISTCHECK_CONFIGURE_FLAGS = \
d2d12cd1
LP
1237 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1238 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1239 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1240 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
8c4a3079 1241 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
8c6db833 1242 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
8c4a3079 1243 --with-rootdir=$$dc_install_base/$(rootdir)
a45f61d7
LP
1244
1245upload: all distcheck
53eff0c7 1246 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
a45f61d7
LP
1247 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1248 scp man/*.html tango:public/systemd-man/
1249
1250git-tag:
1251 git tag "v$(VERSION)" -m "systemd $(VERSION)"
c0a1b6e9
LP
1252
1253# Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1254fedora: install
c0a1b6e9 1255 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
c0a1b6e9 1256 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount