]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
build-sys: prepare release of 43
[thirdparty/systemd.git] / Makefile.am
1 # This file is part of systemd.
2 #
3 # Copyright 2011 Lennart Poettering
4 # Copyright 2011 Kay Sievers
5 #
6 # systemd is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # systemd is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 SUBDIRS = po
22
23 LIBSYSTEMD_LOGIN_CURRENT=2
24 LIBSYSTEMD_LOGIN_REVISION=0
25 LIBSYSTEMD_LOGIN_AGE=2
26
27 LIBSYSTEMD_DAEMON_CURRENT=0
28 LIBSYSTEMD_DAEMON_REVISION=1
29 LIBSYSTEMD_DAEMON_AGE=0
30
31 LIBSYSTEMD_ID128_CURRENT=0
32 LIBSYSTEMD_ID128_REVISION=2
33 LIBSYSTEMD_ID128_AGE=0
34
35 LIBSYSTEMD_JOURNAL_CURRENT=0
36 LIBSYSTEMD_JOURNAL_REVISION=2
37 LIBSYSTEMD_JOURNAL_AGE=0
38
39 # Dirs of external packages
40 dbuspolicydir=@dbuspolicydir@
41 dbussessionservicedir=@dbussessionservicedir@
42 dbussystemservicedir=@dbussystemservicedir@
43 dbusinterfacedir=@dbusinterfacedir@
44 udevrulesdir=@udevrulesdir@
45 pamlibdir=@pamlibdir@
46 pkgconfigdatadir=$(datadir)/pkgconfig
47 pkgconfiglibdir=$(libdir)/pkgconfig
48 polkitpolicydir=$(datadir)/polkit-1/actions
49 bashcompletiondir=$(sysconfdir)/bash_completion.d
50
51 # Our own, non-special dirs
52 pkgsysconfdir=$(sysconfdir)/systemd
53 userunitdir=$(prefix)/lib/systemd/user
54 tmpfilesdir=$(prefix)/lib/tmpfiles.d
55 sysctldir=$(prefix)/lib/sysctl.d
56 usergeneratordir=$(pkglibexecdir)/user-generators
57 pkgincludedir=$(includedir)/systemd
58
59 # And these are the special ones for /
60 rootprefix=@rootprefix@
61 rootbindir=$(rootprefix)/bin
62 rootlibexecdir=$(rootprefix)/lib/systemd
63 systemgeneratordir=$(rootlibexecdir)/system-generators
64 systemshutdowndir=$(rootlibexecdir)/system-shutdown
65 systemunitdir=$(rootprefix)/lib/systemd/system
66
67 CLEANFILES =
68 EXTRA_DIST =
69 INSTALL_EXEC_HOOKS =
70 UNINSTALL_EXEC_HOOKS =
71 INSTALL_DATA_HOOKS =
72 pkginclude_HEADERS =
73 lib_LTLIBRARIES =
74 pkgconfiglib_DATA =
75 polkitpolicy_in_files =
76 dist_udevrules_DATA =
77
78 AM_CPPFLAGS = \
79 -include $(top_builddir)/config.h \
80 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
81 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
82 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
83 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
84 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
85 -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
86 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
87 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
88 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
89 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
90 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
91 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
92 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
93 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
94 -DROOTPREFIX=\"$(rootprefix)\" \
95 -DRUNTIME_DIR=\"/run\" \
96 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
97 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
98 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
99 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
100 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
101 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
102 -DX_SERVER=\"$(bindir)/X\" \
103 -I $(top_srcdir)/src \
104 -I $(top_srcdir)/src/readahead \
105 -I $(top_srcdir)/src/login \
106 -I $(top_srcdir)/src/journal \
107 -I $(top_srcdir)/src/systemd
108
109 if TARGET_GENTOO
110 AM_CPPFLAGS += \
111 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
112 -DKBD_SETFONT=\"/usr/bin/setfont\" \
113 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
114 else
115 if TARGET_ARCH
116 AM_CPPFLAGS += \
117 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
118 -DKBD_SETFONT=\"/usr/bin/setfont\" \
119 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
120 else
121 if TARGET_FRUGALWARE
122 AM_CPPFLAGS += \
123 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
124 -DKBD_SETFONT=\"/usr/bin/setfont\" \
125 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
126 else
127 if TARGET_MANDRIVA
128 AM_CPPFLAGS += \
129 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
130 -DKBD_SETFONT=\"/bin/setfont\" \
131 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
132 else
133 if TARGET_MEEGO
134 AM_CPPFLAGS += \
135 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
136 -DKBD_SETFONT=\"/bin/setfont\" \
137 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
138 else
139 if TARGET_ANGSTROM
140 AM_CPPFLAGS += \
141 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
142 -DKBD_SETFONT=\"/usr/bin/setfont\" \
143 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
144 else
145 if TARGET_MAGEIA
146 AM_CPPFLAGS += \
147 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
148 -DKBD_SETFONT=\"/bin/setfont\" \
149 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
150 else
151 AM_CPPFLAGS += \
152 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
153 -DKBD_SETFONT=\"/bin/setfont\" \
154 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
155 endif
156 endif
157 endif
158 endif
159 endif
160 endif
161 endif
162
163 rootbin_PROGRAMS = \
164 systemctl \
165 systemd-notify \
166 systemd-ask-password \
167 systemd-tty-ask-password-agent \
168 systemd-tmpfiles \
169 systemd-machine-id-setup
170
171 bin_PROGRAMS = \
172 systemd-cgls \
173 systemd-cgtop \
174 systemd-stdio-bridge \
175 systemd-nspawn
176
177 dist_bin_SCRIPTS = \
178 src/systemd-analyze
179
180 if HAVE_GTK
181 bin_PROGRAMS += \
182 systemadm \
183 systemd-gnome-ask-password-agent
184 endif
185
186 rootlibexec_PROGRAMS = \
187 systemd \
188 systemd-cgroups-agent \
189 systemd-initctl \
190 systemd-update-utmp \
191 systemd-shutdownd \
192 systemd-shutdown \
193 systemd-modules-load \
194 systemd-remount-api-vfs \
195 systemd-reply-password \
196 systemd-fsck \
197 systemd-timestamp \
198 systemd-ac-power \
199 systemd-detect-virt \
200 systemd-sysctl
201
202 systemgenerator_PROGRAMS = \
203 systemd-getty-generator
204
205 noinst_PROGRAMS = \
206 test-engine \
207 test-job-type \
208 test-ns \
209 test-loopback \
210 test-hostname \
211 test-daemon \
212 test-cgroup \
213 test-env-replace \
214 test-strv \
215 test-install
216
217 dist_pkgsysconf_DATA = \
218 src/system.conf \
219 src/user.conf
220
221 dist_dbuspolicy_DATA = \
222 src/org.freedesktop.systemd1.conf
223
224 dist_dbussystemservice_DATA = \
225 src/org.freedesktop.systemd1.service
226
227 nodist_udevrules_DATA = \
228 src/99-systemd.rules
229
230 dbusinterface_DATA = \
231 org.freedesktop.systemd1.Manager.xml \
232 org.freedesktop.systemd1.Job.xml \
233 org.freedesktop.systemd1.Unit.xml \
234 org.freedesktop.systemd1.Service.xml \
235 org.freedesktop.systemd1.Socket.xml \
236 org.freedesktop.systemd1.Timer.xml \
237 org.freedesktop.systemd1.Target.xml \
238 org.freedesktop.systemd1.Device.xml \
239 org.freedesktop.systemd1.Mount.xml \
240 org.freedesktop.systemd1.Automount.xml \
241 org.freedesktop.systemd1.Snapshot.xml \
242 org.freedesktop.systemd1.Swap.xml \
243 org.freedesktop.systemd1.Path.xml
244
245 dist_bashcompletion_DATA = \
246 src/systemd-bash-completion.sh
247
248 dist_tmpfiles_DATA = \
249 tmpfiles.d/systemd.conf \
250 tmpfiles.d/tmp.conf \
251 tmpfiles.d/x11.conf
252
253 if HAVE_SYSV_COMPAT
254 dist_tmpfiles_DATA += \
255 tmpfiles.d/legacy.conf
256 endif
257
258 dist_systemunit_DATA = \
259 units/graphical.target \
260 units/multi-user.target \
261 units/emergency.service \
262 units/emergency.target \
263 units/sysinit.target \
264 units/basic.target \
265 units/getty.target \
266 units/halt.target \
267 units/kexec.target \
268 units/local-fs.target \
269 units/local-fs-pre.target \
270 units/remote-fs.target \
271 units/remote-fs-pre.target \
272 units/network.target \
273 units/nss-lookup.target \
274 units/mail-transfer-agent.target \
275 units/http-daemon.target \
276 units/poweroff.target \
277 units/reboot.target \
278 units/rescue.target \
279 units/rpcbind.target \
280 units/time-sync.target \
281 units/shutdown.target \
282 units/final.target \
283 units/umount.target \
284 units/sigpwr.target \
285 units/sockets.target \
286 units/swap.target \
287 units/systemd-initctl.socket \
288 units/systemd-shutdownd.socket \
289 units/syslog.socket \
290 units/dev-hugepages.mount \
291 units/dev-mqueue.mount \
292 units/sys-kernel-config.mount \
293 units/sys-kernel-debug.mount \
294 units/sys-kernel-security.mount \
295 units/sys-fs-fuse-connections.mount \
296 units/var-run.mount \
297 units/media.mount \
298 units/remount-rootfs.service \
299 units/printer.target \
300 units/sound.target \
301 units/bluetooth.target \
302 units/smartcard.target \
303 units/systemd-tmpfiles-clean.timer \
304 units/quotaon.service \
305 units/systemd-ask-password-wall.path \
306 units/systemd-ask-password-console.path \
307 units/syslog.target
308
309 if HAVE_SYSV_COMPAT
310 dist_systemunit_DATA += \
311 units/var-lock.mount
312 endif
313
314 nodist_systemunit_DATA = \
315 units/getty@.service \
316 units/serial-getty@.service \
317 units/console-shell.service \
318 units/systemd-initctl.service \
319 units/systemd-shutdownd.service \
320 units/systemd-modules-load.service \
321 units/systemd-remount-api-vfs.service \
322 units/systemd-update-utmp-runlevel.service \
323 units/systemd-update-utmp-shutdown.service \
324 units/systemd-tmpfiles-setup.service \
325 units/systemd-tmpfiles-clean.service \
326 units/systemd-ask-password-wall.service \
327 units/systemd-ask-password-console.service \
328 units/systemd-sysctl.service \
329 units/halt.service \
330 units/poweroff.service \
331 units/reboot.service \
332 units/kexec.service \
333 units/fsck@.service \
334 units/fsck-root.service \
335 units/rescue.service \
336 units/user@.service
337
338 dist_userunit_DATA = \
339 units/user/default.target \
340 units/user/exit.target
341
342 nodist_userunit_DATA = \
343 units/user/exit.service
344
345 EXTRA_DIST += \
346 units/getty@.service.m4 \
347 units/serial-getty@.service.m4 \
348 units/console-shell.service.m4 \
349 units/rescue.service.m4 \
350 units/systemd-initctl.service.in \
351 units/systemd-shutdownd.service.in \
352 units/systemd-modules-load.service.in \
353 units/systemd-remount-api-vfs.service.in \
354 units/systemd-update-utmp-runlevel.service.in \
355 units/systemd-update-utmp-shutdown.service.in \
356 units/systemd-tmpfiles-setup.service.in \
357 units/systemd-tmpfiles-clean.service.in \
358 units/systemd-ask-password-wall.service.in \
359 units/systemd-ask-password-console.service.in \
360 units/systemd-sysctl.service.in \
361 units/halt.service.in \
362 units/poweroff.service.in \
363 units/reboot.service.in \
364 units/kexec.service.in \
365 units/user/exit.service.in \
366 units/fsck@.service.in \
367 units/fsck-root.service.in \
368 units/user@.service.in \
369 src/systemd.pc.in \
370 introspect.awk \
371 src/99-systemd.rules.in \
372 man/custom-html.xsl
373
374 if TARGET_FEDORA
375 dist_systemunit_DATA += \
376 units/fedora/prefdm.service \
377 units/fedora/rc-local.service \
378 units/fedora/halt-local.service
379 systemgenerator_PROGRAMS += \
380 systemd-rc-local-generator
381 endif
382
383 if TARGET_MANDRIVA
384 dist_systemunit_DATA += \
385 units/mandriva/prefdm.service \
386 units/fedora/rc-local.service \
387 units/fedora/halt-local.service
388 systemgenerator_PROGRAMS += \
389 systemd-rc-local-generator
390 endif
391
392 if TARGET_FRUGALWARE
393 dist_systemunit_DATA += \
394 units/frugalware/display-manager.service
395 endif
396
397 if TARGET_SUSE
398 dist_systemunit_DATA += \
399 units/suse/rc-local.service \
400 units/suse/halt-local.service
401 systemgenerator_PROGRAMS += \
402 systemd-rc-local-generator
403 endif
404
405 if TARGET_MAGEIA
406 dist_systemunit_DATA += \
407 units/mageia/prefdm.service \
408 units/fedora/rc-local.service \
409 units/fedora/halt-local.service
410 systemgenerator_PROGRAMS += \
411 systemd-rc-local-generator
412 endif
413
414 if HAVE_PLYMOUTH
415 dist_systemunit_DATA += \
416 units/plymouth-start.service \
417 units/plymouth-read-write.service \
418 units/plymouth-quit.service \
419 units/plymouth-quit-wait.service \
420 units/plymouth-reboot.service \
421 units/plymouth-kexec.service \
422 units/plymouth-poweroff.service \
423 units/plymouth-halt.service \
424 units/systemd-ask-password-plymouth.path
425
426 nodist_systemunit_DATA += \
427 units/systemd-ask-password-plymouth.service
428
429 EXTRA_DIST += \
430 units/systemd-ask-password-plymouth.service.in
431 endif
432
433 dist_doc_DATA = \
434 README \
435 NEWS \
436 LICENSE \
437 DISTRO_PORTING
438
439 pkgconfigdata_DATA = \
440 src/systemd.pc
441
442 # First passed through sed, followed by intltool
443 polkitpolicy_in_in_files = \
444 src/org.freedesktop.systemd1.policy.in.in
445
446 nodist_polkitpolicy_DATA = \
447 $(polkitpolicy_in_files:.policy.in=.policy) \
448 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
449
450 EXTRA_DIST += \
451 $(polkitpolicy_in_files) \
452 $(polkitpolicy_in_in_files)
453
454 @INTLTOOL_POLICY_RULE@
455
456 noinst_LTLIBRARIES = \
457 libsystemd-basic.la \
458 libsystemd-core.la
459
460 libsystemd_basic_la_SOURCES = \
461 src/util.c \
462 src/virt.c \
463 src/label.c \
464 src/hashmap.c \
465 src/set.c \
466 src/strv.c \
467 src/conf-parser.c \
468 src/socket-util.c \
469 src/log.c \
470 src/ratelimit.c \
471 src/exit-status.c
472
473 libsystemd_basic_la_CFLAGS = \
474 $(AM_CFLAGS) \
475 $(SELINUX_CFLAGS)
476
477 libsystemd_basic_la_LIBADD = \
478 $(SELINUX_LIBS) \
479 $(CAP_LIBS)
480
481 libsystemd_core_la_SOURCES = \
482 src/unit.c \
483 src/job.c \
484 src/manager.c \
485 src/path-lookup.c \
486 src/load-fragment.c \
487 src/service.c \
488 src/automount.c \
489 src/mount.c \
490 src/swap.c \
491 src/device.c \
492 src/target.c \
493 src/snapshot.c \
494 src/socket.c \
495 src/timer.c \
496 src/path.c \
497 src/load-dropin.c \
498 src/execute.c \
499 src/utmp-wtmp.c \
500 src/dbus.c \
501 src/dbus-manager.c \
502 src/dbus-unit.c \
503 src/dbus-job.c \
504 src/dbus-service.c \
505 src/dbus-socket.c \
506 src/dbus-timer.c \
507 src/dbus-target.c \
508 src/dbus-mount.c \
509 src/dbus-automount.c \
510 src/dbus-swap.c \
511 src/dbus-snapshot.c \
512 src/dbus-device.c \
513 src/dbus-execute.c \
514 src/dbus-path.c \
515 src/cgroup.c \
516 src/mount-setup.c \
517 src/hostname-setup.c \
518 src/selinux-setup.c \
519 src/loopback-setup.c \
520 src/kmod-setup.c \
521 src/locale-setup.c \
522 src/machine-id-setup.c \
523 src/specifier.c \
524 src/unit-name.c \
525 src/fdset.c \
526 src/namespace.c \
527 src/tcpwrap.c \
528 src/cgroup-util.c \
529 src/condition.c \
530 src/dbus-common.c \
531 src/sd-daemon.c \
532 src/install.c \
533 src/cgroup-attr.c \
534 src/sd-id128.c
535
536 nodist_libsystemd_core_la_SOURCES = \
537 src/load-fragment-gperf.c \
538 src/load-fragment-gperf-nulstr.c
539
540 EXTRA_DIST += \
541 src/load-fragment-gperf.gperf.m4
542
543 libsystemd_core_la_CFLAGS = \
544 $(AM_CFLAGS) \
545 $(DBUS_CFLAGS) \
546 $(UDEV_CFLAGS) \
547 $(LIBWRAP_CFLAGS) \
548 $(PAM_CFLAGS) \
549 $(AUDIT_CFLAGS) \
550 $(KMOD_CFLAGS)
551
552 libsystemd_core_la_LIBADD = \
553 libsystemd-basic.la \
554 $(DBUS_LIBS) \
555 $(UDEV_LIBS) \
556 $(LIBWRAP_LIBS) \
557 $(PAM_LIBS) \
558 $(AUDIT_LIBS) \
559 $(CAP_LIBS) \
560 $(KMOD_LIBS)
561
562 # This is needed because automake is buggy in how it generates the
563 # rules for C programs, but not Vala programs. We therefore can't
564 # list the .h files as dependencies if we want make dist to work.
565
566 EXTRA_DIST += \
567 src/util.h \
568 src/virt.h \
569 src/label.h \
570 src/hashmap.h \
571 src/set.h \
572 src/strv.h \
573 src/conf-parser.h \
574 src/socket-util.h \
575 src/log.h \
576 src/ratelimit.h \
577 src/exit-status.h \
578 src/unit.h \
579 src/job.h \
580 src/manager.h \
581 src/path-lookup.h \
582 src/load-fragment.h \
583 src/service.h \
584 src/automount.h \
585 src/mount.h \
586 src/swap.h \
587 src/device.h \
588 src/target.h \
589 src/snapshot.h \
590 src/socket.h \
591 src/timer.h \
592 src/path.h \
593 src/load-dropin.h \
594 src/execute.h \
595 src/utmp-wtmp.h \
596 src/dbus.h \
597 src/dbus-manager.h \
598 src/dbus-unit.h \
599 src/dbus-job.h \
600 src/dbus-service.h \
601 src/dbus-socket.h \
602 src/dbus-timer.h \
603 src/dbus-target.h \
604 src/dbus-mount.h \
605 src/dbus-automount.h \
606 src/dbus-swap.h \
607 src/dbus-snapshot.h \
608 src/dbus-device.h \
609 src/dbus-execute.h \
610 src/dbus-path.h \
611 src/cgroup.h \
612 src/mount-setup.h \
613 src/hostname-setup.h \
614 src/selinux-setup.h \
615 src/loopback-setup.h \
616 src/kmod-setup.h \
617 src/locale-setup.h \
618 src/machine-id-setup.h \
619 src/specifier.h \
620 src/unit-name.h \
621 src/fdset.h \
622 src/namespace.h \
623 src/tcpwrap.h \
624 src/cgroup-util.h \
625 src/condition.h \
626 src/dbus-common.h \
627 src/install.h \
628 src/cgroup-attr.h \
629 src/macro.h \
630 src/def.h \
631 src/ioprio.h \
632 src/missing.h \
633 src/list.h \
634 src/securebits.h \
635 src/linux/auto_dev-ioctl.h \
636 src/linux/fanotify.h \
637 src/initreq.h \
638 src/special.h \
639 src/dbus-common.h \
640 src/bus-errors.h \
641 src/cgroup-show.h \
642 src/build.h \
643 src/shutdownd.h \
644 src/umount.h \
645 src/ask-password-api.h \
646 src/pager.h \
647 src/sysfs-show.h \
648 src/polkit.h \
649 src/dbus-loop.h \
650 src/spawn-agent.h \
651 src/acl-util.h \
652 src/logs-show.h
653
654 MANPAGES = \
655 man/systemd.1 \
656 man/systemctl.1 \
657 man/systemadm.1 \
658 man/systemd-cgls.1 \
659 man/systemd-cgtop.1 \
660 man/systemd-nspawn.1 \
661 man/systemd-tmpfiles.8 \
662 man/systemd-notify.1 \
663 man/systemd.unit.5 \
664 man/systemd.service.5 \
665 man/systemd.socket.5 \
666 man/systemd.mount.5 \
667 man/systemd.automount.5 \
668 man/systemd.swap.5 \
669 man/systemd.timer.5 \
670 man/systemd.path.5 \
671 man/systemd.target.5 \
672 man/systemd.device.5 \
673 man/systemd.snapshot.5 \
674 man/systemd.exec.5 \
675 man/daemon.7 \
676 man/runlevel.8 \
677 man/telinit.8 \
678 man/halt.8 \
679 man/shutdown.8 \
680 man/pam_systemd.8 \
681 man/systemd.conf.5 \
682 man/tmpfiles.d.5 \
683 man/hostname.5 \
684 man/timezone.5 \
685 man/machine-id.5 \
686 man/locale.conf.5 \
687 man/os-release.5 \
688 man/machine-info.5 \
689 man/modules-load.d.5 \
690 man/sysctl.d.5 \
691 man/systemd-ask-password.1
692
693 MANPAGES_ALIAS = \
694 man/reboot.8 \
695 man/poweroff.8 \
696 man/init.1
697
698 man/reboot.8: man/halt.8
699 man/poweroff.8: man/halt.8
700 man/init.1: man/systemd.1
701
702 if ENABLE_MANPAGES
703 dist_man_MANS = \
704 $(MANPAGES) \
705 $(MANPAGES_ALIAS)
706
707 nodist_man_MANS = \
708 man/systemd.special.7
709
710 XML_FILES = \
711 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
712
713 XML_IN_FILES = \
714 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
715
716 dist_noinst_DATA = \
717 ${XML_FILES:.xml=.html}
718
719 nodist_noinst_DATA = \
720 ${XML_IN_FILES:.xml.in=.html}
721
722 EXTRA_DIST += \
723 $(XML_FILES) \
724 $(XML_IN_FILES) \
725 ${nodist_man_MANS:=.in} \
726 ${XML_IN_FILES:.xml.in=.html.in}
727 endif
728
729 systemd_SOURCES = \
730 src/main.c
731
732 systemd_CFLAGS = \
733 $(AM_CFLAGS) \
734 $(DBUS_CFLAGS) \
735 $(UDEV_CFLAGS)
736
737 systemd_LDADD = \
738 libsystemd-core.la
739
740 test_engine_SOURCES = \
741 src/test-engine.c
742
743 test_engine_CFLAGS = $(systemd_CFLAGS)
744 test_engine_LDADD = $(systemd_LDADD)
745
746 test_job_type_SOURCES = \
747 src/test-job-type.c
748
749 test_job_type_CFLAGS = $(systemd_CFLAGS)
750 test_job_type_LDADD = $(systemd_LDADD)
751
752 test_ns_SOURCES = \
753 src/test-ns.c
754
755 test_ns_CFLAGS = $(systemd_CFLAGS)
756 test_ns_LDADD = $(systemd_LDADD)
757
758 test_loopback_SOURCES = \
759 src/test-loopback.c \
760 src/loopback-setup.c
761
762 test_loopback_LDADD = \
763 libsystemd-basic.la
764
765 test_hostname_SOURCES = \
766 src/test-hostname.c \
767 src/hostname-setup.c
768
769 test_hostname_LDADD = \
770 libsystemd-basic.la
771
772 test_daemon_SOURCES = \
773 src/test-daemon.c
774
775 test_daemon_LDADD = \
776 libsystemd-basic.la \
777 libsystemd-daemon.la
778
779 test_cgroup_SOURCES = \
780 src/test-cgroup.c \
781 src/cgroup-util.c
782
783 test_cgroup_LDADD = \
784 libsystemd-basic.la
785
786 test_env_replace_SOURCES = \
787 src/test-env-replace.c
788
789 test_env_replace_LDADD = \
790 libsystemd-basic.la
791
792 test_strv_SOURCES = \
793 src/test-strv.c \
794 src/specifier.c
795
796 test_strv_LDADD = \
797 libsystemd-basic.la
798
799 test_install_SOURCES = \
800 src/test-install.c \
801 src/install.c \
802 src/path-lookup.c \
803 src/unit-name.c
804
805 test_install_CFLAGS = \
806 $(AM_CFLAGS) \
807 $(DBUS_CFLAGS)
808
809 test_install_LDADD = \
810 libsystemd-basic.la
811
812 systemd_initctl_SOURCES = \
813 src/initctl.c \
814 src/dbus-common.c
815
816 systemd_initctl_CFLAGS = \
817 $(AM_CFLAGS) \
818 $(DBUS_CFLAGS)
819
820 systemd_initctl_LDADD = \
821 libsystemd-basic.la \
822 libsystemd-daemon.la \
823 $(DBUS_LIBS)
824
825 systemd_update_utmp_SOURCES = \
826 src/update-utmp.c \
827 src/dbus-common.c \
828 src/utmp-wtmp.c
829
830 systemd_update_utmp_CFLAGS = \
831 $(AM_CFLAGS) \
832 $(DBUS_CFLAGS) \
833 $(AUDIT_CFLAGS)
834
835 systemd_update_utmp_LDADD = \
836 libsystemd-basic.la \
837 $(DBUS_LIBS) \
838 $(AUDIT_LIBS)
839
840 systemd_shutdownd_SOURCES = \
841 src/utmp-wtmp.c \
842 src/shutdownd.c
843
844 systemd_shutdownd_CFLAGS = \
845 $(AM_CFLAGS)
846
847 systemd_shutdownd_LDADD = \
848 libsystemd-basic.la \
849 libsystemd-daemon.la
850
851 systemd_shutdown_SOURCES = \
852 src/mount-setup.c \
853 src/umount.c \
854 src/shutdown.c
855
856 systemd_shutdown_CFLAGS = \
857 $(AM_CFLAGS) \
858 $(UDEV_CFLAGS)
859
860 systemd_shutdown_LDADD = \
861 libsystemd-basic.la \
862 $(UDEV_LIBS)
863
864 systemd_modules_load_SOURCES = \
865 src/modules-load.c
866
867 systemd_modules_load_CFLAGS = \
868 $(KMOD_CFLAGS)
869
870 systemd_modules_load_LDADD = \
871 libsystemd-basic.la \
872 $(KMOD_LIBS)
873
874 systemd_tmpfiles_SOURCES = \
875 src/tmpfiles.c
876
877 systemd_tmpfiles_LDADD = \
878 libsystemd-basic.la
879
880 systemd_machine_id_setup_SOURCES = \
881 src/machine-id-setup.c \
882 src/machine-id-main.c \
883 src/sd-id128.c
884
885 systemd_machine_id_setup_LDADD = \
886 libsystemd-basic.la
887
888 systemd_sysctl_SOURCES = \
889 src/sysctl.c
890
891 systemd_sysctl_LDADD = \
892 libsystemd-basic.la
893
894 systemd_fsck_SOURCES = \
895 src/fsck.c \
896 src/dbus-common.c
897
898 systemd_fsck_CFLAGS = \
899 $(AM_CFLAGS) \
900 $(UDEV_CFLAGS) \
901 $(DBUS_CFLAGS)
902
903 systemd_fsck_LDADD = \
904 libsystemd-basic.la \
905 $(UDEV_LIBS) \
906 $(DBUS_LIBS)
907
908 systemd_timestamp_SOURCES = \
909 src/timestamp.c
910
911 systemd_timestamp_LDADD = \
912 libsystemd-basic.la
913
914 systemd_ac_power_SOURCES = \
915 src/ac-power.c
916
917 systemd_ac_power_CFLAGS = \
918 $(AM_CFLAGS) \
919 $(UDEV_CFLAGS)
920
921 systemd_ac_power_LDADD = \
922 libsystemd-basic.la \
923 $(UDEV_LIBS)
924
925 systemd_detect_virt_SOURCES = \
926 src/detect-virt.c
927
928 systemd_detect_virt_LDADD = \
929 libsystemd-basic.la
930
931 systemd_getty_generator_SOURCES = \
932 src/getty-generator.c \
933 src/unit-name.c
934
935 systemd_getty_generator_LDADD = \
936 libsystemd-basic.la
937
938 systemd_rc_local_generator_SOURCES = \
939 src/rc-local-generator.c
940
941 systemd_rc_local_generator_LDADD = \
942 libsystemd-basic.la
943
944 systemd_remount_api_vfs_SOURCES = \
945 src/remount-api-vfs.c \
946 src/mount-setup.c \
947 src/exit-status.c
948
949 systemd_remount_api_vfs_LDADD = \
950 libsystemd-basic.la
951
952 systemd_cgroups_agent_SOURCES = \
953 src/cgroups-agent.c \
954 src/dbus-common.c
955
956 systemd_cgroups_agent_CFLAGS = \
957 $(AM_CFLAGS) \
958 $(DBUS_CFLAGS)
959
960 systemd_cgroups_agent_LDADD = \
961 libsystemd-basic.la \
962 $(DBUS_LIBS)
963
964 systemctl_SOURCES = \
965 src/systemctl.c \
966 src/utmp-wtmp.c \
967 src/dbus-common.c \
968 src/path-lookup.c \
969 src/cgroup-show.c \
970 src/cgroup-util.c \
971 src/exit-status.c \
972 src/unit-name.c \
973 src/pager.c \
974 src/install.c \
975 src/spawn-agent.c \
976 src/logs-show.c
977
978 systemctl_CFLAGS = \
979 $(AM_CFLAGS) \
980 $(DBUS_CFLAGS)
981
982 systemctl_LDADD = \
983 libsystemd-basic.la \
984 libsystemd-daemon.la \
985 libsystemd-journal.la \
986 libsystemd-id128.la \
987 $(DBUS_LIBS)
988
989 systemd_notify_SOURCES = \
990 src/notify.c \
991 src/readahead/sd-readahead.c
992
993 systemd_notify_LDADD = \
994 libsystemd-basic.la \
995 libsystemd-daemon.la
996
997 systemd_ask_password_SOURCES = \
998 src/ask-password.c \
999 src/ask-password-api.c
1000
1001 systemd_ask_password_LDADD = \
1002 libsystemd-basic.la
1003
1004 systemd_reply_password_SOURCES = \
1005 src/reply-password.c
1006
1007 systemd_reply_password_LDADD = \
1008 libsystemd-basic.la
1009
1010 systemd_cgls_SOURCES = \
1011 src/cgls.c \
1012 src/cgroup-show.c \
1013 src/cgroup-util.c \
1014 src/pager.c
1015
1016 systemd_cgls_LDADD = \
1017 libsystemd-basic.la
1018
1019 systemd_cgtop_SOURCES = \
1020 src/cgtop.c \
1021 src/cgroup-util.c
1022
1023 systemd_cgtop_LDADD = \
1024 libsystemd-basic.la
1025
1026 systemd_nspawn_SOURCES = \
1027 src/nspawn.c \
1028 src/cgroup-util.c \
1029 src/loopback-setup.c
1030
1031 systemd_nspawn_LDADD = \
1032 libsystemd-basic.la \
1033 libsystemd-daemon.la
1034
1035 systemd_stdio_bridge_SOURCES = \
1036 src/bridge.c
1037
1038 systemd_stdio_bridge_LDADD = \
1039 libsystemd-basic.la
1040
1041 systemadm_SOURCES = \
1042 src/systemadm.vala \
1043 src/systemd-interfaces.vala \
1044 src/wraplabel.vala
1045
1046 systemadm_CFLAGS = \
1047 $(AM_CFLAGS) \
1048 $(GTK_CFLAGS) \
1049 -Wno-unused-variable \
1050 -Wno-unused-function \
1051 -Wno-shadow \
1052 -Wno-format-nonliteral
1053
1054 systemadm_VALAFLAGS = \
1055 --pkg=posix \
1056 --pkg=gtk+-2.0 \
1057 --pkg=gee-1.0 \
1058 -g
1059
1060 systemadm_LDADD = \
1061 $(GTK_LIBS)
1062
1063 systemd_gnome_ask_password_agent_SOURCES = \
1064 src/gnome-ask-password-agent.vala
1065
1066 systemd_gnome_ask_password_agent_CFLAGS = \
1067 $(AM_CFLAGS) \
1068 $(LIBNOTIFY_CFLAGS) \
1069 $(GTK_CFLAGS) \
1070 -Wno-unused-variable \
1071 -Wno-unused-function \
1072 -Wno-shadow \
1073 -Wno-format-nonliteral
1074
1075 systemd_gnome_ask_password_agent_VALAFLAGS = \
1076 --pkg=posix \
1077 --pkg=gtk+-2.0 \
1078 --pkg=linux \
1079 --pkg=gio-unix-2.0 \
1080 --pkg=libnotify \
1081 -g
1082
1083 systemd_gnome_ask_password_agent_LDADD = \
1084 $(LIBNOTIFY_LIBS) \
1085 $(GTK_LIBS)
1086
1087 systemd_tty_ask_password_agent_SOURCES = \
1088 src/tty-ask-password-agent.c \
1089 src/ask-password-api.c \
1090 src/utmp-wtmp.c
1091
1092 systemd_tty_ask_password_agent_LDADD = \
1093 libsystemd-basic.la
1094
1095 # ------------------------------------------------------------------------------
1096 libsystemd_daemon_la_SOURCES = \
1097 src/sd-daemon.c
1098
1099 libsystemd_daemon_la_CFLAGS = \
1100 $(AM_CFLAGS) \
1101 -fvisibility=hidden \
1102 -DSD_EXPORT_SYMBOLS
1103
1104 libsystemd_daemon_la_LDFLAGS = \
1105 -shared \
1106 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1107 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1108
1109 pkginclude_HEADERS += \
1110 src/systemd/sd-daemon.h
1111
1112 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1113 libsystemd-daemon-install-hook:
1114 if test "$(libdir)" != "$(rootlibdir)"; then \
1115 mkdir -p $(DESTDIR)$(rootlibdir) && \
1116 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1117 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1118 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1119 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1120 fi
1121
1122 INSTALL_EXEC_HOOKS += \
1123 libsystemd-daemon-install-hook
1124
1125 libsystemd-daemon-uninstall-hook:
1126 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1127
1128 UNINSTALL_EXEC_HOOKS += \
1129 libsystemd-daemon-uninstall-hook
1130
1131 lib_LTLIBRARIES += \
1132 libsystemd-daemon.la
1133
1134 pkgconfiglib_DATA += \
1135 src/libsystemd-daemon.pc
1136
1137 MANPAGES += \
1138 man/sd-daemon.7 \
1139 man/sd_notify.3 \
1140 man/sd_listen_fds.3 \
1141 man/sd_is_fifo.3 \
1142 man/sd_booted.3
1143
1144 MANPAGES_ALIAS += \
1145 man/sd_is_socket.3 \
1146 man/sd_is_socket_unix.3 \
1147 man/sd_is_socket_inet.3 \
1148 man/sd_is_mq.3 \
1149 man/sd_notifyf.3
1150
1151 man/sd_is_socket.3: man/sd_is_fifo.3
1152 man/sd_is_socket_unix.3: man/sd_is_fifo.3
1153 man/sd_is_socket_inet.3: man/sd_is_fifo.3
1154 man/sd_is_mq.3: man/sd_is_fifo.3
1155 man/sd_notifyf.3: man/sd_notify.3
1156
1157 EXTRA_DIST += \
1158 src/libsystemd-daemon.pc.in \
1159 src/libsystemd-daemon.sym
1160
1161 # ------------------------------------------------------------------------------
1162 libsystemd_id128_la_SOURCES = \
1163 src/sd-id128.c
1164
1165 libsystemd_id128_la_CFLAGS = \
1166 $(AM_CFLAGS) \
1167 -fvisibility=hidden
1168
1169 libsystemd_id128_la_LDFLAGS = \
1170 -shared \
1171 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1172 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1173
1174 libsystemd_id128_la_LIBADD = \
1175 libsystemd-basic.la
1176
1177 test_id128_SOURCES = \
1178 src/test-id128.c \
1179 src/sd-id128.c
1180
1181 test_id128_LDADD = \
1182 libsystemd-basic.la
1183
1184 noinst_PROGRAMS += \
1185 test-id128
1186
1187 pkginclude_HEADERS += \
1188 src/systemd/sd-id128.h
1189
1190 lib_LTLIBRARIES += \
1191 libsystemd-id128.la
1192
1193 pkgconfiglib_DATA += \
1194 src/libsystemd-id128.pc
1195
1196 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1197 libsystemd-id128-install-hook:
1198 if test "$(libdir)" != "$(rootlibdir)"; then \
1199 mkdir -p $(DESTDIR)$(rootlibdir) && \
1200 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1201 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1202 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1203 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1204 fi
1205
1206 INSTALL_EXEC_HOOKS += \
1207 libsystemd-id128-install-hook
1208
1209 libsystemd-id128-uninstall-hook:
1210 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1211
1212 UNINSTALL_EXEC_HOOKS += \
1213 libsystemd-id128-uninstall-hook
1214
1215 EXTRA_DIST += \
1216 src/libsystemd-id128.pc.in \
1217 src/libsystemd-id128.sym
1218
1219 # ------------------------------------------------------------------------------
1220 systemd_journald_SOURCES = \
1221 src/journal/journald.c \
1222 src/journal/sd-journal.c \
1223 src/journal/journal-file.c \
1224 src/journal/lookup3.c \
1225 src/journal/journal-rate-limit.c \
1226 src/sd-id128.c \
1227 src/cgroup-util.c
1228
1229 if HAVE_ACL
1230 systemd_journald_SOURCES += \
1231 src/acl-util.c
1232 endif
1233
1234 nodist_systemd_journald_SOURCES = \
1235 src/journal/journald-gperf.c
1236
1237 systemd_journald_CFLAGS = \
1238 $(AM_CFLAGS) \
1239 $(ACL_CFLAGS)
1240
1241 systemd_journald_LDADD = \
1242 libsystemd-basic.la \
1243 libsystemd-daemon.la \
1244 libsystemd-login.la \
1245 $(ACL_LIBS)
1246
1247 if HAVE_XZ
1248 systemd_journald_SOURCES += \
1249 src/journal/compress.c
1250 systemd_journald_CFLAGS += \
1251 $(XZ_CFLAGS)
1252 systemd_journald_LDADD += \
1253 $(XZ_LIBS)
1254 endif
1255
1256 systemd_cat_SOURCES = \
1257 src/journal/cat.c
1258
1259 systemd_cat_LDADD = \
1260 libsystemd-basic.la \
1261 libsystemd-journal.la
1262
1263 systemd_journalctl_SOURCES = \
1264 src/journal/journalctl.c \
1265 src/pager.c \
1266 src/logs-show.c
1267
1268 systemd_journalctl_LDADD = \
1269 libsystemd-basic.la \
1270 libsystemd-journal.la \
1271 libsystemd-id128.la
1272
1273 if HAVE_XZ
1274 systemd_journalctl_SOURCES += \
1275 src/journal/compress.c
1276 systemd_journalctl_CFLAGS = \
1277 $(AM_CFLAGS) \
1278 $(XZ_CFLAGS)
1279 systemd_journalctl_LDADD += \
1280 $(XZ_LIBS)
1281 endif
1282
1283 test_journal_SOURCES = \
1284 src/journal/test-journal.c \
1285 src/journal/sd-journal.c \
1286 src/journal/journal-file.c \
1287 src/journal/lookup3.c \
1288 src/journal/journal-send.c \
1289 src/sd-id128.c
1290
1291 test_journal_LDADD = \
1292 libsystemd-basic.la
1293
1294 if HAVE_XZ
1295 test_journal_SOURCES += \
1296 src/journal/compress.c
1297
1298 test_journal_CFLAGS = \
1299 $(AM_CFLAGS) \
1300 $(XZ_CFLAGS)
1301
1302 test_journal_LDADD += \
1303 $(XZ_LIBS)
1304 endif
1305
1306 libsystemd_journal_la_SOURCES = \
1307 src/journal/sd-journal.c \
1308 src/journal/journal-file.c \
1309 src/journal/lookup3.c \
1310 src/journal/journal-send.c
1311
1312 libsystemd_journal_la_CFLAGS = \
1313 $(AM_CFLAGS) \
1314 -fvisibility=hidden
1315
1316 libsystemd_journal_la_LDFLAGS = \
1317 -shared \
1318 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1319 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1320
1321 libsystemd_journal_la_LIBADD = \
1322 libsystemd-basic.la \
1323 libsystemd-id128.la
1324
1325 if HAVE_XZ
1326 libsystemd_journal_la_SOURCES += \
1327 src/journal/compress.c
1328
1329 libsystemd_journal_la_CFLAGS += \
1330 $(XZ_CFLAGS)
1331
1332 libsystemd_journal_la_LIBADD += \
1333 $(XZ_LIBS)
1334 endif
1335
1336 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1337 libsystemd-journal-install-hook:
1338 if test "$(libdir)" != "$(rootlibdir)"; then \
1339 mkdir -p $(DESTDIR)$(rootlibdir) && \
1340 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1341 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1342 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1343 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1344 fi
1345
1346 INSTALL_EXEC_HOOKS += \
1347 libsystemd-journal-install-hook
1348
1349 libsystemd-journal-uninstall-hook:
1350 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1351
1352 UNINSTALL_EXEC_HOOKS += \
1353 libsystemd-journal-uninstall-hook
1354
1355 noinst_PROGRAMS += \
1356 test-journal
1357
1358 pkginclude_HEADERS += \
1359 src/systemd/sd-journal.h \
1360 src/systemd/sd-messages.h
1361
1362 lib_LTLIBRARIES += \
1363 libsystemd-journal.la
1364
1365 rootlibexec_PROGRAMS += \
1366 systemd-journald
1367
1368 rootbin_PROGRAMS += \
1369 systemd-journalctl
1370
1371 bin_PROGRAMS += \
1372 systemd-cat
1373
1374 dist_systemunit_DATA += \
1375 units/systemd-journald.socket
1376
1377 nodist_systemunit_DATA += \
1378 units/systemd-journald.service
1379
1380 dist_pkgsysconf_DATA += \
1381 src/journal/systemd-journald.conf
1382
1383 pkgconfiglib_DATA += \
1384 src/journal/libsystemd-journal.pc
1385
1386 journal-install-data-hook:
1387 $(MKDIR_P) -m 0755 \
1388 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1389 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1390 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1391 rm -f systemd-journald.socket && \
1392 $(LN_S) ../systemd-journald.socket )
1393 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1394 rm -f systemd-journald.service && \
1395 $(LN_S) ../systemd-journald.service )
1396
1397 INSTALL_DATA_HOOKS += \
1398 journal-install-data-hook
1399
1400 EXTRA_DIST += \
1401 src/journal/journald.h \
1402 src/journal/journal-def.h \
1403 src/journal/journal-internal.h \
1404 src/journal/journal-file.h \
1405 src/journal/lookup3.h \
1406 src/journal/compress.h \
1407 src/journal/journal-rate-limit.h \
1408 src/journal/libsystemd-journal.pc.in \
1409 src/journal/libsystemd-journal.sym \
1410 units/systemd-journald.service.in \
1411 src/journal/journald-gperf.gperf
1412
1413 CLEANFILES += \
1414 src/journal/journald-gperf.c
1415
1416 # ------------------------------------------------------------------------------
1417 if ENABLE_COREDUMP
1418 systemd_coredump_SOURCES = \
1419 src/journal/coredump.c
1420
1421 systemd_coredump_LDADD = \
1422 libsystemd-basic.la \
1423 libsystemd-journal.la \
1424 libsystemd-login.la
1425
1426 rootlibexec_PROGRAMS += \
1427 systemd-coredump
1428
1429 sysctl_DATA = \
1430 sysctl.d/coredump.conf
1431
1432 EXTRA_DIST += \
1433 sysctl.d/coredump.conf.in
1434
1435 CLEANFILES += \
1436 sysctl.d/coredump.conf
1437 endif
1438
1439 # ------------------------------------------------------------------------------
1440 if ENABLE_BINFMT
1441 systemd_binfmt_SOURCES = \
1442 src/binfmt/binfmt.c
1443
1444 systemd_binfmt_LDADD = \
1445 libsystemd-basic.la
1446
1447 rootlibexec_PROGRAMS += \
1448 systemd-binfmt
1449
1450 dist_systemunit_DATA += \
1451 units/proc-sys-fs-binfmt_misc.automount \
1452 units/proc-sys-fs-binfmt_misc.mount
1453
1454 nodist_systemunit_DATA += \
1455 units/systemd-binfmt.service
1456
1457 binfmt-install-data-hook:
1458 $(MKDIR_P) -m 0755 \
1459 $(DESTDIR)$(prefix)/lib/binfmt.d \
1460 $(DESTDIR)$(sysconfdir)/binfmt.d \
1461 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1462 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1463 rm -f systemd-binfmt.service \
1464 proc-sys-fs-binfmt_misc.automount && \
1465 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1466 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1467
1468 INSTALL_DATA_HOOKS += \
1469 binfmt-install-data-hook
1470
1471 MANPAGES += \
1472 man/binfmt.d.5
1473
1474 EXTRA_DIST += \
1475 units/systemd-binfmt.service.in
1476 endif
1477
1478 # ------------------------------------------------------------------------------
1479 if ENABLE_VCONSOLE
1480 systemd_vconsole_setup_SOURCES = \
1481 src/vconsole/vconsole-setup.c
1482
1483 systemd_vconsole_setup_LDADD = \
1484 libsystemd-basic.la
1485
1486 rootlibexec_PROGRAMS += \
1487 systemd-vconsole-setup
1488
1489 nodist_systemunit_DATA += \
1490 units/systemd-vconsole-setup.service
1491
1492 vconsole-install-data-hook:
1493 $(MKDIR_P) -m 0755 \
1494 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1495 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1496 rm -f systemd-vconsole-setup.service && \
1497 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1498
1499 INSTALL_DATA_HOOKS += \
1500 vconsole-install-data-hook
1501
1502 MANPAGES += \
1503 man/vconsole.conf.5
1504
1505 EXTRA_DIST += \
1506 units/systemd-vconsole-setup.service.in
1507 endif
1508
1509 # ------------------------------------------------------------------------------
1510 if ENABLE_READAHEAD
1511 systemd_readahead_collect_SOURCES = \
1512 src/readahead/readahead-collect.c \
1513 src/readahead/readahead-common.c
1514
1515 systemd_readahead_collect_LDADD = \
1516 libsystemd-basic.la \
1517 libsystemd-daemon.la \
1518 $(UDEV_LIBS)
1519
1520 systemd_readahead_collect_CFLAGS = \
1521 $(AM_CFLAGS) \
1522 $(UDEV_CFLAGS)
1523
1524 systemd_readahead_replay_SOURCES = \
1525 src/readahead/readahead-replay.c \
1526 src/readahead/readahead-common.c
1527
1528 systemd_readahead_replay_CFLAGS = \
1529 $(AM_CFLAGS) \
1530 $(UDEV_CFLAGS)
1531
1532 systemd_readahead_replay_LDADD = \
1533 libsystemd-basic.la \
1534 libsystemd-daemon.la \
1535 $(UDEV_LIBS)
1536
1537 rootlibexec_PROGRAMS += \
1538 systemd-readahead-collect \
1539 systemd-readahead-replay
1540
1541 dist_systemunit_DATA += \
1542 units/systemd-readahead-done.timer
1543
1544 nodist_systemunit_DATA += \
1545 units/systemd-readahead-collect.service \
1546 units/systemd-readahead-replay.service \
1547 units/systemd-readahead-done.service
1548
1549 EXTRA_DIST += \
1550 src/systemd/sd-readahead.h \
1551 src/readahead/readahead-common.h \
1552 units/systemd-readahead-collect.service.in \
1553 units/systemd-readahead-replay.service.in \
1554 units/systemd-readahead-done.service.in
1555
1556 MANPAGES += \
1557 man/sd_readahead.3 \
1558 man/sd-readahead.7
1559 endif
1560
1561 # ------------------------------------------------------------------------------
1562 if ENABLE_QUOTACHECK
1563 rootlibexec_PROGRAMS += \
1564 systemd-quotacheck
1565
1566 nodist_systemunit_DATA += \
1567 units/quotacheck.service
1568
1569 EXTRA_DIST += \
1570 units/quotacheck.service.in
1571
1572 systemd_quotacheck_SOURCES = \
1573 src/quotacheck.c
1574
1575 systemd_quotacheck_LDADD = \
1576 libsystemd-basic.la
1577 endif
1578
1579 # ------------------------------------------------------------------------------
1580 if ENABLE_RANDOMSEED
1581 rootlibexec_PROGRAMS += \
1582 systemd-random-seed
1583
1584 nodist_systemunit_DATA += \
1585 units/systemd-random-seed-save.service \
1586 units/systemd-random-seed-load.service
1587
1588 EXTRA_DIST += \
1589 units/systemd-random-seed-save.service.in \
1590 units/systemd-random-seed-load.service.in
1591
1592 systemd_random_seed_SOURCES = \
1593 src/random-seed.c
1594
1595 systemd_random_seed_LDADD = \
1596 libsystemd-basic.la
1597
1598 randomseed-install-data-hook:
1599 $(MKDIR_P) -m 0755 \
1600 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1601 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1602 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1603 rm -f systemd-random-seed-save.service && \
1604 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1605 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1606 rm -f systemd-random-seed-load.service && \
1607 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1608
1609 INSTALL_DATA_HOOKS += \
1610 randomseed-install-data-hook
1611 endif
1612
1613 # ------------------------------------------------------------------------------
1614 if HAVE_LIBCRYPTSETUP
1615 rootlibexec_PROGRAMS += \
1616 systemd-cryptsetup
1617
1618 systemgenerator_PROGRAMS += \
1619 systemd-cryptsetup-generator
1620
1621 dist_systemunit_DATA += \
1622 units/cryptsetup.target
1623
1624 systemd_cryptsetup_SOURCES = \
1625 src/cryptsetup/cryptsetup.c \
1626 src/ask-password-api.c
1627
1628 systemd_cryptsetup_CFLAGS = \
1629 $(AM_CFLAGS) \
1630 $(LIBCRYPTSETUP_CFLAGS) \
1631 $(UDEV_CFLAGS)
1632
1633 systemd_cryptsetup_LDADD = \
1634 $(LIBCRYPTSETUP_LIBS) \
1635 $(UDEV_LIBS) \
1636 libsystemd-basic.la
1637
1638 systemd_cryptsetup_generator_SOURCES = \
1639 src/cryptsetup/cryptsetup-generator.c \
1640 src/unit-name.c
1641
1642 systemd_cryptsetup_generator_LDADD = \
1643 libsystemd-basic.la
1644
1645 cryptsetup-install-data-hook:
1646 $(MKDIR_P) -m 0755 \
1647 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1648 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1649 rm -f cryptsetup.target && \
1650 $(LN_S) ../cryptsetup.target cryptsetup.target )
1651
1652 INSTALL_DATA_HOOKS += \
1653 cryptsetup-install-data-hook
1654 endif
1655
1656 # ------------------------------------------------------------------------------
1657 if ENABLE_HOSTNAMED
1658 systemd_hostnamed_SOURCES = \
1659 src/hostname/hostnamed.c \
1660 src/dbus-common.c \
1661 src/polkit.c
1662
1663 systemd_hostnamed_CFLAGS = \
1664 $(AM_CFLAGS) \
1665 $(DBUS_CFLAGS)
1666
1667 systemd_hostnamed_LDADD = \
1668 libsystemd-basic.la \
1669 libsystemd-daemon.la \
1670 $(DBUS_LIBS)
1671
1672 rootlibexec_PROGRAMS += \
1673 systemd-hostnamed
1674
1675 nodist_systemunit_DATA += \
1676 units/systemd-hostnamed.service
1677
1678 dist_dbuspolicy_DATA += \
1679 src/hostname/org.freedesktop.hostname1.conf
1680
1681 dist_dbussystemservice_DATA += \
1682 src/hostname/org.freedesktop.hostname1.service
1683
1684 polkitpolicy_in_files += \
1685 src/hostname/org.freedesktop.hostname1.policy.in
1686
1687 dbusinterface_DATA += \
1688 org.freedesktop.hostname1.xml
1689
1690 org.freedesktop.hostname1.xml: systemd-hostnamed
1691 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1692 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1693 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1694
1695 hostnamed-install-data-hook:
1696 ( cd $(DESTDIR)$(systemunitdir) && \
1697 rm -f dbus-org.freedesktop.hostname1.service && \
1698 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1699
1700 INSTALL_DATA_HOOKS += \
1701 hostnamed-install-data-hook
1702
1703 EXTRA_DIST += \
1704 units/systemd-hostnamed.service.in
1705 endif
1706
1707 # ------------------------------------------------------------------------------
1708 if ENABLE_LOCALED
1709 systemd_localed_SOURCES = \
1710 src/locale/localed.c \
1711 src/dbus-common.c \
1712 src/polkit.c
1713
1714 systemd_localed_CFLAGS = \
1715 $(AM_CFLAGS) \
1716 $(DBUS_CFLAGS)
1717
1718 systemd_localed_LDADD = \
1719 libsystemd-basic.la \
1720 libsystemd-daemon.la \
1721 $(DBUS_LIBS)
1722
1723 nodist_systemunit_DATA += \
1724 units/systemd-localed.service
1725
1726 rootlibexec_PROGRAMS += \
1727 systemd-localed
1728
1729 dist_dbuspolicy_DATA += \
1730 src/locale/org.freedesktop.locale1.conf
1731
1732 dist_dbussystemservice_DATA += \
1733 src/locale/org.freedesktop.locale1.service
1734
1735 polkitpolicy_in_files += \
1736 src/locale/org.freedesktop.locale1.policy.in
1737
1738 dbusinterface_DATA += \
1739 org.freedesktop.locale1.xml
1740
1741 org.freedesktop.locale1.xml: systemd-localed
1742 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1743 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1744 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1745
1746 localed-install-data-hook:
1747 ( cd $(DESTDIR)$(systemunitdir) && \
1748 rm -f dbus-org.freedesktop.locale1.service && \
1749 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1750
1751 INSTALL_DATA_HOOKS += \
1752 localed-install-data-hook
1753
1754 EXTRA_DIST += \
1755 units/systemd-localed.service.in
1756
1757 dist_pkgdata_DATA = \
1758 src/locale/kbd-model-map
1759
1760 dist_noinst_SCRIPT = \
1761 src/locale/generate-kbd-model-map
1762
1763 update-kbd-model-map:
1764 src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1765
1766 endif
1767
1768 # ------------------------------------------------------------------------------
1769 if ENABLE_TIMEDATED
1770 systemd_timedated_SOURCES = \
1771 src/timedate/timedated.c \
1772 src/dbus-common.c \
1773 src/polkit.c
1774
1775 systemd_timedated_CFLAGS = \
1776 $(AM_CFLAGS) \
1777 $(DBUS_CFLAGS)
1778
1779 systemd_timedated_LDADD = \
1780 libsystemd-basic.la \
1781 libsystemd-daemon.la \
1782 $(DBUS_LIBS)
1783
1784 rootlibexec_PROGRAMS += \
1785 systemd-timedated
1786
1787 dist_dbussystemservice_DATA += \
1788 src/timedate/org.freedesktop.timedate1.service
1789
1790 dist_dbuspolicy_DATA += \
1791 src/timedate/org.freedesktop.timedate1.conf
1792
1793 nodist_systemunit_DATA += \
1794 units/systemd-timedated.service
1795
1796 polkitpolicy_in_files += \
1797 src/timedate/org.freedesktop.timedate1.policy.in
1798
1799 org.freedesktop.timedate1.xml: systemd-timedated
1800 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1801 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1802 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1803
1804 dbusinterface_DATA += \
1805 org.freedesktop.timedate1.xml
1806
1807 timedated-install-data-hook:
1808 ( cd $(DESTDIR)$(systemunitdir) && \
1809 rm -f dbus-org.freedesktop.timedate1.service && \
1810 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1811
1812 INSTALL_DATA_HOOKS += \
1813 timedated-install-data-hook
1814
1815 EXTRA_DIST += \
1816 units/systemd-timedated.service.in
1817 endif
1818
1819 # ------------------------------------------------------------------------------
1820 if ENABLE_LOGIND
1821 systemd_logind_SOURCES = \
1822 src/login/logind.c \
1823 src/login/logind-dbus.c \
1824 src/login/logind-device.c \
1825 src/login/logind-seat.c \
1826 src/login/logind-seat-dbus.c \
1827 src/login/logind-session.c \
1828 src/login/logind-session-dbus.c \
1829 src/login/logind-user.c \
1830 src/login/logind-user-dbus.c \
1831 src/dbus-common.c \
1832 src/dbus-loop.c \
1833 src/cgroup-util.c \
1834 src/polkit.c
1835
1836 nodist_systemd_logind_SOURCES = \
1837 src/login/logind-gperf.c
1838
1839 if HAVE_ACL
1840 systemd_logind_SOURCES += \
1841 src/login/logind-acl.c \
1842 src/acl-util.c
1843 endif
1844
1845 systemd_logind_CFLAGS = \
1846 $(AM_CFLAGS) \
1847 $(DBUS_CFLAGS) \
1848 $(UDEV_CFLAGS) \
1849 $(ACL_CFLAGS)
1850
1851 systemd_logind_LDADD = \
1852 libsystemd-basic.la \
1853 libsystemd-daemon.la \
1854 $(DBUS_LIBS) \
1855 $(UDEV_LIBS) \
1856 $(ACL_LIBS)
1857
1858 systemd_user_sessions_SOURCES = \
1859 src/login/user-sessions.c \
1860 src/cgroup-util.c
1861
1862 systemd_user_sessions_LDADD = \
1863 libsystemd-basic.la
1864
1865 rootlibexec_PROGRAMS += \
1866 systemd-logind \
1867 systemd-user-sessions
1868
1869 systemd_loginctl_SOURCES = \
1870 src/login/loginctl.c \
1871 src/login/sysfs-show.c \
1872 src/dbus-common.c \
1873 src/cgroup-show.c \
1874 src/cgroup-util.c \
1875 src/pager.c
1876
1877 systemd_loginctl_CFLAGS = \
1878 $(AM_CFLAGS) \
1879 $(DBUS_CFLAGS) \
1880 $(UDEV_CFLAGS)
1881
1882 systemd_loginctl_LDADD = \
1883 libsystemd-basic.la \
1884 $(DBUS_LIBS) \
1885 $(UDEV_LIBS)
1886
1887 rootbin_PROGRAMS += \
1888 systemd-loginctl
1889
1890 test_login_SOURCES = \
1891 src/login/test-login.c
1892
1893 test_login_LDADD = \
1894 libsystemd-basic.la \
1895 libsystemd-login.la
1896
1897 noinst_PROGRAMS += \
1898 test-login
1899
1900 libsystemd_login_la_SOURCES = \
1901 src/login/sd-login.c \
1902 src/cgroup-util.c
1903
1904 libsystemd_login_la_CFLAGS = \
1905 $(AM_CFLAGS) \
1906 -fvisibility=hidden
1907
1908 libsystemd_login_la_LDFLAGS = \
1909 -shared \
1910 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1911 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1912
1913 libsystemd_login_la_LIBADD = \
1914 libsystemd-basic.la
1915
1916 if HAVE_PAM
1917 pam_systemd_la_SOURCES = \
1918 src/login/pam-module.c \
1919 src/dbus-common.c
1920
1921 pam_systemd_la_CFLAGS = \
1922 $(AM_CFLAGS) \
1923 $(PAM_CFLAGS) \
1924 $(DBUS_CFLAGS) \
1925 -fvisibility=hidden
1926
1927 pam_systemd_la_LDFLAGS = \
1928 -module \
1929 -export-dynamic \
1930 -avoid-version \
1931 -shared \
1932 -export-symbols-regex '^pam_sm_.*'
1933
1934 pam_systemd_la_LIBADD = \
1935 libsystemd-basic.la \
1936 libsystemd-daemon.la \
1937 $(PAM_LIBS) \
1938 $(DBUS_LIBS)
1939
1940 pamlib_LTLIBRARIES = \
1941 pam_systemd.la
1942 endif
1943
1944 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1945 libsystemd-login-install-hook:
1946 if test "$(libdir)" != "$(rootlibdir)"; then \
1947 mkdir -p $(DESTDIR)$(rootlibdir) && \
1948 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1949 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1950 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1951 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1952 fi
1953
1954 INSTALL_EXEC_HOOKS += \
1955 libsystemd-login-install-hook
1956
1957 libsystemd-login-uninstall-hook:
1958 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1959
1960 UNINSTALL_EXEC_HOOKS += \
1961 libsystemd-login-uninstall-hook
1962
1963 nodist_systemunit_DATA += \
1964 units/systemd-logind.service \
1965 units/systemd-user-sessions.service
1966
1967 dist_dbussystemservice_DATA += \
1968 src/login/org.freedesktop.login1.service
1969
1970 dist_dbuspolicy_DATA += \
1971 src/login/org.freedesktop.login1.conf
1972
1973 dist_pkgsysconf_DATA += \
1974 src/login/systemd-logind.conf
1975
1976 pkginclude_HEADERS += \
1977 src/systemd/sd-login.h
1978
1979 lib_LTLIBRARIES += \
1980 libsystemd-login.la
1981
1982 pkgconfiglib_DATA += \
1983 src/login/libsystemd-login.pc
1984
1985 polkitpolicy_in_files += \
1986 src/login/org.freedesktop.login1.policy.in
1987
1988 logind-install-data-hook:
1989 $(MKDIR_P) -m 0755 \
1990 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1991 $(DESTDIR)$(localstatedir)/lib/systemd
1992 ( cd $(DESTDIR)$(systemunitdir) && \
1993 rm -f dbus-org.freedesktop.login1.service && \
1994 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1995 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1996 rm -f systemd-logind.service systemd-user-sessions.service && \
1997 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1998 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1999
2000 INSTALL_DATA_HOOKS += \
2001 logind-install-data-hook
2002
2003 systemd_multi_seat_x_SOURCES = \
2004 src/login/multi-seat-x.c
2005
2006 systemd_multi_seat_x_CFLAGS = \
2007 $(AM_CFLAGS) \
2008 $(UDEV_CFLAGS)
2009
2010 systemd_multi_seat_x_LDADD = \
2011 libsystemd-basic.la \
2012 $(UDEV_LIBS)
2013
2014 rootlibexec_PROGRAMS += \
2015 systemd-multi-seat-x
2016
2017 systemd_uaccess_SOURCES = \
2018 src/login/uaccess.c
2019
2020 if HAVE_ACL
2021 systemd_uaccess_SOURCES += \
2022 src/login/logind-acl.c \
2023 src/acl-util.c
2024 endif
2025
2026 systemd_uaccess_CFLAGS = \
2027 $(AM_CFLAGS) \
2028 $(UDEV_CFLAGS) \
2029 $(ACL_CFLAGS)
2030
2031 systemd_uaccess_LDADD = \
2032 libsystemd-basic.la \
2033 libsystemd-daemon.la \
2034 libsystemd-login.la \
2035 $(UDEV_LIBS) \
2036 $(ACL_LIBS)
2037
2038 rootlibexec_PROGRAMS += \
2039 systemd-uaccess
2040
2041 dist_udevrules_DATA += \
2042 src/login/70-uaccess.rules
2043
2044 dist_udevrules_DATA += \
2045 src/login/71-seat.rules
2046
2047 nodist_udevrules_DATA += \
2048 src/login/73-seat-late.rules
2049
2050 MANPAGES += \
2051 man/systemd-logind.conf.5 \
2052 man/sd-login.7 \
2053 man/systemd-loginctl.1 \
2054 man/sd_login_monitor_new.3 \
2055 man/sd_pid_get_session.3 \
2056 man/sd_uid_get_state.3 \
2057 man/sd_session_is_active.3 \
2058 man/sd_seat_get_active.3 \
2059 man/sd_get_seats.3
2060
2061 MANPAGES_ALIAS += \
2062 man/sd_login_monitor_unref.3 \
2063 man/sd_login_monitor_flush.3 \
2064 man/sd_login_monitor_get_fd.3 \
2065 man/sd_session_get_uid.3 \
2066 man/sd_session_get_seat.3 \
2067 man/sd_pid_get_owner_uid.3 \
2068 man/sd_pid_get_unit.3 \
2069 man/sd_uid_is_on_seat.3 \
2070 man/sd_uid_get_sessions.3 \
2071 man/sd_uid_get_seats.3 \
2072 man/sd_seat_get_sessions.3 \
2073 man/sd_seat_can_multi_session.3 \
2074 man/sd_get_sessions.3 \
2075 man/sd_get_uids.3
2076
2077 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2078 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2079 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2080 man/sd_session_get_uid.3: man/sd_session_is_active.3
2081 man/sd_session_get_seat.3: man/sd_session_is_active.3
2082 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2083 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2084 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2085 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2086 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2087 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2088 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2089 man/sd_get_sessions.3: man/sd_get_seats.3
2090 man/sd_get_uids.3: man/sd_get_seats.3
2091
2092 EXTRA_DIST += \
2093 src/login/logind-gperf.gperf \
2094 src/login/libsystemd-login.pc.in \
2095 src/login/libsystemd-login.sym \
2096 src/login/logind.h \
2097 src/login/logind-device.h \
2098 src/login/logind-seat.h \
2099 src/login/logind-session.h \
2100 src/login/logind-user.h \
2101 src/login/logind-acl.h \
2102 src/login/73-seat-late.rules.in \
2103 units/systemd-logind.service.in \
2104 units/systemd-user-sessions.service.in
2105
2106 CLEANFILES += \
2107 src/login/logind-gperf.c \
2108 src/login/73-seat-late.rules
2109 endif
2110 # ------------------------------------------------------------------------------
2111
2112 SED_PROCESS = \
2113 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2114 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2115 -e 's,@rootbindir\@,$(rootbindir),g' \
2116 -e 's,@bindir\@,$(bindir),g' \
2117 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2118 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2119 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2120 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2121 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2122 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2123 -e 's,@userunitdir\@,$(userunitdir),g' \
2124 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2125 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2126 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2127 -e 's,@prefix\@,$(prefix),g' \
2128 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2129 -e 's,@libdir\@,$(libdir),g' \
2130 -e 's,@includedir\@,$(includedir),g' \
2131 < $< > $@ || rm $@
2132
2133 units/%: units/%.in Makefile
2134 $(SED_PROCESS)
2135
2136 man/%: man/%.in Makefile
2137 $(SED_PROCESS)
2138
2139 sysctl.d/%: sysctl.d/%.in Makefile
2140 $(SED_PROCESS)
2141
2142 %.pc: %.pc.in Makefile
2143 $(SED_PROCESS)
2144
2145 src/%.policy.in: src/%.policy.in.in Makefile
2146 $(SED_PROCESS)
2147
2148 src/%.rules: src/%.rules.in Makefile
2149 $(SED_PROCESS)
2150
2151 src/%.c: src/%.gperf
2152 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2153 $(GPERF) < $< > $@
2154
2155 src/%: src/%.m4
2156 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2157 $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2158
2159 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2160 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2161 $(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ || rm $@
2162
2163 M4_PROCESS_SYSTEM = \
2164 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2165 $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2166
2167 M4_PROCESS_USER = \
2168 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2169 $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2170
2171 units/%: units/%.m4 Makefile
2172 $(M4_PROCESS_SYSTEM)
2173
2174 units/user/%: units/%.m4 Makefile
2175 $(M4_PROCESS_USER)
2176
2177 CLEANFILES += \
2178 $(nodist_systemunit_DATA) \
2179 $(nodist_userunit_DATA) \
2180 $(nodist_man_MANS) \
2181 ${XML_IN_FILES:.xml.in=.html} \
2182 $(pkgconfigdata_DATA) \
2183 $(pkgconfiglib_DATA) \
2184 $(nodist_polkitpolicy_DATA) \
2185 src/load-fragment-gperf.gperf \
2186 src/load-fragment-gperf.c \
2187 src/load-fragment-gperf-nulstr.c \
2188 src/99-systemd.rules
2189
2190 if HAVE_VALAC
2191 CLEANFILES += \
2192 ${systemadm_SOURCES:.vala=.c}
2193 endif
2194
2195 if HAVE_XSLTPROC
2196 XSLTPROC_FLAGS = \
2197 --nonet \
2198 --stringparam funcsynopsis.style ansi
2199
2200 XSLTPROC_PROCESS_MAN = \
2201 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2202 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2203
2204 XSLTPROC_PROCESS_MAN_IN = \
2205 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2206 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
2207 mv ${@:.in=} $@
2208
2209 XSLTPROC_PROCESS_HTML = \
2210 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2211 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2212
2213 XSLTPROC_PROCESS_HTML_IN = \
2214 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2215 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< && \
2216 mv ${@:.in=} $@
2217
2218 man/%.1: man/%.xml
2219 $(XSLTPROC_PROCESS_MAN)
2220
2221 man/%.1.in: man/%.xml.in
2222 $(XSLTPROC_PROCESS_MAN)
2223
2224 man/%.3: man/%.xml
2225 $(XSLTPROC_PROCESS_MAN)
2226
2227 man/%.3.in: man/%.xml.in
2228 $(XSLTPROC_PROCESS_MAN)
2229
2230 man/%.5: man/%.xml
2231 $(XSLTPROC_PROCESS_MAN)
2232
2233 man/%.5.in: man/%.xml.in
2234 $(XSLTPROC_PROCESS_MAN)
2235
2236 man/%.7: man/%.xml
2237 $(XSLTPROC_PROCESS_MAN)
2238
2239 man/%.7.in: man/%.xml.in
2240 $(XSLTPROC_PROCESS_MAN_IN)
2241
2242 man/%.8: man/%.xml
2243 $(XSLTPROC_PROCESS_MAN)
2244
2245 man/%.8.in: man/%.xml.in
2246 $(XSLTPROC_PROCESS_MAN_IN)
2247
2248 man/%.html: man/%.xml
2249 $(XSLTPROC_PROCESS_HTML)
2250
2251 man/%.html.in: man/%.xml.in
2252 $(XSLTPROC_PROCESS_HTML_IN)
2253
2254 CLEANFILES += \
2255 $(dist_man_MANS) \
2256 ${nodist_man_MANS:=.in} \
2257 ${XML_FILES:.xml=.html} \
2258 ${XML_IN_FILES:.xml.in=.html.in}
2259 endif
2260
2261 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2262
2263 org.freedesktop.systemd1.%.xml: systemd
2264 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2265 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2266 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2267
2268 CLEANFILES += \
2269 $(dbusinterface_DATA)
2270
2271 systemd-install-data-hook:
2272 $(MKDIR_P) -m 0755 \
2273 $(DESTDIR)$(tmpfilesdir) \
2274 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2275 $(DESTDIR)$(prefix)/lib/modules-load.d \
2276 $(DESTDIR)$(sysconfdir)/modules-load.d \
2277 $(DESTDIR)$(prefix)/lib/sysctl.d \
2278 $(DESTDIR)$(sysconfdir)/sysctl.d \
2279 $(DESTDIR)$(systemshutdowndir) \
2280 $(DESTDIR)$(systemgeneratordir) \
2281 $(DESTDIR)$(usergeneratordir)
2282 $(MKDIR_P) -m 0755 \
2283 $(DESTDIR)$(systemunitdir) \
2284 $(DESTDIR)$(userunitdir) \
2285 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2286 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2287 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2288 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2289 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2290 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2291 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2292 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2293 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2294 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2295 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2296 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2297 $(DESTDIR)$(pkgsysconfdir)/system \
2298 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2299 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2300 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2301 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2302 $(DESTDIR)$(pkgsysconfdir)/user \
2303 $(DESTDIR)$(dbussessionservicedir) \
2304 $(DESTDIR)$(sysconfdir)/xdg/systemd
2305 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2306 rm -f user && \
2307 $(LN_S) $(pkgsysconfdir)/user user )
2308 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2309 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2310 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2311 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2312 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2313 rm -f systemd-update-utmp-runlevel.service && \
2314 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2315 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2316 rm -f systemd-update-utmp-runlevel.service && \
2317 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2318 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2319 rm -f systemd-update-utmp-runlevel.service && \
2320 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2321 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2322 rm -f systemd-update-utmp-runlevel.service && \
2323 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2324 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2325 rm -f systemd-update-utmp-runlevel.service && \
2326 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2327 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2328 rm -f systemd-update-utmp-shutdown.service && \
2329 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2330 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2331 rm -f systemd-remount-api-vfs.service \
2332 fsck-root.service \
2333 remount-rootfs.service \
2334 var-run.mount \
2335 media.mount && \
2336 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2337 $(LN_S) ../fsck-root.service fsck-root.service && \
2338 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2339 $(LN_S) ../var-run.mount var-run.mount && \
2340 $(LN_S) ../media.mount media.mount )
2341 ( cd $(DESTDIR)$(userunitdir) && \
2342 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2343 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2344 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2345 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2346 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2347 $(LN_S) $(systemunitdir)/sound.target sound.target )
2348 ( cd $(DESTDIR)$(systemunitdir) && \
2349 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2350 $(LN_S) poweroff.target runlevel0.target && \
2351 $(LN_S) rescue.target runlevel1.target && \
2352 $(LN_S) multi-user.target runlevel2.target && \
2353 $(LN_S) multi-user.target runlevel3.target && \
2354 $(LN_S) multi-user.target runlevel4.target && \
2355 $(LN_S) graphical.target runlevel5.target && \
2356 $(LN_S) reboot.target runlevel6.target )
2357 ( cd $(DESTDIR)$(systemunitdir) && \
2358 rm -f default.target ctrl-alt-del.target autovt@.service && \
2359 $(LN_S) graphical.target default.target && \
2360 $(LN_S) reboot.target ctrl-alt-del.target && \
2361 $(LN_S) getty@.service autovt@.service )
2362 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2363 rm -f getty.target systemd-ask-password-wall.path && \
2364 $(LN_S) ../getty.target getty.target && \
2365 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2366 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2367 rm -f getty@tty1.service && \
2368 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2369 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2370 rm -f remote-fs.target && \
2371 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2372 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2373 rm -f dev-hugepages.mount \
2374 dev-mqueue.mount \
2375 sys-kernel-config.mount \
2376 sys-kernel-debug.mount \
2377 sys-kernel-security.mount \
2378 sys-fs-fuse-connections.mount \
2379 systemd-modules-load.service \
2380 systemd-tmpfiles-setup.service \
2381 systemd-sysctl.service \
2382 systemd-ask-password-console.path && \
2383 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2384 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2385 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2386 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2387 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2388 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2389 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2390 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2391 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2392 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2393 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2394 rm -f systemd-tmpfiles-clean.timer && \
2395 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2396 ( cd $(DESTDIR)$(dbussessionservicedir) && \
2397 rm -f org.freedesktop.systemd1.service && \
2398 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2399 if HAVE_PLYMOUTH
2400 $(MKDIR_P) -m 0755 \
2401 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2402 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2403 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2404 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2405 $(DESTDIR)$(systemunitdir)/halt.target.wants
2406 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2407 rm -f plymouth-start.service plymouth-read-write.service && \
2408 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2409 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2410 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2411 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2412 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2413 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2414 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2415 rm -f plymouth-reboot.service && \
2416 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2417 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2418 rm -f plymouth-kexec.service && \
2419 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2420 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2421 rm -f plymouth-poweroff.service && \
2422 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2423 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2424 rm -f plymouth-halt.service && \
2425 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2426 endif
2427 if TARGET_MEEGO
2428 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2429 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2430 rm -f network.target && \
2431 $(LN_S) $(systemunitdir)/network.target network.target )
2432 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2433 rm -f * )
2434 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2435 rm -f * )
2436 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2437 rm -f * )
2438 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2439 rm -f * )
2440 endif
2441
2442 if TARGET_FEDORA
2443 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2444 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2445 rm -f halt-local.service && \
2446 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2447 ( cd $(DESTDIR)$(systemunitdir) && \
2448 rm -f display-manager.service single.service && \
2449 $(LN_S) prefdm.service display-manager.service && \
2450 $(LN_S) rescue.service single.service )
2451 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2452 rm -f display-manager.service && \
2453 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2454 endif
2455
2456 if TARGET_MANDRIVA
2457 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2458 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2459 rm -f halt-local.service && \
2460 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2461 ( cd $(DESTDIR)$(systemunitdir) && \
2462 rm -f display-manager.service dm.service single.service && \
2463 $(LN_S) prefdm.service display-manager.service && \
2464 $(LN_S) prefdm.service dm.service && \
2465 $(LN_S) rescue.service single.service )
2466 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2467 rm -f display-manager.service && \
2468 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2469 endif
2470
2471 if TARGET_DEBIAN_OR_UBUNTU
2472 ( cd $(DESTDIR)$(systemunitdir) && \
2473 rm -f runlevel5.target && \
2474 $(LN_S) multi-user.target runlevel5.target )
2475 endif
2476
2477 if TARGET_SUSE
2478 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2479 ( cd $(DESTDIR)$(systemunitdir) && \
2480 rm -f local.service && \
2481 $(LN_S) rc-local.service local.service )
2482 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2483 rm -f halt-local.service && \
2484 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2485 endif
2486
2487 if TARGET_MAGEIA
2488 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2489 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2490 rm -f halt-local.service && \
2491 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2492 ( cd $(DESTDIR)$(systemunitdir) && \
2493 rm -f display-manager.service && \
2494 $(LN_S) prefdm.service display-manager.service && \
2495 $(LN_S) prefdm.service dm.service )
2496 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2497 rm -f display-manager.service && \
2498 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2499 endif
2500
2501 if HAVE_SYSV_COMPAT
2502 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2503 rm -f var-lock.mount && \
2504 $(LN_S) ../var-lock.mount var-lock.mount )
2505 endif
2506
2507 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2508
2509 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2510
2511 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2512
2513 DISTCHECK_CONFIGURE_FLAGS = \
2514 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2515 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2516 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2517 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2518 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2519 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2520 --with-rootprefix=$$dc_install_base/$(prefix)
2521
2522
2523 upload: all distcheck
2524 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2525 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2526 scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/
2527 scp man/*.html tango:public/systemd-man/
2528
2529 git-tag:
2530 git tag "v$(VERSION)" -m "systemd $(VERSION)"