chiark / gitweb /
ask-password: add minimal plymouth password agent
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2010 Lennart Poettering
4 #
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 2 of the License, or
8 #  (at your option) any later version.
9 #
10 #  systemd is distributed in the hope that it will be useful, but
11 #  WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 #  General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
26 pamlibdir=@pamlibdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28 polkitpolicydir=$(datadir)/polkit-1/actions
29
30 # Our own, non-special dirs
31 pkgsysconfdir=$(sysconfdir)/systemd
32 sessionunitdir=$(pkgdatadir)/session
33 tmpfilesdir=$(sysconfdir)/tmpfiles.d
34
35 # And these are the special ones for /
36 rootdir=@rootdir@
37 rootbindir=$(rootdir)/bin
38 rootsbindir=$(rootdir)/sbin
39 rootlibexecdir=$(rootdir)/lib/systemd
40 systemunitdir=$(rootdir)/lib/systemd/system
41
42 AM_CPPFLAGS = \
43         -include $(top_builddir)/config.h \
44         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
45         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
46         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
47         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
48         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
49         -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
50         -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
51         -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
52         -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
53         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
54         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
55         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
56         -DRUNTIME_DIR=\"$(localstatedir)/run\" \
57         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
58         -DKEXEC_BINARY_PATH=\"$(rootsbindir)/kexec\" \
59         -I $(top_srcdir)/src
60
61 if TARGET_GENTOO
62 AM_CPPFLAGS += \
63         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
64         -DKBD_SETFONT=\"/usr/bin/setfont\" \
65         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
66 else
67 if TARGET_ARCH
68 AM_CPPFLAGS += \
69         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
70         -DKBD_SETFONT=\"/usr/bin/setfont\" \
71         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
72 else
73 AM_CPPFLAGS += \
74         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
75         -DKBD_SETFONT=\"/bin/setfont\" \
76         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
77 endif
78 endif
79
80 rootbin_PROGRAMS = \
81         systemd \
82         systemctl \
83         systemd-notify \
84         systemd-ask-password \
85         systemd-tty-ask-password-agent
86
87 bin_PROGRAMS = \
88         systemd-cgls
89
90 if HAVE_GTK
91 bin_PROGRAMS += \
92         systemadm \
93         systemd-gnome-ask-password-agent
94 endif
95
96 rootlibexec_PROGRAMS = \
97         systemd-logger \
98         systemd-cgroups-agent \
99         systemd-initctl \
100         systemd-update-utmp \
101         systemd-random-seed \
102         systemd-shutdownd \
103         systemd-shutdown \
104         systemd-modules-load \
105         systemd-remount-api-vfs \
106         systemd-kmsg-syslogd \
107         systemd-vconsole-setup \
108         systemd-reply-password \
109         systemd-readahead-collect \
110         systemd-readahead-replay \
111         systemd-tmpfiles \
112         systemd-user-sessions \
113         systemd-fsck \
114         systemd-quotacheck
115
116 noinst_PROGRAMS = \
117         test-engine \
118         test-job-type \
119         test-ns \
120         test-loopback \
121         test-hostname \
122         test-daemon \
123         test-cgroup \
124         test-env-replace
125
126 if HAVE_PAM
127 pamlib_LTLIBRARIES = \
128         pam_systemd.la
129 endif
130
131 dist_pkgsysconf_DATA = \
132         src/system.conf
133
134 dist_dbuspolicy_DATA = \
135         src/org.freedesktop.systemd1.conf
136
137 dist_dbussystemservice_DATA = \
138         src/org.freedesktop.systemd1.service
139
140 dist_udevrules_DATA = \
141         src/99-systemd.rules
142
143 dbusinterface_DATA = \
144         org.freedesktop.systemd1.Manager.xml \
145         org.freedesktop.systemd1.Job.xml \
146         org.freedesktop.systemd1.Unit.xml \
147         org.freedesktop.systemd1.Service.xml \
148         org.freedesktop.systemd1.Socket.xml \
149         org.freedesktop.systemd1.Timer.xml \
150         org.freedesktop.systemd1.Target.xml \
151         org.freedesktop.systemd1.Device.xml \
152         org.freedesktop.systemd1.Mount.xml \
153         org.freedesktop.systemd1.Automount.xml \
154         org.freedesktop.systemd1.Snapshot.xml \
155         org.freedesktop.systemd1.Swap.xml \
156         org.freedesktop.systemd1.Path.xml
157
158 dist_tmpfiles_DATA = \
159         tmpfiles.d/systemd.conf \
160         tmpfiles.d/x11.conf
161
162 dist_systemunit_DATA = \
163         units/emergency.service \
164         units/emergency.target \
165         units/basic.target \
166         units/getty.target \
167         units/halt.target \
168         units/kexec.target \
169         units/local-fs.target \
170         units/network.target \
171         units/nss-lookup.target \
172         units/mail-transfer-agent.target \
173         units/http-daemon.target \
174         units/poweroff.target \
175         units/reboot.target \
176         units/rescue.target \
177         units/rpcbind.target \
178         units/rtc-set.target \
179         units/shutdown.target \
180         units/final.target \
181         units/umount.target \
182         units/sigpwr.target \
183         units/sockets.target \
184         units/swap.target \
185         units/dbus.target \
186         units/systemd-initctl.socket \
187         units/systemd-logger.socket \
188         units/systemd-shutdownd.socket \
189         units/syslog.socket \
190         units/dev-hugepages.automount \
191         units/dev-hugepages.mount \
192         units/dev-mqueue.automount \
193         units/dev-mqueue.mount \
194         units/proc-sys-fs-binfmt_misc.automount \
195         units/proc-sys-fs-binfmt_misc.mount \
196         units/sys-kernel-debug.automount \
197         units/sys-kernel-debug.mount \
198         units/sys-kernel-security.automount \
199         units/sys-kernel-security.mount \
200         units/tmp.mount \
201         units/var-lock.mount \
202         units/var-run.mount \
203         units/hwclock-load.service \
204         units/hwclock-save.service \
205         units/sysctl.service \
206         units/remount-rootfs.service \
207         units/printer.target \
208         units/bluetooth.target \
209         units/smartcard.target \
210         units/systemd-readahead-done.timer \
211         units/systemd-tmpfiles-clean.timer \
212         units/quotaon.service \
213         units/systemd-ask-password-wall.path
214
215 nodist_systemunit_DATA = \
216         units/sysinit.target \
217         units/getty@.service \
218         units/serial-getty@.service \
219         units/graphical.target \
220         units/remote-fs.target \
221         units/multi-user.target \
222         units/systemd-initctl.service \
223         units/systemd-logger.service \
224         units/systemd-shutdownd.service \
225         units/systemd-kmsg-syslogd.service \
226         units/systemd-modules-load.service \
227         units/systemd-vconsole-setup.service \
228         units/systemd-remount-api-vfs.service \
229         units/systemd-update-utmp-runlevel.service \
230         units/systemd-update-utmp-shutdown.service \
231         units/systemd-random-seed-save.service \
232         units/systemd-random-seed-load.service \
233         units/systemd-readahead-collect.service \
234         units/systemd-readahead-replay.service \
235         units/systemd-readahead-done.service \
236         units/systemd-tmpfiles-setup.service \
237         units/systemd-tmpfiles-clean.service \
238         units/systemd-user-sessions.service \
239         units/systemd-ask-password-wall.service \
240         units/syslog.target \
241         units/halt.service \
242         units/poweroff.service \
243         units/reboot.service \
244         units/kexec.service \
245         units/fsck@.service \
246         units/fsck-root.service \
247         units/quotacheck.service
248
249 dist_sessionunit_DATA = \
250         units/session/default.target \
251         units/session/exit.target
252
253 nodist_sessionunit_DATA = \
254         units/session/remote-fs.target \
255         units/session/exit.service
256
257 EXTRA_DIST = \
258         units/sysinit.target.m4 \
259         units/getty@.service.m4 \
260         units/serial-getty@.service.m4 \
261         units/graphical.target.m4 \
262         units/multi-user.target.m4 \
263         units/remote-fs.target.m4 \
264         units/systemd-initctl.service.in \
265         units/systemd-logger.service.in \
266         units/systemd-shutdownd.service.in \
267         units/systemd-kmsg-syslogd.service.in \
268         units/systemd-modules-load.service.in \
269         units/systemd-vconsole-setup.service.in \
270         units/systemd-remount-api-vfs.service.in \
271         units/systemd-update-utmp-runlevel.service.in \
272         units/systemd-update-utmp-shutdown.service.in \
273         units/systemd-random-seed-save.service.in \
274         units/systemd-random-seed-load.service.in \
275         units/systemd-readahead-collect.service.in \
276         units/systemd-readahead-replay.service.in \
277         units/systemd-readahead-done.service.in \
278         units/systemd-tmpfiles-setup.service.in \
279         units/systemd-tmpfiles-clean.service.in \
280         units/systemd-user-sessions.service.in \
281         units/systemd-ask-password-wall.service.in \
282         units/syslog.target.in \
283         units/halt.service.in \
284         units/poweroff.service.in \
285         units/reboot.service.in \
286         units/kexec.service.in \
287         units/session/exit.service.in \
288         units/fsck@.service.in \
289         units/fsck-root.service.in \
290         units/quotacheck.service.in \
291         systemd.pc.in
292
293 if TARGET_FEDORA
294 dist_systemunit_DATA += \
295         units/fedora/prefdm.service \
296         units/fedora/rc-local.service \
297         units/fedora/halt-local.service \
298         units/fedora/sysinit.service \
299         units/fedora/single.service \
300         units/fedora/plymouth-quit.service \
301         units/fedora/plymouth-reboot.service \
302         units/fedora/plymouth-poweroff.service \
303         units/fedora/plymouth-halt.service
304 endif
305
306 if TARGET_DEBIAN_OR_UBUNTU
307 dist_systemunit_DATA += \
308         units/debian/umountfs.service \
309         units/debian/umountnfs.service \
310         units/debian/umountroot.service
311 endif
312
313 if TARGET_GENTOO
314 dist_systemunit_DATA += \
315         units/gentoo/xdm.service
316 endif
317
318 if TARGET_ARCH
319 dist_systemunit_DATA += \
320         units/arch/rc-local.service
321 endif
322
323 dist_doc_DATA = \
324         README \
325         LICENSE \
326         DISTRO_PORTING \
327         src/sd-daemon.h \
328         src/sd-daemon.c \
329         src/sd-readahead.h \
330         src/sd-readahead.c
331
332 pkgconfigdata_DATA = \
333         systemd.pc
334
335 dist_polkitpolicy_DATA = \
336         src/org.freedesktop.systemd1.policy
337
338 noinst_LTLIBRARIES = \
339         libsystemd-basic.la \
340         libsystemd-core.la
341
342 libsystemd_basic_la_SOURCES = \
343         src/util.c \
344         src/label.c \
345         src/hashmap.c \
346         src/set.c \
347         src/strv.c \
348         src/conf-parser.c \
349         src/socket-util.c \
350         src/log.c \
351         src/ratelimit.c
352
353 libsystemd_basic_la_CFLAGS = \
354         $(AM_CFLAGS) \
355         $(SELINUX_CFLAGS)
356
357 libsystemd_basic_la_LIBADD = \
358         $(SELINUX_LIBS)
359
360 libsystemd_core_la_SOURCES = \
361         src/unit.c \
362         src/job.c \
363         src/manager.c \
364         src/path-lookup.c \
365         src/load-fragment.c \
366         src/service.c \
367         src/automount.c \
368         src/mount.c \
369         src/swap.c \
370         src/device.c \
371         src/target.c \
372         src/snapshot.c \
373         src/socket.c \
374         src/timer.c \
375         src/path.c \
376         src/load-dropin.c \
377         src/execute.c \
378         src/utmp-wtmp.c \
379         src/exit-status.c \
380         src/dbus.c \
381         src/dbus-manager.c \
382         src/dbus-unit.c \
383         src/dbus-job.c \
384         src/dbus-service.c \
385         src/dbus-socket.c \
386         src/dbus-timer.c \
387         src/dbus-target.c \
388         src/dbus-mount.c \
389         src/dbus-automount.c \
390         src/dbus-swap.c \
391         src/dbus-snapshot.c \
392         src/dbus-device.c \
393         src/dbus-execute.c \
394         src/dbus-path.c \
395         src/cgroup.c \
396         src/mount-setup.c \
397         src/hostname-setup.c \
398         src/loopback-setup.c \
399         src/kmod-setup.c \
400         src/locale-setup.c \
401         src/specifier.c \
402         src/unit-name.c \
403         src/fdset.c \
404         src/namespace.c \
405         src/tcpwrap.c \
406         src/cgroup-util.c \
407         src/condition.c
408
409 libsystemd_core_la_CFLAGS = \
410         $(AM_CFLAGS) \
411         $(DBUS_CFLAGS) \
412         $(UDEV_CFLAGS) \
413         $(LIBWRAP_CFLAGS) \
414         $(PAM_CFLAGS) \
415         $(AUDIT_CFLAGS)
416
417 libsystemd_core_la_LIBADD = \
418         libsystemd-basic.la \
419         $(DBUS_LIBS) \
420         $(UDEV_LIBS) \
421         $(LIBWRAP_LIBS) \
422         $(PAM_LIBS) \
423         $(AUDIT_LIBS)
424
425 # This is needed because automake is buggy in how it generates the
426 # rules for C programs, but not Vala programs.  We therefore can't
427 # list the .h files as dependencies if we want make dist to work.
428
429 EXTRA_DIST += \
430         ${libsystemd_basic_la_SOURCES:.c=.h} \
431         ${libsystemd_core_la_SOURCES:.c=.h} \
432         src/macro.h \
433         src/ioprio.h \
434         src/missing.h \
435         src/list.h \
436         src/securebits.h \
437         src/linux/auto_dev-ioctl.h \
438         src/linux/fanotify.h \
439         src/initreq.h \
440         src/sd-daemon.h \
441         src/sd-readahead.h \
442         src/special.h \
443         src/dbus-common.h \
444         src/bus-errors.h \
445         src/cgroup-show.h \
446         src/build.h \
447         src/shutdownd.h \
448         src/umount.h \
449         src/readahead-common.h
450
451 MANPAGES = \
452         man/systemd.1 \
453         man/systemctl.1 \
454         man/systemadm.1 \
455         man/systemd-cgls.1 \
456         man/systemd-notify.1 \
457         man/sd_notify.3 \
458         man/sd_readahead.3 \
459         man/sd_booted.3 \
460         man/sd_listen_fds.3 \
461         man/sd_is_fifo.3 \
462         man/systemd.unit.5 \
463         man/systemd.service.5 \
464         man/systemd.socket.5 \
465         man/systemd.mount.5 \
466         man/systemd.automount.5 \
467         man/systemd.swap.5 \
468         man/systemd.timer.5 \
469         man/systemd.path.5 \
470         man/systemd.target.5 \
471         man/systemd.device.5 \
472         man/systemd.snapshot.5 \
473         man/systemd.exec.5 \
474         man/daemon.7 \
475         man/sd-daemon.7 \
476         man/sd-readahead.7 \
477         man/runlevel.8 \
478         man/telinit.8 \
479         man/halt.8 \
480         man/shutdown.8 \
481         man/pam_systemd.8 \
482         man/systemd.conf.5
483
484 MANPAGES_ALIAS = \
485         man/reboot.8 \
486         man/poweroff.8 \
487         man/sd_is_socket.3 \
488         man/sd_is_socket_unix.3 \
489         man/sd_is_socket_inet.3 \
490         man/sd_notifyf.3 \
491         man/init.1
492
493 man/reboot.8: man/halt.8
494 man/poweroff.8: man/halt.8
495 man/sd_is_socket.3: man/sd_is_fifo.3
496 man/sd_is_socket_unix.3: man/sd_is_fifo.3
497 man/sd_is_socket_inet.3: man/sd_is_fifo.3
498 man/sd_notifyf.3: man/sd_notify.3
499 man/init.1: man/systemd.1
500
501 dist_man_MANS = \
502         $(MANPAGES) \
503         $(MANPAGES_ALIAS)
504
505 nodist_man_MANS = \
506         man/systemd.special.7
507
508 XML_FILES = \
509         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
510
511 XML_IN_FILES = \
512         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
513
514 dist_noinst_DATA = \
515         ${XML_FILES:.xml=.html}
516
517 nodist_noinst_DATA = \
518         ${XML_IN_FILES:.xml.in=.html}
519
520 EXTRA_DIST += \
521         $(XML_FILES) \
522         $(XML_IN_FILES) \
523         ${nodist_man_MANS:=.in} \
524         ${XML_IN_FILES:.xml.in=.html.in}
525
526 systemd_SOURCES = \
527         src/main.c
528
529 systemd_CFLAGS = \
530         $(AM_CFLAGS) \
531         $(DBUS_CFLAGS) \
532         $(UDEV_CFLAGS)
533
534 systemd_LDADD = \
535         libsystemd-core.la
536
537 test_engine_SOURCES = \
538         src/test-engine.c
539
540 test_engine_CFLAGS = $(systemd_CFLAGS)
541 test_engine_LDADD = $(systemd_LDADD)
542
543 test_job_type_SOURCES = \
544         src/test-job-type.c
545
546 test_job_type_CFLAGS = $(systemd_CFLAGS)
547 test_job_type_LDADD = $(systemd_LDADD)
548
549 test_ns_SOURCES = \
550         src/test-ns.c
551
552 test_ns_CFLAGS = $(systemd_CFLAGS)
553 test_ns_LDADD = $(systemd_LDADD)
554
555 test_loopback_SOURCES = \
556         src/test-loopback.c \
557         src/loopback-setup.c
558
559 test_loopback_LDADD = \
560         libsystemd-basic.la
561
562 test_hostname_SOURCES = \
563         src/test-hostname.c \
564         src/hostname-setup.c
565
566 test_hostname_LDADD = \
567         libsystemd-basic.la
568
569 test_daemon_SOURCES = \
570         src/test-daemon.c \
571         src/sd-daemon.c
572
573 test_daemon_LDADD = \
574         libsystemd-basic.la
575
576 test_cgroup_SOURCES = \
577         src/test-cgroup.c \
578         src/cgroup-util.c
579
580 test_cgroup_CFLAGS = \
581         $(AM_CFLAGS)
582
583 test_cgroup_LDADD = \
584         libsystemd-basic.la
585
586 test_env_replace_SOURCES = \
587         src/test-env-replace.c
588
589 test_env_replace_CFLAGS = \
590         $(AM_CFLAGS)
591
592 test_env_replace_LDADD = \
593         libsystemd-basic.la
594
595 systemd_logger_SOURCES = \
596         src/logger.c \
597         src/sd-daemon.c \
598         src/tcpwrap.c
599
600 systemd_logger_LDADD = \
601         libsystemd-basic.la \
602         $(LIBWRAP_LIBS)
603
604 systemd_initctl_SOURCES = \
605         src/initctl.c \
606         src/sd-daemon.c \
607         src/dbus-common.c
608
609 systemd_initctl_CFLAGS = \
610         $(AM_CFLAGS) \
611         $(DBUS_CFLAGS)
612
613 systemd_initctl_LDADD = \
614         libsystemd-basic.la \
615         $(DBUS_LIBS)
616
617 systemd_update_utmp_SOURCES = \
618         src/update-utmp.c \
619         src/dbus-common.c \
620         src/utmp-wtmp.c
621
622 systemd_update_utmp_CFLAGS = \
623         $(AM_CFLAGS) \
624         $(DBUS_CFLAGS) \
625         $(AUDIT_CFLAGS)
626
627 systemd_update_utmp_LDADD = \
628         libsystemd-basic.la \
629         $(DBUS_LIBS) \
630         $(AUDIT_LIBS)
631
632 systemd_random_seed_SOURCES = \
633         src/random-seed.c
634
635 systemd_random_seed_CFLAGS = \
636         $(AM_CFLAGS)
637
638 systemd_random_seed_LDADD = \
639         libsystemd-basic.la
640
641 systemd_shutdownd_SOURCES = \
642         src/utmp-wtmp.c \
643         src/sd-daemon.c \
644         src/shutdownd.c
645
646 systemd_shutdownd_CFLAGS = \
647         $(AM_CFLAGS)
648
649 systemd_shutdownd_LDADD = \
650         libsystemd-basic.la
651
652 systemd_shutdown_SOURCES = \
653         src/mount-setup.c \
654         src/umount.c \
655         src/shutdown.c
656
657 systemd_shutdown_CFLAGS = \
658         $(AM_CFLAGS) \
659         $(UDEV_CFLAGS)
660
661 systemd_shutdown_LDADD = \
662         libsystemd-basic.la \
663         $(UDEV_LIBS)
664
665 systemd_modules_load_SOURCES = \
666         src/modules-load.c
667
668 systemd_modules_load_CFLAGS = \
669         $(AM_CFLAGS)
670
671 systemd_modules_load_LDADD = \
672         libsystemd-basic.la
673
674 systemd_tmpfiles_SOURCES = \
675         src/tmpfiles.c
676
677 systemd_tmpfiles_CFLAGS = \
678         $(AM_CFLAGS)
679
680 systemd_tmpfiles_LDADD = \
681         libsystemd-basic.la
682
683 systemd_fsck_SOURCES = \
684         src/fsck.c \
685         src/dbus-common.c
686
687 systemd_fsck_CFLAGS = \
688         $(AM_CFLAGS) \
689         $(UDEV_CFLAGS) \
690         $(DBUS_CFLAGS)
691
692 systemd_fsck_LDADD = \
693         libsystemd-basic.la \
694         $(UDEV_LIBS) \
695         $(DBUS_LIBS)
696
697 systemd_quotacheck_SOURCES = \
698         src/quotacheck.c
699
700 systemd_quotacheck_CFLAGS = \
701         $(AM_CFLAGS)
702
703 systemd_quotacheck_LDADD = \
704         libsystemd-basic.la
705
706 systemd_user_sessions_SOURCES = \
707         src/user-sessions.c \
708         src/cgroup-util.c
709
710 systemd_user_sessions_CFLAGS = \
711         $(AM_CFLAGS)
712
713 systemd_user_sessions_LDADD = \
714         libsystemd-basic.la
715
716 systemd_vconsole_setup_SOURCES = \
717         src/vconsole-setup.c
718
719 systemd_vconsole_setup_CFLAGS = \
720         $(AM_CFLAGS)
721
722 systemd_vconsole_setup_LDADD = \
723         libsystemd-basic.la
724
725 systemd_remount_api_vfs_SOURCES = \
726         src/remount-api-vfs.c \
727         src/mount-setup.c
728
729 systemd_remount_api_vfs_CFLAGS = \
730         $(AM_CFLAGS)
731
732 systemd_remount_api_vfs_LDADD = \
733         libsystemd-basic.la
734
735 systemd_cgroups_agent_SOURCES = \
736         src/cgroups-agent.c \
737         src/dbus-common.c
738
739 systemd_cgroups_agent_CFLAGS = \
740         $(AM_CFLAGS) \
741         $(DBUS_CFLAGS)
742
743 systemd_cgroups_agent_LDADD = \
744         libsystemd-basic.la \
745         $(DBUS_LIBS)
746
747 systemd_kmsg_syslogd_SOURCES = \
748         src/kmsg-syslogd.c \
749         src/sd-daemon.c \
750         src/fdset.c
751
752 systemd_kmsg_syslogd_CFLAGS = \
753         $(AM_CFLAGS)
754
755 systemd_kmsg_syslogd_LDADD = \
756         libsystemd-basic.la
757
758 systemctl_SOURCES = \
759         src/systemctl.c \
760         src/utmp-wtmp.c \
761         src/dbus-common.c \
762         src/path-lookup.c \
763         src/sd-daemon.c \
764         src/cgroup-show.c \
765         src/cgroup-util.c \
766         src/exit-status.c \
767         src/unit-name.c
768
769 systemctl_CFLAGS = \
770         $(AM_CFLAGS) \
771         $(DBUS_CFLAGS)
772
773 systemctl_LDADD = \
774         libsystemd-basic.la \
775         $(DBUS_LIBS)
776
777 systemd_notify_SOURCES = \
778         src/notify.c \
779         src/sd-daemon.c \
780         src/sd-readahead.c
781
782 systemd_notify_LDADD = \
783         libsystemd-basic.la
784
785 systemd_ask_password_SOURCES = \
786         src/ask-password.c
787
788 systemd_ask_password_LDADD = \
789         libsystemd-basic.la
790
791 systemd_reply_password_SOURCES = \
792         src/reply-password.c
793
794 systemd_reply_password_LDADD = \
795         libsystemd-basic.la
796
797 systemd_readahead_collect_SOURCES = \
798         src/readahead-collect.c \
799         src/sd-daemon.c \
800         src/readahead-common.c
801
802 systemd_readahead_collect_CFLAGS = \
803         $(UDEV_CFLAGS)
804
805 systemd_readahead_collect_LDADD = \
806         libsystemd-basic.la \
807         $(UDEV_LIBS)
808
809 systemd_readahead_replay_SOURCES = \
810         src/readahead-replay.c \
811         src/sd-daemon.c \
812         src/readahead-common.c
813
814 systemd_readahead_replay_CFLAGS = \
815         $(UDEV_CFLAGS)
816
817 systemd_readahead_replay_LDADD = \
818         libsystemd-basic.la \
819         $(UDEV_LIBS)
820
821 systemd_cgls_SOURCES = \
822         src/cgls.c \
823         src/cgroup-show.c \
824         src/cgroup-util.c
825
826 systemd_cgls_CFLAGS = \
827         $(AM_CFLAGS)
828
829 systemd_cgls_LDADD = \
830         libsystemd-basic.la
831
832 systemadm_SOURCES = \
833         src/systemadm.vala \
834         src/systemd-interfaces.vala
835
836 systemadm_CFLAGS = \
837         $(AM_CFLAGS) \
838         $(DBUSGLIB_CFLAGS) \
839         $(GTK_CFLAGS) \
840         -Wno-unused-variable \
841         -Wno-unused-function \
842         -Wno-shadow \
843         -Wno-format-nonliteral
844
845 systemadm_VALAFLAGS = \
846         --pkg=dbus-glib-1 \
847         --pkg=posix \
848         --pkg=gtk+-2.0 \
849         -g
850
851 systemadm_LDADD = \
852         $(DBUSGLIB_LIBS) \
853         $(GTK_LIBS)
854
855 systemd_gnome_ask_password_agent_SOURCES = \
856         src/gnome-ask-password-agent.vala
857
858 systemd_gnome_ask_password_agent_CFLAGS = \
859         $(AM_CFLAGS) \
860         $(DBUSGLIB_CFLAGS) \
861         $(GTK_CFLAGS) \
862         -Wno-unused-variable \
863         -Wno-unused-function \
864         -Wno-shadow \
865         -Wno-format-nonliteral
866
867 systemd_gnome_ask_password_agent_VALAFLAGS = \
868         --pkg=dbus-glib-1 \
869         --pkg=posix \
870         --pkg=gtk+-2.0 \
871         --pkg=linux \
872         --pkg=gio-unix-2.0 \
873         --pkg=libnotify \
874         -g
875
876 systemd_gnome_ask_password_agent_LDADD = \
877         $(DBUSGLIB_LIBS) \
878         $(GTK_LIBS)
879
880 systemd_tty_ask_password_agent_SOURCES = \
881         src/tty-ask-password-agent.c \
882         src/utmp-wtmp.c
883
884 systemd_tty_ask_password_agent_LDADD = \
885         libsystemd-basic.la
886
887 pam_systemd_la_SOURCES = \
888         src/pam-module.c \
889         src/cgroup-util.c \
890         src/sd-daemon.c
891
892 pam_systemd_la_CFLAGS = \
893         $(AM_CFLAGS)
894         -fvisibility=hidden
895
896 pam_systemd_la_LDFLAGS = \
897         -module \
898         -export-dynamic \
899         -avoid-version \
900         -shared \
901         -export-symbols-regex '^pam_sm_.*'
902
903 pam_systemd_la_LIBADD = \
904         libsystemd-basic.la \
905         $(PAM_LIBS)
906
907 SED_PROCESS = \
908         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
909         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
910                 -e 's,@rootbindir\@,$(rootbindir),g' \
911                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
912                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
913                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
914                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
915                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
916                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
917                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
918                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
919                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
920                 -e 's,@prefix\@,$(prefix),g' \
921                 < $< > $@
922
923 units/%: units/%.in Makefile
924         $(SED_PROCESS)
925
926 man/%: man/%.in Makefile
927         $(SED_PROCESS)
928
929 %.pc: %.pc.in Makefile
930         $(SED_PROCESS)
931
932 M4_PROCESS_SYSTEM = \
933         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
934         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
935
936 M4_PROCESS_SESSION = \
937         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
938         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
939
940 units/%: units/%.m4 Makefile
941         $(M4_PROCESS_SYSTEM)
942
943 units/session/%: units/%.m4 Makefile
944         $(M4_PROCESS_SESSION)
945
946 CLEANFILES = \
947         $(nodist_systemunit_DATA) \
948         $(nodist_sessionunit_DATA) \
949         $(nodist_man_MANS) \
950         ${XML_IN_FILES:.xml.in=.html} \
951         $(pkgconfigdata_DATA)
952
953 if HAVE_VALAC
954 CLEANFILES += \
955         ${systemadm_SOURCES:.vala=.c}
956 endif
957
958 if HAVE_XSLTPROC
959 XSLTPROC_FLAGS = \
960         --nonet \
961         --param funcsynopsis.style "'ansi'"
962
963 XSLTPROC_PROCESS_MAN = \
964         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
965         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
966
967 XSLTPROC_PROCESS_MAN_IN = \
968         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
969         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
970         mv ${@:.in=} $@
971
972 XSLTPROC_PROCESS_HTML = \
973         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
974         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
975
976 XSLTPROC_PROCESS_HTML_IN = \
977         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
978         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
979         mv ${@:.in=} $@
980
981 man/%.1: man/%.xml
982         $(XSLTPROC_PROCESS_MAN)
983
984 man/%.1.in: man/%.xml.in
985         $(XSLTPROC_PROCESS_MAN)
986
987 man/%.3: man/%.xml
988         $(XSLTPROC_PROCESS_MAN)
989
990 man/%.3.in: man/%.xml.in
991         $(XSLTPROC_PROCESS_MAN)
992
993 man/%.5: man/%.xml
994         $(XSLTPROC_PROCESS_MAN)
995
996 man/%.5.in: man/%.xml.in
997         $(XSLTPROC_PROCESS_MAN)
998
999 man/%.7: man/%.xml
1000         $(XSLTPROC_PROCESS_MAN)
1001
1002 man/%.7.in: man/%.xml.in
1003         $(XSLTPROC_PROCESS_MAN_IN)
1004
1005 man/%.8: man/%.xml
1006         $(XSLTPROC_PROCESS_MAN)
1007
1008 man/%.8.in: man/%.xml.in
1009         $(XSLTPROC_PROCESS_MAN_IN)
1010
1011 man/%.html: man/%.xml
1012         $(XSLTPROC_PROCESS_HTML)
1013
1014 man/%.html.in: man/%.xml.in
1015         $(XSLTPROC_PROCESS_HTML_IN)
1016
1017 CLEANFILES += \
1018         $(dist_man_MANS) \
1019         ${nodist_man_MANS:=.in} \
1020         ${XML_FILES:.xml=.html} \
1021         ${XML_IN_FILES:.xml.in=.html.in}
1022 endif
1023
1024 org.freedesktop.systemd1.%.xml: systemd
1025         $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1026
1027 CLEANFILES += \
1028         $(dbusinterface_DATA)
1029
1030 install-data-hook:
1031         $(MKDIR_P) -m 0755 \
1032                 $(DESTDIR)$(systemunitdir) \
1033                 $(DESTDIR)$(sessionunitdir) \
1034                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1035                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1036                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1037                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1038                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1039                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1040                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1041                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1042                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1043                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1044                 $(DESTDIR)$(pkgsysconfdir)/system \
1045                 $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants \
1046                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1047                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1048                 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1049                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1050                 $(DESTDIR)$(pkgsysconfdir)/session \
1051                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1052         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1053                 rm -f session && \
1054                 $(LN_S) $(pkgsysconfdir)/session session )
1055         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1056                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1057                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1058                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1059                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1060                 $(LN_S) ../syslog.socket syslog.socket )
1061         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1062                 rm -f systemd-update-utmp-runlevel.service && \
1063                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1064         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1065                 rm -f systemd-update-utmp-runlevel.service && \
1066                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1067         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1068                 rm -f systemd-update-utmp-runlevel.service && \
1069                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1070         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1071                 rm -f systemd-update-utmp-runlevel.service && \
1072                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1073         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1074                 rm -f systemd-update-utmp-runlevel.service && \
1075                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1076         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1077                 rm -f systemd-update-utmp-shutdown.service \
1078                         hwclock-save.service \
1079                         systemd-random-seed-save.service && \
1080                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1081                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1082                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1083         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1084                 rm -f systemd-remount-api-vfs.service \
1085                         fsck-root.service \
1086                         remount-rootfs.service \
1087                         var-run.mount \
1088                         var-lock.mount && \
1089                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1090                 $(LN_S) ../fsck-root.service fsck-root.service && \
1091                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1092                 $(LN_S) ../var-run.mount var-run.mount && \
1093                 $(LN_S) ../var-lock.mount var-lock.mount )
1094         ( cd $(DESTDIR)$(sessionunitdir) && \
1095                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1096                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1097                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1098                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1099                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1100                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1101                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1102         ( cd $(DESTDIR)$(systemunitdir) && \
1103                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1104                 $(LN_S) poweroff.target runlevel0.target && \
1105                 $(LN_S) rescue.target runlevel1.target && \
1106                 $(LN_S) multi-user.target runlevel2.target && \
1107                 $(LN_S) multi-user.target runlevel3.target && \
1108                 $(LN_S) multi-user.target runlevel4.target && \
1109                 $(LN_S) graphical.target runlevel5.target && \
1110                 $(LN_S) reboot.target runlevel6.target )
1111         ( cd $(DESTDIR)$(systemunitdir) && \
1112                 rm -f default.target ctrl-alt-del.target && \
1113                 $(LN_S) graphical.target default.target && \
1114                 $(LN_S) reboot.target ctrl-alt-del.target )
1115         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1116                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1117                 $(LN_S) ../getty.target getty.target && \
1118                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1119                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1120         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1121                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1122                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1123                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1124                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1125                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1126                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1127                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1128         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1129                 rm -f quotaon.service quotacheck.service && \
1130                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1131                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1132         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1133                 rm -f remote-fs.target && \
1134                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1135         ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1136                 rm -f hwclock-load.service && \
1137                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1138         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1139                 rm -f dev-hugepages.automount \
1140                         dev-mqueue.automount \
1141                         proc-sys-fs-binfmt_misc.automount \
1142                         sys-kernel-debug.automount \
1143                         sys-kernel-security.automount \
1144                         systemd-vconsole-setup.service \
1145                         systemd-modules-load.service \
1146                         systemd-random-seed-load.service \
1147                         systemd-tmpfiles-setup.service \
1148                         sysctl.service \
1149                         systemd-tmpfiles-clean.timer && \
1150                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1151                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1152                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1153                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1154                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1155                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1156                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1157                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1158                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1159                 $(LN_S) ../sysctl.service sysctl.service && \
1160                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1161         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1162                 rm -f org.freedesktop.systemd1.service && \
1163                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1164 if TARGET_FEDORA
1165         $(MKDIR_P) -m 0755 \
1166                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1167                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1168                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1169                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1170                 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1171                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1172                 $(DESTDIR)$(systemunitdir)/final.target.wants
1173         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1174                 rm -f display-manager.service && \
1175                 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1176         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1177                 rm -f prefdm.service && \
1178                 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1179         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1180                 rm -f rc-local.service && \
1181                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1182         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1183                 rm -f halt-local.service && \
1184                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1185         ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1186                 rm -f single.service && \
1187                 $(LN_S) $(systemunitdir)/single.service single.service )
1188         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1189                 rm -f plymouth-quit.service && \
1190                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1191         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1192                 rm -f plymouth-reboot.service && \
1193                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1194         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1195                 rm -f plymouth-poweroff.service && \
1196                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1197         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1198                 rm -f plymouth-halt.service && \
1199                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1200         ( cd $(DESTDIR)$(systemunitdir) && \
1201                 rm -f local.service && \
1202                 $(LN_S) rc-local.service local.service )
1203         ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1204                 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1205 endif
1206 if TARGET_GENTOO
1207         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1208                 rm -f display-manager.service && \
1209                 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1210         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1211                 rm -f xdm.service && \
1212                 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1213 endif
1214 if TARGET_DEBIAN_OR_UBUNTU
1215         $(MKDIR_P) -m 0755 \
1216                 $(DESTDIR)$(systemunitdir)/umount.target.wants
1217         ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1218                 rm -f umountfs.service umountnfs.service umountroot.service && \
1219                 $(LN_S) ../umountfs.service umountfs.service && \
1220                 $(LN_S) ../umountnfs.service umountnfs.service && \
1221                 $(LN_S) ../umountroot.service umountroot.service )
1222         ( cd $(DESTDIR)$(systemunitdir) && \
1223                 rm -f runlevel5.target && \
1224                 $(LN_S) multi-user.target runlevel5.target )
1225 endif
1226
1227 DISTCHECK_CONFIGURE_FLAGS = \
1228         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1229         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1230         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1231         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1232         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1233         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1234         --with-rootdir=$$dc_install_base/$(rootdir)
1235
1236 upload: all distcheck
1237         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1238         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1239         scp man/*.html tango:public/systemd-man/
1240
1241 git-tag:
1242         git tag "v$(VERSION)" -m "systemd $(VERSION)"
1243
1244 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1245 fedora: install
1246         rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1247         rm /lib/systemd/system/local-fs.target.wants/var-lock.mount