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