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