chiark / gitweb /
3357264a8584ab18dc4c64303c1c55b664193394
[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 libsystemd_journal_la_SOURCES = \
1251         src/journal/sd-journal.c \
1252         src/journal/journal-file.c \
1253         src/journal/lookup3.c \
1254         src/journal/journal-send.c
1255
1256 libsystemd_journal_la_CFLAGS = \
1257         $(AM_CFLAGS) \
1258         -fvisibility=hidden
1259
1260 libsystemd_journal_la_LDFLAGS = \
1261         -shared \
1262         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1263         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1264
1265 libsystemd_journal_la_LIBADD = \
1266         libsystemd-basic.la \
1267         libsystemd-id128.la
1268
1269 if HAVE_XZ
1270 libsystemd_journal_la_SOURCES += \
1271         src/journal/compress.c
1272
1273 libsystemd_journal_la_CFLAGS += \
1274         $(XZ_CFLAGS)
1275
1276 libsystemd_journal_la_LIBADD += \
1277         $(XZ_LIBS)
1278 endif
1279
1280 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1281 libsystemd-journal-install-hook:
1282         if test "$(libdir)" != "$(rootlibdir)"; then \
1283                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1284                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1285                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1286                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1287                 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1288         fi
1289
1290 INSTALL_EXEC_HOOKS += \
1291         libsystemd-journal-install-hook
1292
1293 libsystemd-journal-uninstall-hook:
1294         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1295
1296 UNINSTALL_EXEC_HOOKS += \
1297         libsystemd-journal-uninstall-hook
1298
1299 noinst_PROGRAMS += \
1300         test-journal
1301
1302 pkginclude_HEADERS += \
1303         src/systemd/sd-journal.h \
1304         src/systemd/sd-messages.h
1305
1306 lib_LTLIBRARIES += \
1307         libsystemd-journal.la
1308
1309 rootlibexec_PROGRAMS += \
1310         systemd-journald
1311
1312 rootbin_PROGRAMS += \
1313         journalctl
1314
1315 bin_PROGRAMS += \
1316         systemd-cat
1317
1318 dist_systemunit_DATA += \
1319         units/systemd-journald.socket
1320
1321 nodist_systemunit_DATA += \
1322         units/systemd-journald.service
1323
1324 dist_pkgsysconf_DATA += \
1325         src/journal/journald.conf
1326
1327 pkgconfiglib_DATA += \
1328         src/journal/libsystemd-journal.pc
1329
1330 journal-install-data-hook:
1331         $(MKDIR_P) -m 0755 \
1332                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1333                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1334         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1335                 rm -f systemd-journald.socket && \
1336                 $(LN_S) ../systemd-journald.socket )
1337         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1338                 rm -f systemd-journald.service && \
1339                 $(LN_S) ../systemd-journald.service )
1340
1341 INSTALL_DATA_HOOKS += \
1342         journal-install-data-hook
1343
1344 EXTRA_DIST += \
1345         src/journal/journald.h \
1346         src/journal/journal-def.h \
1347         src/journal/journal-internal.h \
1348         src/journal/journal-file.h \
1349         src/journal/lookup3.h \
1350         src/journal/compress.h \
1351         src/journal/journal-rate-limit.h \
1352         src/journal/libsystemd-journal.pc.in \
1353         src/journal/libsystemd-journal.sym \
1354         units/systemd-journald.service.in \
1355         src/journal/journald-gperf.gperf
1356
1357 CLEANFILES += \
1358         src/journal/journald-gperf.c
1359
1360 # ------------------------------------------------------------------------------
1361 if ENABLE_COREDUMP
1362 systemd_coredump_SOURCES = \
1363         src/journal/coredump.c
1364
1365 systemd_coredump_LDADD = \
1366         libsystemd-basic.la \
1367         libsystemd-journal.la \
1368         libsystemd-login.la
1369
1370 rootlibexec_PROGRAMS += \
1371         systemd-coredump
1372
1373 sysctl_DATA = \
1374         sysctl.d/coredump.conf
1375
1376 EXTRA_DIST += \
1377         sysctl.d/coredump.conf.in
1378
1379 CLEANFILES += \
1380         sysctl.d/coredump.conf
1381 endif
1382
1383 # ------------------------------------------------------------------------------
1384 if ENABLE_BINFMT
1385 systemd_binfmt_SOURCES = \
1386         src/binfmt/binfmt.c
1387
1388 systemd_binfmt_LDADD = \
1389         libsystemd-basic.la
1390
1391 rootlibexec_PROGRAMS += \
1392         systemd-binfmt
1393
1394 dist_systemunit_DATA += \
1395         units/proc-sys-fs-binfmt_misc.automount \
1396         units/proc-sys-fs-binfmt_misc.mount
1397
1398 nodist_systemunit_DATA += \
1399         units/systemd-binfmt.service
1400
1401 binfmt-install-data-hook:
1402         $(MKDIR_P) -m 0755 \
1403                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1404                 $(DESTDIR)$(sysconfdir)/binfmt.d \
1405                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1406         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1407                 rm -f systemd-binfmt.service \
1408                         proc-sys-fs-binfmt_misc.automount && \
1409                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1410                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1411
1412 INSTALL_DATA_HOOKS += \
1413         binfmt-install-data-hook
1414
1415 MANPAGES += \
1416         man/binfmt.d.5
1417
1418 EXTRA_DIST += \
1419         units/systemd-binfmt.service.in
1420 endif
1421
1422 # ------------------------------------------------------------------------------
1423 if ENABLE_VCONSOLE
1424 systemd_vconsole_setup_SOURCES = \
1425         src/vconsole/vconsole-setup.c
1426
1427 systemd_vconsole_setup_LDADD = \
1428         libsystemd-basic.la
1429
1430 rootlibexec_PROGRAMS += \
1431         systemd-vconsole-setup
1432
1433 nodist_systemunit_DATA += \
1434         units/systemd-vconsole-setup.service
1435
1436 vconsole-install-data-hook:
1437         $(MKDIR_P) -m 0755 \
1438                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1439         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1440                 rm -f systemd-vconsole-setup.service && \
1441                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1442
1443 INSTALL_DATA_HOOKS += \
1444         vconsole-install-data-hook
1445
1446 MANPAGES += \
1447         man/vconsole.conf.5
1448
1449 EXTRA_DIST += \
1450         units/systemd-vconsole-setup.service.in
1451 endif
1452
1453 # ------------------------------------------------------------------------------
1454 if ENABLE_READAHEAD
1455 systemd_readahead_collect_SOURCES = \
1456         src/readahead/readahead-collect.c \
1457         src/readahead/readahead-common.c
1458
1459 systemd_readahead_collect_LDADD = \
1460         libsystemd-basic.la \
1461         libsystemd-daemon.la \
1462         $(UDEV_LIBS)
1463
1464 systemd_readahead_collect_CFLAGS = \
1465         $(AM_CFLAGS) \
1466         $(UDEV_CFLAGS)
1467
1468 systemd_readahead_replay_SOURCES = \
1469         src/readahead/readahead-replay.c \
1470         src/readahead/readahead-common.c
1471
1472 systemd_readahead_replay_CFLAGS = \
1473         $(AM_CFLAGS) \
1474         $(UDEV_CFLAGS)
1475
1476 systemd_readahead_replay_LDADD = \
1477         libsystemd-basic.la \
1478         libsystemd-daemon.la \
1479         $(UDEV_LIBS)
1480
1481 rootlibexec_PROGRAMS += \
1482         systemd-readahead-collect \
1483         systemd-readahead-replay
1484
1485 dist_systemunit_DATA += \
1486         units/systemd-readahead-done.timer
1487
1488 nodist_systemunit_DATA += \
1489         units/systemd-readahead-collect.service \
1490         units/systemd-readahead-replay.service \
1491         units/systemd-readahead-done.service
1492
1493 EXTRA_DIST += \
1494         src/systemd/sd-readahead.h \
1495         src/readahead/readahead-common.h \
1496         units/systemd-readahead-collect.service.in \
1497         units/systemd-readahead-replay.service.in \
1498         units/systemd-readahead-done.service.in
1499
1500 MANPAGES += \
1501         man/sd_readahead.3 \
1502         man/sd-readahead.7
1503 endif
1504
1505 # ------------------------------------------------------------------------------
1506 if ENABLE_QUOTACHECK
1507 rootlibexec_PROGRAMS += \
1508         systemd-quotacheck
1509
1510 nodist_systemunit_DATA += \
1511         units/quotacheck.service
1512
1513 EXTRA_DIST += \
1514         units/quotacheck.service.in
1515
1516 systemd_quotacheck_SOURCES = \
1517         src/quotacheck.c
1518
1519 systemd_quotacheck_LDADD = \
1520         libsystemd-basic.la
1521 endif
1522
1523 # ------------------------------------------------------------------------------
1524 if ENABLE_RANDOMSEED
1525 rootlibexec_PROGRAMS += \
1526         systemd-random-seed
1527
1528 nodist_systemunit_DATA += \
1529         units/systemd-random-seed-save.service \
1530         units/systemd-random-seed-load.service
1531
1532 EXTRA_DIST += \
1533         units/systemd-random-seed-save.service.in \
1534         units/systemd-random-seed-load.service.in
1535
1536 systemd_random_seed_SOURCES = \
1537         src/random-seed.c
1538
1539 systemd_random_seed_LDADD = \
1540         libsystemd-basic.la
1541
1542 randomseed-install-data-hook:
1543         $(MKDIR_P) -m 0755 \
1544                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1545                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1546         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1547                 rm -f systemd-random-seed-save.service && \
1548                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1549         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1550                 rm -f systemd-random-seed-load.service && \
1551                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1552
1553 INSTALL_DATA_HOOKS += \
1554         randomseed-install-data-hook
1555 endif
1556
1557 # ------------------------------------------------------------------------------
1558 if HAVE_LIBCRYPTSETUP
1559 rootlibexec_PROGRAMS += \
1560         systemd-cryptsetup
1561
1562 systemgenerator_PROGRAMS += \
1563         systemd-cryptsetup-generator
1564
1565 dist_systemunit_DATA += \
1566         units/cryptsetup.target
1567
1568 systemd_cryptsetup_SOURCES = \
1569         src/cryptsetup/cryptsetup.c \
1570         src/ask-password-api.c
1571
1572 systemd_cryptsetup_CFLAGS = \
1573         $(AM_CFLAGS) \
1574         $(LIBCRYPTSETUP_CFLAGS) \
1575         $(UDEV_CFLAGS)
1576
1577 systemd_cryptsetup_LDADD = \
1578         $(LIBCRYPTSETUP_LIBS) \
1579         $(UDEV_LIBS) \
1580         libsystemd-basic.la
1581
1582 systemd_cryptsetup_generator_SOURCES = \
1583         src/cryptsetup/cryptsetup-generator.c \
1584         src/unit-name.c
1585
1586 systemd_cryptsetup_generator_LDADD = \
1587         libsystemd-basic.la
1588
1589 cryptsetup-install-data-hook:
1590         $(MKDIR_P) -m 0755 \
1591                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1592         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1593                 rm -f cryptsetup.target && \
1594                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1595
1596 INSTALL_DATA_HOOKS += \
1597         cryptsetup-install-data-hook
1598 endif
1599
1600 # ------------------------------------------------------------------------------
1601 if ENABLE_HOSTNAMED
1602 systemd_hostnamed_SOURCES = \
1603         src/hostname/hostnamed.c \
1604         src/dbus-common.c \
1605         src/polkit.c
1606
1607 systemd_hostnamed_CFLAGS = \
1608         $(AM_CFLAGS) \
1609         $(DBUS_CFLAGS)
1610
1611 systemd_hostnamed_LDADD = \
1612         libsystemd-basic.la \
1613         libsystemd-daemon.la \
1614         $(DBUS_LIBS)
1615
1616 rootlibexec_PROGRAMS += \
1617         systemd-hostnamed
1618
1619 nodist_systemunit_DATA += \
1620         units/systemd-hostnamed.service
1621
1622 dist_dbuspolicy_DATA += \
1623         src/hostname/org.freedesktop.hostname1.conf
1624
1625 dist_dbussystemservice_DATA += \
1626         src/hostname/org.freedesktop.hostname1.service
1627
1628 polkitpolicy_in_files += \
1629         src/hostname/org.freedesktop.hostname1.policy.in
1630
1631 dbusinterface_DATA += \
1632         org.freedesktop.hostname1.xml
1633
1634 org.freedesktop.hostname1.xml: systemd-hostnamed
1635         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1636                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1637                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1638
1639 hostnamed-install-data-hook:
1640         ( cd $(DESTDIR)$(systemunitdir) && \
1641                 rm -f dbus-org.freedesktop.hostname1.service && \
1642                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1643
1644 INSTALL_DATA_HOOKS += \
1645         hostnamed-install-data-hook
1646
1647 EXTRA_DIST += \
1648         units/systemd-hostnamed.service.in
1649 endif
1650
1651 # ------------------------------------------------------------------------------
1652 if ENABLE_LOCALED
1653 systemd_localed_SOURCES = \
1654         src/locale/localed.c \
1655         src/dbus-common.c \
1656         src/polkit.c
1657
1658 systemd_localed_CFLAGS = \
1659         $(AM_CFLAGS) \
1660         $(DBUS_CFLAGS)
1661
1662 systemd_localed_LDADD = \
1663         libsystemd-basic.la \
1664         libsystemd-daemon.la \
1665         $(DBUS_LIBS)
1666
1667 nodist_systemunit_DATA += \
1668         units/systemd-localed.service
1669
1670 rootlibexec_PROGRAMS += \
1671         systemd-localed
1672
1673 dist_dbuspolicy_DATA += \
1674         src/locale/org.freedesktop.locale1.conf
1675
1676 dist_dbussystemservice_DATA += \
1677         src/locale/org.freedesktop.locale1.service
1678
1679 polkitpolicy_in_files += \
1680         src/locale/org.freedesktop.locale1.policy.in
1681
1682 dbusinterface_DATA += \
1683         org.freedesktop.locale1.xml
1684
1685 org.freedesktop.locale1.xml: systemd-localed
1686         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1687                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1688                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1689
1690 localed-install-data-hook:
1691         ( cd $(DESTDIR)$(systemunitdir) && \
1692                 rm -f dbus-org.freedesktop.locale1.service && \
1693                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1694
1695 INSTALL_DATA_HOOKS += \
1696         localed-install-data-hook
1697
1698 EXTRA_DIST += \
1699         units/systemd-localed.service.in
1700
1701 dist_pkgdata_DATA = \
1702         src/locale/kbd-model-map
1703
1704 dist_noinst_SCRIPT = \
1705         src/locale/generate-kbd-model-map
1706
1707 update-kbd-model-map:
1708         src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1709
1710 endif
1711
1712 # ------------------------------------------------------------------------------
1713 if ENABLE_TIMEDATED
1714 systemd_timedated_SOURCES = \
1715         src/timedate/timedated.c \
1716         src/dbus-common.c \
1717         src/polkit.c
1718
1719 systemd_timedated_CFLAGS = \
1720         $(AM_CFLAGS) \
1721         $(DBUS_CFLAGS)
1722
1723 systemd_timedated_LDADD = \
1724         libsystemd-basic.la \
1725         libsystemd-daemon.la \
1726         $(DBUS_LIBS)
1727
1728 rootlibexec_PROGRAMS += \
1729         systemd-timedated
1730
1731 dist_dbussystemservice_DATA += \
1732         src/timedate/org.freedesktop.timedate1.service
1733
1734 dist_dbuspolicy_DATA += \
1735         src/timedate/org.freedesktop.timedate1.conf
1736
1737 nodist_systemunit_DATA += \
1738         units/systemd-timedated.service
1739
1740 polkitpolicy_in_files += \
1741         src/timedate/org.freedesktop.timedate1.policy.in
1742
1743 org.freedesktop.timedate1.xml: systemd-timedated
1744         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1745                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1746                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1747
1748 dbusinterface_DATA += \
1749         org.freedesktop.timedate1.xml
1750
1751 timedated-install-data-hook:
1752         ( cd $(DESTDIR)$(systemunitdir) && \
1753                 rm -f dbus-org.freedesktop.timedate1.service  && \
1754                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1755
1756 INSTALL_DATA_HOOKS += \
1757         timedated-install-data-hook
1758
1759 EXTRA_DIST += \
1760         units/systemd-timedated.service.in
1761 endif
1762
1763 # ------------------------------------------------------------------------------
1764 if ENABLE_LOGIND
1765 systemd_logind_SOURCES = \
1766         src/login/logind.c \
1767         src/login/logind-dbus.c \
1768         src/login/logind-device.c \
1769         src/login/logind-seat.c \
1770         src/login/logind-seat-dbus.c \
1771         src/login/logind-session.c \
1772         src/login/logind-session-dbus.c \
1773         src/login/logind-user.c \
1774         src/login/logind-user-dbus.c \
1775         src/dbus-common.c \
1776         src/dbus-loop.c \
1777         src/cgroup-util.c \
1778         src/polkit.c
1779
1780 nodist_systemd_logind_SOURCES = \
1781         src/login/logind-gperf.c
1782
1783 if HAVE_ACL
1784 systemd_logind_SOURCES += \
1785         src/login/logind-acl.c \
1786         src/acl-util.c
1787 endif
1788
1789 systemd_logind_CFLAGS = \
1790         $(AM_CFLAGS) \
1791         $(DBUS_CFLAGS) \
1792         $(UDEV_CFLAGS) \
1793         $(ACL_CFLAGS)
1794
1795 systemd_logind_LDADD = \
1796         libsystemd-basic.la \
1797         libsystemd-daemon.la \
1798         $(DBUS_LIBS) \
1799         $(UDEV_LIBS) \
1800         $(ACL_LIBS)
1801
1802 systemd_user_sessions_SOURCES = \
1803         src/login/user-sessions.c \
1804         src/cgroup-util.c
1805
1806 systemd_user_sessions_LDADD = \
1807         libsystemd-basic.la
1808
1809 rootlibexec_PROGRAMS += \
1810         systemd-logind \
1811         systemd-user-sessions
1812
1813 loginctl_SOURCES = \
1814         src/login/loginctl.c \
1815         src/login/sysfs-show.c \
1816         src/dbus-common.c \
1817         src/cgroup-show.c \
1818         src/cgroup-util.c \
1819         src/pager.c
1820
1821 loginctl_CFLAGS = \
1822         $(AM_CFLAGS) \
1823         $(DBUS_CFLAGS) \
1824         $(UDEV_CFLAGS)
1825
1826 loginctl_LDADD = \
1827         libsystemd-basic.la \
1828         $(DBUS_LIBS) \
1829         $(UDEV_LIBS)
1830
1831 rootbin_PROGRAMS += \
1832         loginctl
1833
1834 test_login_SOURCES = \
1835         src/login/test-login.c
1836
1837 test_login_LDADD = \
1838         libsystemd-basic.la \
1839         libsystemd-login.la
1840
1841 noinst_PROGRAMS += \
1842         test-login
1843
1844 libsystemd_login_la_SOURCES = \
1845         src/login/sd-login.c \
1846         src/cgroup-util.c
1847
1848 libsystemd_login_la_CFLAGS = \
1849         $(AM_CFLAGS) \
1850         -fvisibility=hidden
1851
1852 libsystemd_login_la_LDFLAGS = \
1853         -shared \
1854         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1855         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1856
1857 libsystemd_login_la_LIBADD = \
1858         libsystemd-basic.la
1859
1860 if HAVE_PAM
1861 pam_systemd_la_SOURCES = \
1862         src/login/pam-module.c \
1863         src/dbus-common.c
1864
1865 pam_systemd_la_CFLAGS = \
1866         $(AM_CFLAGS) \
1867         $(PAM_CFLAGS) \
1868         $(DBUS_CFLAGS) \
1869         -fvisibility=hidden
1870
1871 pam_systemd_la_LDFLAGS = \
1872         -module \
1873         -export-dynamic \
1874         -avoid-version \
1875         -shared \
1876         -export-symbols-regex '^pam_sm_.*'
1877
1878 pam_systemd_la_LIBADD = \
1879         libsystemd-basic.la \
1880         libsystemd-daemon.la \
1881         $(PAM_LIBS) \
1882         $(DBUS_LIBS)
1883
1884 pamlib_LTLIBRARIES = \
1885         pam_systemd.la
1886 endif
1887
1888 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1889 libsystemd-login-install-hook:
1890         if test "$(libdir)" != "$(rootlibdir)"; then \
1891                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1892                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1893                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1894                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1895                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1896         fi
1897
1898 INSTALL_EXEC_HOOKS += \
1899         libsystemd-login-install-hook
1900
1901 libsystemd-login-uninstall-hook:
1902         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1903
1904 UNINSTALL_EXEC_HOOKS += \
1905         libsystemd-login-uninstall-hook
1906
1907 nodist_systemunit_DATA += \
1908         units/systemd-logind.service \
1909         units/systemd-user-sessions.service
1910
1911 dist_dbussystemservice_DATA += \
1912         src/login/org.freedesktop.login1.service
1913
1914 dist_dbuspolicy_DATA += \
1915         src/login/org.freedesktop.login1.conf
1916
1917 dist_pkgsysconf_DATA += \
1918         src/login/logind.conf
1919
1920 pkginclude_HEADERS += \
1921         src/systemd/sd-login.h
1922
1923 lib_LTLIBRARIES += \
1924         libsystemd-login.la
1925
1926 pkgconfiglib_DATA += \
1927         src/login/libsystemd-login.pc
1928
1929 polkitpolicy_in_files += \
1930         src/login/org.freedesktop.login1.policy.in
1931
1932 logind-install-data-hook:
1933         $(MKDIR_P) -m 0755 \
1934                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1935                 $(DESTDIR)$(localstatedir)/lib/systemd
1936         ( cd $(DESTDIR)$(systemunitdir) && \
1937                 rm -f dbus-org.freedesktop.login1.service && \
1938                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1939         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1940                 rm -f systemd-logind.service systemd-user-sessions.service && \
1941                 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1942                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1943
1944 INSTALL_DATA_HOOKS += \
1945         logind-install-data-hook
1946
1947 systemd_multi_seat_x_SOURCES = \
1948         src/login/multi-seat-x.c
1949
1950 systemd_multi_seat_x_CFLAGS = \
1951         $(AM_CFLAGS) \
1952         $(UDEV_CFLAGS)
1953
1954 systemd_multi_seat_x_LDADD = \
1955         libsystemd-basic.la \
1956         $(UDEV_LIBS)
1957
1958 rootlibexec_PROGRAMS += \
1959         systemd-multi-seat-x
1960
1961 systemd_uaccess_SOURCES = \
1962         src/login/uaccess.c
1963
1964 if HAVE_ACL
1965 systemd_uaccess_SOURCES += \
1966         src/login/logind-acl.c \
1967         src/acl-util.c
1968 endif
1969
1970 systemd_uaccess_CFLAGS = \
1971         $(AM_CFLAGS) \
1972         $(UDEV_CFLAGS) \
1973         $(ACL_CFLAGS)
1974
1975 systemd_uaccess_LDADD = \
1976         libsystemd-basic.la \
1977         libsystemd-daemon.la \
1978         libsystemd-login.la \
1979         $(UDEV_LIBS) \
1980         $(ACL_LIBS)
1981
1982 rootlibexec_PROGRAMS += \
1983         systemd-uaccess
1984
1985 dist_udevrules_DATA += \
1986         src/login/70-uaccess.rules
1987
1988 dist_udevrules_DATA += \
1989         src/login/71-seat.rules
1990
1991 nodist_udevrules_DATA += \
1992         src/login/73-seat-late.rules
1993
1994 MANPAGES += \
1995         man/logind.conf.5 \
1996         man/sd-login.7 \
1997         man/loginctl.1 \
1998         man/sd_login_monitor_new.3 \
1999         man/sd_pid_get_session.3 \
2000         man/sd_uid_get_state.3 \
2001         man/sd_session_is_active.3 \
2002         man/sd_seat_get_active.3 \
2003         man/sd_get_seats.3
2004
2005 MANPAGES_ALIAS += \
2006         man/sd_login_monitor_unref.3 \
2007         man/sd_login_monitor_flush.3 \
2008         man/sd_login_monitor_get_fd.3 \
2009         man/sd_session_get_uid.3 \
2010         man/sd_session_get_seat.3 \
2011         man/sd_session_get_service.3 \
2012         man/sd_session_get_type.3 \
2013         man/sd_session_get_class.3 \
2014         man/sd_session_get_display.3 \
2015         man/sd_pid_get_owner_uid.3 \
2016         man/sd_pid_get_unit.3 \
2017         man/sd_uid_is_on_seat.3 \
2018         man/sd_uid_get_sessions.3 \
2019         man/sd_uid_get_seats.3 \
2020         man/sd_seat_get_sessions.3 \
2021         man/sd_seat_can_multi_session.3 \
2022         man/sd_get_sessions.3 \
2023         man/sd_get_uids.3
2024
2025 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2026 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2027 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2028 man/sd_session_get_uid.3: man/sd_session_is_active.3
2029 man/sd_session_get_seat.3: man/sd_session_is_active.3
2030 man/sd_session_get_service.3: man/sd_session_is_active.3
2031 man/sd_session_get_type.3: man/sd_session_is_active.3
2032 man/sd_session_get_class.3: man/sd_session_is_active.3
2033 man/sd_session_get_display.3: man/sd_session_is_active.3
2034 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2035 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2036 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2037 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2038 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2039 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2040 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2041 man/sd_get_sessions.3: man/sd_get_seats.3
2042 man/sd_get_uids.3: man/sd_get_seats.3
2043
2044 EXTRA_DIST += \
2045         src/login/logind-gperf.gperf \
2046         src/login/libsystemd-login.pc.in \
2047         src/login/libsystemd-login.sym \
2048         src/login/logind.h \
2049         src/login/logind-device.h \
2050         src/login/logind-seat.h \
2051         src/login/logind-session.h \
2052         src/login/logind-user.h \
2053         src/login/logind-acl.h \
2054         src/login/73-seat-late.rules.in \
2055         units/systemd-logind.service.in \
2056         units/systemd-user-sessions.service.in
2057
2058 CLEANFILES += \
2059         src/login/logind-gperf.c \
2060         src/login/73-seat-late.rules
2061 endif
2062 # ------------------------------------------------------------------------------
2063
2064 SED_PROCESS = \
2065         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2066         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2067                 -e 's,@rootbindir\@,$(rootbindir),g' \
2068                 -e 's,@bindir\@,$(bindir),g' \
2069                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2070                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2071                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2072                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2073                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2074                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2075                 -e 's,@userunitdir\@,$(userunitdir),g' \
2076                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2077                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2078                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2079                 -e 's,@prefix\@,$(prefix),g' \
2080                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2081                 -e 's,@libdir\@,$(libdir),g' \
2082                 -e 's,@includedir\@,$(includedir),g' \
2083                 < $< > $@ || rm $@
2084
2085 units/%: units/%.in Makefile
2086         $(SED_PROCESS)
2087
2088 man/%: man/%.in Makefile
2089         $(SED_PROCESS)
2090
2091 sysctl.d/%: sysctl.d/%.in Makefile
2092         $(SED_PROCESS)
2093
2094 %.pc: %.pc.in Makefile
2095         $(SED_PROCESS)
2096
2097 src/%.policy.in: src/%.policy.in.in Makefile
2098         $(SED_PROCESS)
2099
2100 src/%.rules: src/%.rules.in Makefile
2101         $(SED_PROCESS)
2102
2103 src/%.c: src/%.gperf
2104         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2105         $(GPERF) < $< > $@
2106
2107 src/%: src/%.m4
2108         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2109         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2110
2111 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2112         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2113         $(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 $@
2114
2115 M4_PROCESS_SYSTEM = \
2116         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2117         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2118
2119 M4_PROCESS_USER = \
2120         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2121         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2122
2123 units/%: units/%.m4 Makefile
2124         $(M4_PROCESS_SYSTEM)
2125
2126 units/user/%: units/%.m4 Makefile
2127         $(M4_PROCESS_USER)
2128
2129 CLEANFILES += \
2130         $(nodist_systemunit_DATA) \
2131         $(nodist_userunit_DATA) \
2132         $(nodist_man_MANS) \
2133         $(pkgconfigdata_DATA) \
2134         $(pkgconfiglib_DATA) \
2135         $(nodist_polkitpolicy_DATA) \
2136         src/load-fragment-gperf.gperf \
2137         src/load-fragment-gperf.c \
2138         src/load-fragment-gperf-nulstr.c \
2139         src/99-systemd.rules
2140
2141 if HAVE_XSLTPROC
2142 XSLTPROC_FLAGS = \
2143         --nonet \
2144         --stringparam funcsynopsis.style ansi
2145
2146 XSLTPROC_PROCESS_MAN = \
2147         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2148         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2149
2150 XSLTPROC_PROCESS_HTML = \
2151         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2152         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2153
2154 man/%.1: man/%.xml
2155         $(XSLTPROC_PROCESS_MAN)
2156
2157 man/%.3: man/%.xml
2158         $(XSLTPROC_PROCESS_MAN)
2159
2160 man/%.5: man/%.xml
2161         $(XSLTPROC_PROCESS_MAN)
2162
2163 man/%.7: man/%.xml
2164         $(XSLTPROC_PROCESS_MAN)
2165
2166 man/%.8: man/%.xml
2167         $(XSLTPROC_PROCESS_MAN)
2168
2169 man/%.html: man/%.xml
2170         $(XSLTPROC_PROCESS_HTML)
2171
2172 CLEANFILES += \
2173         $(dist_man_MANS) \
2174         ${XML_FILES:.xml=.html}
2175 endif
2176
2177 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2178
2179 org.freedesktop.systemd1.%.xml: systemd
2180         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2181                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2182                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2183
2184 CLEANFILES += \
2185         $(dbusinterface_DATA)
2186
2187 systemd-install-data-hook:
2188         $(MKDIR_P) -m 0755 \
2189                 $(DESTDIR)$(tmpfilesdir) \
2190                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2191                 $(DESTDIR)$(prefix)/lib/modules-load.d \
2192                 $(DESTDIR)$(sysconfdir)/modules-load.d \
2193                 $(DESTDIR)$(prefix)/lib/sysctl.d \
2194                 $(DESTDIR)$(sysconfdir)/sysctl.d \
2195                 $(DESTDIR)$(systemshutdowndir) \
2196                 $(DESTDIR)$(systemgeneratordir) \
2197                 $(DESTDIR)$(usergeneratordir)
2198         $(MKDIR_P) -m 0755 \
2199                 $(DESTDIR)$(systemunitdir) \
2200                 $(DESTDIR)$(userunitdir) \
2201                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2202                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2203                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2204                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2205                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2206                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2207                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2208                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2209                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2210                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2211                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2212                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2213                 $(DESTDIR)$(pkgsysconfdir)/system \
2214                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2215                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2216                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2217                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2218                 $(DESTDIR)$(pkgsysconfdir)/user \
2219                 $(DESTDIR)$(dbussessionservicedir) \
2220                 $(DESTDIR)$(sysconfdir)/xdg/systemd
2221         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2222                 rm -f user && \
2223                 $(LN_S) $(pkgsysconfdir)/user user )
2224         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2225                 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2226                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2227                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2228         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2229                 rm -f systemd-update-utmp-runlevel.service && \
2230                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2231         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2232                 rm -f systemd-update-utmp-runlevel.service && \
2233                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2234         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2235                 rm -f systemd-update-utmp-runlevel.service && \
2236                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2237         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2238                 rm -f systemd-update-utmp-runlevel.service && \
2239                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2240         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2241                 rm -f systemd-update-utmp-runlevel.service && \
2242                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2243         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2244                 rm -f systemd-update-utmp-shutdown.service && \
2245                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2246         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2247                 rm -f systemd-remount-api-vfs.service \
2248                         fsck-root.service \
2249                         remount-rootfs.service \
2250                         tmp.mount && \
2251                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2252                 $(LN_S) ../fsck-root.service fsck-root.service && \
2253                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2254                 $(LN_S) ../tmp.mount tmp.mount )
2255         ( cd $(DESTDIR)$(userunitdir) && \
2256                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2257                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2258                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2259                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2260                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2261                 $(LN_S) $(systemunitdir)/sound.target sound.target )
2262         ( cd $(DESTDIR)$(systemunitdir) && \
2263                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2264                 $(LN_S) poweroff.target runlevel0.target && \
2265                 $(LN_S) rescue.target runlevel1.target && \
2266                 $(LN_S) multi-user.target runlevel2.target && \
2267                 $(LN_S) multi-user.target runlevel3.target && \
2268                 $(LN_S) multi-user.target runlevel4.target && \
2269                 $(LN_S) graphical.target runlevel5.target && \
2270                 $(LN_S) reboot.target runlevel6.target )
2271         ( cd $(DESTDIR)$(systemunitdir) && \
2272                 rm -f default.target ctrl-alt-del.target autovt@.service && \
2273                 $(LN_S) graphical.target default.target && \
2274                 $(LN_S) reboot.target ctrl-alt-del.target && \
2275                 $(LN_S) getty@.service autovt@.service )
2276         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2277                 rm -f getty.target systemd-ask-password-wall.path && \
2278                 $(LN_S) ../getty.target getty.target && \
2279                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2280         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2281                 rm -f getty@tty1.service && \
2282                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2283         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2284                 rm -f remote-fs.target && \
2285                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2286         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2287                 rm -f dev-hugepages.mount \
2288                         dev-mqueue.mount \
2289                         sys-kernel-config.mount \
2290                         sys-kernel-debug.mount \
2291                         sys-fs-fuse-connections.mount \
2292                         systemd-modules-load.service \
2293                         systemd-tmpfiles-setup.service \
2294                         systemd-sysctl.service \
2295                         systemd-ask-password-console.path && \
2296                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2297                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2298                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2299                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2300                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2301                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2302                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2303                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2304                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2305         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2306                 rm -f systemd-tmpfiles-clean.timer && \
2307                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2308         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2309                 rm -f org.freedesktop.systemd1.service && \
2310                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2311 if HAVE_PLYMOUTH
2312         $(MKDIR_P) -m 0755 \
2313                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2314                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2315                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2316                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2317                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2318         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2319                 rm -f plymouth-start.service plymouth-read-write.service && \
2320                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2321                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2322         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2323                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2324                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2325                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2326         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2327                 rm -f plymouth-reboot.service && \
2328                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2329         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2330                 rm -f plymouth-kexec.service && \
2331                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2332         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2333                 rm -f plymouth-poweroff.service && \
2334                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2335         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2336                 rm -f plymouth-halt.service && \
2337                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2338 endif
2339 if TARGET_MEEGO
2340         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2341         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2342                 rm -f network.target && \
2343                 $(LN_S) $(systemunitdir)/network.target network.target )
2344         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2345                 rm -f * )
2346         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2347                 rm -f * )
2348         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2349                 rm -f * )
2350         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2351                 rm -f * )
2352 endif
2353
2354 if TARGET_FEDORA
2355         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2356         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2357                 rm -f halt-local.service && \
2358                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2359         ( cd $(DESTDIR)$(systemunitdir) && \
2360                 rm -f display-manager.service single.service && \
2361                 $(LN_S) prefdm.service display-manager.service && \
2362                 $(LN_S) rescue.service single.service )
2363         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2364                 rm -f display-manager.service && \
2365                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2366 endif
2367
2368 if TARGET_MANDRIVA
2369         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2370         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2371                 rm -f halt-local.service && \
2372                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2373         ( cd $(DESTDIR)$(systemunitdir) && \
2374                 rm -f display-manager.service dm.service single.service && \
2375                 $(LN_S) prefdm.service display-manager.service && \
2376                 $(LN_S) prefdm.service dm.service && \
2377                 $(LN_S) rescue.service single.service )
2378         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2379                 rm -f display-manager.service && \
2380                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2381 endif
2382
2383 if TARGET_DEBIAN_OR_UBUNTU
2384         ( cd $(DESTDIR)$(systemunitdir) && \
2385                 rm -f runlevel5.target && \
2386                 $(LN_S) multi-user.target runlevel5.target )
2387 endif
2388
2389 if TARGET_SUSE
2390         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2391         ( cd $(DESTDIR)$(systemunitdir) && \
2392                 rm -f local.service && \
2393                 $(LN_S) rc-local.service local.service )
2394         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2395                 rm -f halt-local.service && \
2396                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2397 endif
2398
2399 if TARGET_MAGEIA
2400         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2401         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2402                 rm -f halt-local.service && \
2403                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2404         ( cd $(DESTDIR)$(systemunitdir) && \
2405                 rm -f display-manager.service && \
2406                 $(LN_S) prefdm.service display-manager.service && \
2407                 $(LN_S) prefdm.service dm.service )
2408         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2409                 rm -f display-manager.service && \
2410                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2411 endif
2412
2413 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2414
2415 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2416
2417 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2418
2419 DISTCHECK_CONFIGURE_FLAGS = \
2420         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2421         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2422         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2423         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2424         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2425         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2426         --with-rootprefix=$$dc_install_base \
2427         --disable-split-usr
2428
2429 upload: all distcheck
2430         cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2431         scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2432         scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/
2433         scp man/*.html tango:public/systemd-man/
2434
2435 git-tag:
2436         git tag "v$(VERSION)" -m "systemd $(VERSION)"