chiark / gitweb /
9c76fc807a08ef7cbecc20f652893b3da5c6399e
[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/sysinit.service \
321         units/arch/rc-local.service
322 endif
323
324 dist_doc_DATA = \
325         README \
326         LICENSE \
327         DISTRO_PORTING \
328         src/sd-daemon.h \
329         src/sd-daemon.c \
330         src/sd-readahead.h \
331         src/sd-readahead.c
332
333 pkgconfigdata_DATA = \
334         systemd.pc
335
336 dist_polkitpolicy_DATA = \
337         src/org.freedesktop.systemd1.policy
338
339 noinst_LTLIBRARIES = \
340         libsystemd-basic.la \
341         libsystemd-core.la
342
343 libsystemd_basic_la_SOURCES = \
344         src/util.c \
345         src/label.c \
346         src/hashmap.c \
347         src/set.c \
348         src/strv.c \
349         src/conf-parser.c \
350         src/socket-util.c \
351         src/log.c \
352         src/ratelimit.c
353
354 libsystemd_basic_la_CFLAGS = \
355         $(AM_CFLAGS) \
356         $(SELINUX_CFLAGS)
357
358 libsystemd_basic_la_LIBADD = \
359         $(SELINUX_LIBS)
360
361 libsystemd_core_la_SOURCES = \
362         src/unit.c \
363         src/job.c \
364         src/manager.c \
365         src/path-lookup.c \
366         src/load-fragment.c \
367         src/service.c \
368         src/automount.c \
369         src/mount.c \
370         src/swap.c \
371         src/device.c \
372         src/target.c \
373         src/snapshot.c \
374         src/socket.c \
375         src/timer.c \
376         src/path.c \
377         src/load-dropin.c \
378         src/execute.c \
379         src/utmp-wtmp.c \
380         src/exit-status.c \
381         src/dbus.c \
382         src/dbus-manager.c \
383         src/dbus-unit.c \
384         src/dbus-job.c \
385         src/dbus-service.c \
386         src/dbus-socket.c \
387         src/dbus-timer.c \
388         src/dbus-target.c \
389         src/dbus-mount.c \
390         src/dbus-automount.c \
391         src/dbus-swap.c \
392         src/dbus-snapshot.c \
393         src/dbus-device.c \
394         src/dbus-execute.c \
395         src/dbus-path.c \
396         src/cgroup.c \
397         src/mount-setup.c \
398         src/hostname-setup.c \
399         src/loopback-setup.c \
400         src/kmod-setup.c \
401         src/locale-setup.c \
402         src/specifier.c \
403         src/unit-name.c \
404         src/fdset.c \
405         src/namespace.c \
406         src/tcpwrap.c \
407         src/cgroup-util.c \
408         src/condition.c
409
410 libsystemd_core_la_CFLAGS = \
411         $(AM_CFLAGS) \
412         $(DBUS_CFLAGS) \
413         $(UDEV_CFLAGS) \
414         $(LIBWRAP_CFLAGS) \
415         $(PAM_CFLAGS) \
416         $(AUDIT_CFLAGS)
417
418 libsystemd_core_la_LIBADD = \
419         libsystemd-basic.la \
420         $(DBUS_LIBS) \
421         $(UDEV_LIBS) \
422         $(LIBWRAP_LIBS) \
423         $(PAM_LIBS) \
424         $(AUDIT_LIBS)
425
426 # This is needed because automake is buggy in how it generates the
427 # rules for C programs, but not Vala programs.  We therefore can't
428 # list the .h files as dependencies if we want make dist to work.
429
430 EXTRA_DIST += \
431         ${libsystemd_basic_la_SOURCES:.c=.h} \
432         ${libsystemd_core_la_SOURCES:.c=.h} \
433         src/macro.h \
434         src/ioprio.h \
435         src/missing.h \
436         src/list.h \
437         src/securebits.h \
438         src/linux/auto_dev-ioctl.h \
439         src/linux/fanotify.h \
440         src/initreq.h \
441         src/sd-daemon.h \
442         src/sd-readahead.h \
443         src/special.h \
444         src/dbus-common.h \
445         src/bus-errors.h \
446         src/cgroup-show.h \
447         src/build.h \
448         src/shutdownd.h \
449         src/umount.h \
450         src/readahead-common.h
451
452 MANPAGES = \
453         man/systemd.1 \
454         man/systemctl.1 \
455         man/systemadm.1 \
456         man/systemd-cgls.1 \
457         man/systemd-notify.1 \
458         man/sd_notify.3 \
459         man/sd_readahead.3 \
460         man/sd_booted.3 \
461         man/sd_listen_fds.3 \
462         man/sd_is_fifo.3 \
463         man/systemd.unit.5 \
464         man/systemd.service.5 \
465         man/systemd.socket.5 \
466         man/systemd.mount.5 \
467         man/systemd.automount.5 \
468         man/systemd.swap.5 \
469         man/systemd.timer.5 \
470         man/systemd.path.5 \
471         man/systemd.target.5 \
472         man/systemd.device.5 \
473         man/systemd.snapshot.5 \
474         man/systemd.exec.5 \
475         man/daemon.7 \
476         man/sd-daemon.7 \
477         man/sd-readahead.7 \
478         man/runlevel.8 \
479         man/telinit.8 \
480         man/halt.8 \
481         man/shutdown.8 \
482         man/pam_systemd.8 \
483         man/systemd.conf.5
484
485 MANPAGES_ALIAS = \
486         man/reboot.8 \
487         man/poweroff.8 \
488         man/sd_is_socket.3 \
489         man/sd_is_socket_unix.3 \
490         man/sd_is_socket_inet.3 \
491         man/sd_notifyf.3 \
492         man/init.1
493
494 man/reboot.8: man/halt.8
495 man/poweroff.8: man/halt.8
496 man/sd_is_socket.3: man/sd_is_fifo.3
497 man/sd_is_socket_unix.3: man/sd_is_fifo.3
498 man/sd_is_socket_inet.3: man/sd_is_fifo.3
499 man/sd_notifyf.3: man/sd_notify.3
500 man/init.1: man/systemd.1
501
502 dist_man_MANS = \
503         $(MANPAGES) \
504         $(MANPAGES_ALIAS)
505
506 nodist_man_MANS = \
507         man/systemd.special.7
508
509 XML_FILES = \
510         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
511
512 XML_IN_FILES = \
513         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
514
515 dist_noinst_DATA = \
516         ${XML_FILES:.xml=.html}
517
518 nodist_noinst_DATA = \
519         ${XML_IN_FILES:.xml.in=.html}
520
521 EXTRA_DIST += \
522         $(XML_FILES) \
523         $(XML_IN_FILES) \
524         ${nodist_man_MANS:=.in} \
525         ${XML_IN_FILES:.xml.in=.html.in}
526
527 systemd_SOURCES = \
528         src/main.c
529
530 systemd_CFLAGS = \
531         $(AM_CFLAGS) \
532         $(DBUS_CFLAGS) \
533         $(UDEV_CFLAGS)
534
535 systemd_LDADD = \
536         libsystemd-core.la
537
538 test_engine_SOURCES = \
539         src/test-engine.c
540
541 test_engine_CFLAGS = $(systemd_CFLAGS)
542 test_engine_LDADD = $(systemd_LDADD)
543
544 test_job_type_SOURCES = \
545         src/test-job-type.c
546
547 test_job_type_CFLAGS = $(systemd_CFLAGS)
548 test_job_type_LDADD = $(systemd_LDADD)
549
550 test_ns_SOURCES = \
551         src/test-ns.c
552
553 test_ns_CFLAGS = $(systemd_CFLAGS)
554 test_ns_LDADD = $(systemd_LDADD)
555
556 test_loopback_SOURCES = \
557         src/test-loopback.c \
558         src/loopback-setup.c
559
560 test_loopback_LDADD = \
561         libsystemd-basic.la
562
563 test_hostname_SOURCES = \
564         src/test-hostname.c \
565         src/hostname-setup.c
566
567 test_hostname_LDADD = \
568         libsystemd-basic.la
569
570 test_daemon_SOURCES = \
571         src/test-daemon.c \
572         src/sd-daemon.c
573
574 test_daemon_LDADD = \
575         libsystemd-basic.la
576
577 test_cgroup_SOURCES = \
578         src/test-cgroup.c \
579         src/cgroup-util.c
580
581 test_cgroup_CFLAGS = \
582         $(AM_CFLAGS)
583
584 test_cgroup_LDADD = \
585         libsystemd-basic.la
586
587 test_env_replace_SOURCES = \
588         src/test-env-replace.c
589
590 test_env_replace_CFLAGS = \
591         $(AM_CFLAGS)
592
593 test_env_replace_LDADD = \
594         libsystemd-basic.la
595
596 systemd_logger_SOURCES = \
597         src/logger.c \
598         src/sd-daemon.c \
599         src/tcpwrap.c
600
601 systemd_logger_LDADD = \
602         libsystemd-basic.la \
603         $(LIBWRAP_LIBS)
604
605 systemd_initctl_SOURCES = \
606         src/initctl.c \
607         src/sd-daemon.c \
608         src/dbus-common.c
609
610 systemd_initctl_CFLAGS = \
611         $(AM_CFLAGS) \
612         $(DBUS_CFLAGS)
613
614 systemd_initctl_LDADD = \
615         libsystemd-basic.la \
616         $(DBUS_LIBS)
617
618 systemd_update_utmp_SOURCES = \
619         src/update-utmp.c \
620         src/dbus-common.c \
621         src/utmp-wtmp.c
622
623 systemd_update_utmp_CFLAGS = \
624         $(AM_CFLAGS) \
625         $(DBUS_CFLAGS) \
626         $(AUDIT_CFLAGS)
627
628 systemd_update_utmp_LDADD = \
629         libsystemd-basic.la \
630         $(DBUS_LIBS) \
631         $(AUDIT_LIBS)
632
633 systemd_random_seed_SOURCES = \
634         src/random-seed.c
635
636 systemd_random_seed_CFLAGS = \
637         $(AM_CFLAGS)
638
639 systemd_random_seed_LDADD = \
640         libsystemd-basic.la
641
642 systemd_shutdownd_SOURCES = \
643         src/utmp-wtmp.c \
644         src/sd-daemon.c \
645         src/shutdownd.c
646
647 systemd_shutdownd_CFLAGS = \
648         $(AM_CFLAGS)
649
650 systemd_shutdownd_LDADD = \
651         libsystemd-basic.la
652
653 systemd_shutdown_SOURCES = \
654         src/mount-setup.c \
655         src/umount.c \
656         src/shutdown.c
657
658 systemd_shutdown_CFLAGS = \
659         $(AM_CFLAGS) \
660         $(UDEV_CFLAGS)
661
662 systemd_shutdown_LDADD = \
663         libsystemd-basic.la \
664         $(UDEV_LIBS)
665
666 systemd_modules_load_SOURCES = \
667         src/modules-load.c
668
669 systemd_modules_load_CFLAGS = \
670         $(AM_CFLAGS)
671
672 systemd_modules_load_LDADD = \
673         libsystemd-basic.la
674
675 systemd_tmpfiles_SOURCES = \
676         src/tmpfiles.c
677
678 systemd_tmpfiles_CFLAGS = \
679         $(AM_CFLAGS)
680
681 systemd_tmpfiles_LDADD = \
682         libsystemd-basic.la
683
684 systemd_fsck_SOURCES = \
685         src/fsck.c \
686         src/dbus-common.c
687
688 systemd_fsck_CFLAGS = \
689         $(AM_CFLAGS) \
690         $(UDEV_CFLAGS) \
691         $(DBUS_CFLAGS)
692
693 systemd_fsck_LDADD = \
694         libsystemd-basic.la \
695         $(UDEV_LIBS) \
696         $(DBUS_LIBS)
697
698 systemd_quotacheck_SOURCES = \
699         src/quotacheck.c
700
701 systemd_quotacheck_CFLAGS = \
702         $(AM_CFLAGS)
703
704 systemd_quotacheck_LDADD = \
705         libsystemd-basic.la
706
707 systemd_user_sessions_SOURCES = \
708         src/user-sessions.c \
709         src/cgroup-util.c
710
711 systemd_user_sessions_CFLAGS = \
712         $(AM_CFLAGS)
713
714 systemd_user_sessions_LDADD = \
715         libsystemd-basic.la
716
717 systemd_vconsole_setup_SOURCES = \
718         src/vconsole-setup.c
719
720 systemd_vconsole_setup_CFLAGS = \
721         $(AM_CFLAGS)
722
723 systemd_vconsole_setup_LDADD = \
724         libsystemd-basic.la
725
726 systemd_remount_api_vfs_SOURCES = \
727         src/remount-api-vfs.c \
728         src/mount-setup.c
729
730 systemd_remount_api_vfs_CFLAGS = \
731         $(AM_CFLAGS)
732
733 systemd_remount_api_vfs_LDADD = \
734         libsystemd-basic.la
735
736 systemd_cgroups_agent_SOURCES = \
737         src/cgroups-agent.c \
738         src/dbus-common.c
739
740 systemd_cgroups_agent_CFLAGS = \
741         $(AM_CFLAGS) \
742         $(DBUS_CFLAGS)
743
744 systemd_cgroups_agent_LDADD = \
745         libsystemd-basic.la \
746         $(DBUS_LIBS)
747
748 systemd_kmsg_syslogd_SOURCES = \
749         src/kmsg-syslogd.c \
750         src/sd-daemon.c \
751         src/fdset.c
752
753 systemd_kmsg_syslogd_CFLAGS = \
754         $(AM_CFLAGS)
755
756 systemd_kmsg_syslogd_LDADD = \
757         libsystemd-basic.la
758
759 systemctl_SOURCES = \
760         src/systemctl.c \
761         src/utmp-wtmp.c \
762         src/dbus-common.c \
763         src/path-lookup.c \
764         src/sd-daemon.c \
765         src/cgroup-show.c \
766         src/cgroup-util.c \
767         src/exit-status.c \
768         src/unit-name.c
769
770 systemctl_CFLAGS = \
771         $(AM_CFLAGS) \
772         $(DBUS_CFLAGS)
773
774 systemctl_LDADD = \
775         libsystemd-basic.la \
776         $(DBUS_LIBS)
777
778 systemd_notify_SOURCES = \
779         src/notify.c \
780         src/sd-daemon.c \
781         src/sd-readahead.c
782
783 systemd_notify_LDADD = \
784         libsystemd-basic.la
785
786 systemd_ask_password_SOURCES = \
787         src/ask-password.c
788
789 systemd_ask_password_LDADD = \
790         libsystemd-basic.la
791
792 systemd_reply_password_SOURCES = \
793         src/reply-password.c
794
795 systemd_reply_password_LDADD = \
796         libsystemd-basic.la
797
798 systemd_readahead_collect_SOURCES = \
799         src/readahead-collect.c \
800         src/sd-daemon.c \
801         src/readahead-common.c
802
803 systemd_readahead_collect_CFLAGS = \
804         $(UDEV_CFLAGS)
805
806 systemd_readahead_collect_LDADD = \
807         libsystemd-basic.la \
808         $(UDEV_LIBS)
809
810 systemd_readahead_replay_SOURCES = \
811         src/readahead-replay.c \
812         src/sd-daemon.c \
813         src/readahead-common.c
814
815 systemd_readahead_replay_CFLAGS = \
816         $(UDEV_CFLAGS)
817
818 systemd_readahead_replay_LDADD = \
819         libsystemd-basic.la \
820         $(UDEV_LIBS)
821
822 systemd_cgls_SOURCES = \
823         src/cgls.c \
824         src/cgroup-show.c \
825         src/cgroup-util.c
826
827 systemd_cgls_CFLAGS = \
828         $(AM_CFLAGS)
829
830 systemd_cgls_LDADD = \
831         libsystemd-basic.la
832
833 systemadm_SOURCES = \
834         src/systemadm.vala \
835         src/systemd-interfaces.vala
836
837 systemadm_CFLAGS = \
838         $(AM_CFLAGS) \
839         $(DBUSGLIB_CFLAGS) \
840         $(GTK_CFLAGS) \
841         -Wno-unused-variable \
842         -Wno-unused-function \
843         -Wno-shadow \
844         -Wno-format-nonliteral
845
846 systemadm_VALAFLAGS = \
847         --pkg=dbus-glib-1 \
848         --pkg=posix \
849         --pkg=gtk+-2.0 \
850         -g
851
852 systemadm_LDADD = \
853         $(DBUSGLIB_LIBS) \
854         $(GTK_LIBS)
855
856 systemd_gnome_ask_password_agent_SOURCES = \
857         src/gnome-ask-password-agent.vala
858
859 systemd_gnome_ask_password_agent_CFLAGS = \
860         $(AM_CFLAGS) \
861         $(DBUSGLIB_CFLAGS) \
862         $(GTK_CFLAGS) \
863         -Wno-unused-variable \
864         -Wno-unused-function \
865         -Wno-shadow \
866         -Wno-format-nonliteral
867
868 systemd_gnome_ask_password_agent_VALAFLAGS = \
869         --pkg=dbus-glib-1 \
870         --pkg=posix \
871         --pkg=gtk+-2.0 \
872         --pkg=linux \
873         --pkg=gio-unix-2.0 \
874         --pkg=libnotify \
875         -g
876
877 systemd_gnome_ask_password_agent_LDADD = \
878         $(DBUSGLIB_LIBS) \
879         $(GTK_LIBS)
880
881 systemd_tty_ask_password_agent_SOURCES = \
882         src/tty-ask-password-agent.c \
883         src/utmp-wtmp.c
884
885 systemd_tty_ask_password_agent_LDADD = \
886         libsystemd-basic.la
887
888 pam_systemd_la_SOURCES = \
889         src/pam-module.c \
890         src/cgroup-util.c \
891         src/sd-daemon.c
892
893 pam_systemd_la_CFLAGS = \
894         $(AM_CFLAGS)
895         -fvisibility=hidden
896
897 pam_systemd_la_LDFLAGS = \
898         -module \
899         -export-dynamic \
900         -avoid-version \
901         -shared \
902         -export-symbols-regex '^pam_sm_.*'
903
904 pam_systemd_la_LIBADD = \
905         libsystemd-basic.la \
906         $(PAM_LIBS)
907
908 SED_PROCESS = \
909         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
910         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
911                 -e 's,@rootbindir\@,$(rootbindir),g' \
912                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
913                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
914                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
915                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
916                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
917                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
918                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
919                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
920                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
921                 -e 's,@prefix\@,$(prefix),g' \
922                 < $< > $@
923
924 units/%: units/%.in Makefile
925         $(SED_PROCESS)
926
927 man/%: man/%.in Makefile
928         $(SED_PROCESS)
929
930 %.pc: %.pc.in Makefile
931         $(SED_PROCESS)
932
933 M4_PROCESS_SYSTEM = \
934         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
935         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
936
937 M4_PROCESS_SESSION = \
938         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
939         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
940
941 units/%: units/%.m4 Makefile
942         $(M4_PROCESS_SYSTEM)
943
944 units/session/%: units/%.m4 Makefile
945         $(M4_PROCESS_SESSION)
946
947 CLEANFILES = \
948         $(nodist_systemunit_DATA) \
949         $(nodist_sessionunit_DATA) \
950         $(nodist_man_MANS) \
951         ${XML_IN_FILES:.xml.in=.html} \
952         $(pkgconfigdata_DATA)
953
954 if HAVE_VALAC
955 CLEANFILES += \
956         ${systemadm_SOURCES:.vala=.c}
957 endif
958
959 if HAVE_XSLTPROC
960 XSLTPROC_FLAGS = \
961         --nonet \
962         --param funcsynopsis.style "'ansi'"
963
964 XSLTPROC_PROCESS_MAN = \
965         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
966         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
967
968 XSLTPROC_PROCESS_MAN_IN = \
969         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
970         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
971         mv ${@:.in=} $@
972
973 XSLTPROC_PROCESS_HTML = \
974         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
975         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
976
977 XSLTPROC_PROCESS_HTML_IN = \
978         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
979         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
980         mv ${@:.in=} $@
981
982 man/%.1: man/%.xml
983         $(XSLTPROC_PROCESS_MAN)
984
985 man/%.1.in: man/%.xml.in
986         $(XSLTPROC_PROCESS_MAN)
987
988 man/%.3: man/%.xml
989         $(XSLTPROC_PROCESS_MAN)
990
991 man/%.3.in: man/%.xml.in
992         $(XSLTPROC_PROCESS_MAN)
993
994 man/%.5: man/%.xml
995         $(XSLTPROC_PROCESS_MAN)
996
997 man/%.5.in: man/%.xml.in
998         $(XSLTPROC_PROCESS_MAN)
999
1000 man/%.7: man/%.xml
1001         $(XSLTPROC_PROCESS_MAN)
1002
1003 man/%.7.in: man/%.xml.in
1004         $(XSLTPROC_PROCESS_MAN_IN)
1005
1006 man/%.8: man/%.xml
1007         $(XSLTPROC_PROCESS_MAN)
1008
1009 man/%.8.in: man/%.xml.in
1010         $(XSLTPROC_PROCESS_MAN_IN)
1011
1012 man/%.html: man/%.xml
1013         $(XSLTPROC_PROCESS_HTML)
1014
1015 man/%.html.in: man/%.xml.in
1016         $(XSLTPROC_PROCESS_HTML_IN)
1017
1018 CLEANFILES += \
1019         $(dist_man_MANS) \
1020         ${nodist_man_MANS:=.in} \
1021         ${XML_FILES:.xml=.html} \
1022         ${XML_IN_FILES:.xml.in=.html.in}
1023 endif
1024
1025 org.freedesktop.systemd1.%.xml: systemd
1026         $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1027
1028 CLEANFILES += \
1029         $(dbusinterface_DATA)
1030
1031 install-data-hook:
1032         $(MKDIR_P) -m 0755 \
1033                 $(DESTDIR)$(systemunitdir) \
1034                 $(DESTDIR)$(sessionunitdir) \
1035                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1036                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1037                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1038                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1039                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1040                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1041                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1042                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1043                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1044                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1045                 $(DESTDIR)$(pkgsysconfdir)/system \
1046                 $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants \
1047                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1048                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1049                 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1050                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1051                 $(DESTDIR)$(pkgsysconfdir)/session \
1052                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1053         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1054                 rm -f session && \
1055                 $(LN_S) $(pkgsysconfdir)/session session )
1056         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1057                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1058                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1059                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1060                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1061                 $(LN_S) ../syslog.socket syslog.socket )
1062         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1063                 rm -f systemd-update-utmp-runlevel.service && \
1064                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1065         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1066                 rm -f systemd-update-utmp-runlevel.service && \
1067                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1068         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1069                 rm -f systemd-update-utmp-runlevel.service && \
1070                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1071         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1072                 rm -f systemd-update-utmp-runlevel.service && \
1073                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1074         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1075                 rm -f systemd-update-utmp-runlevel.service && \
1076                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1077         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1078                 rm -f systemd-update-utmp-shutdown.service \
1079                         hwclock-save.service \
1080                         systemd-random-seed-save.service && \
1081                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1082                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1083                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1084         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1085                 rm -f systemd-remount-api-vfs.service \
1086                         fsck-root.service \
1087                         remount-rootfs.service \
1088                         var-run.mount \
1089                         var-lock.mount && \
1090                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1091                 $(LN_S) ../fsck-root.service fsck-root.service && \
1092                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1093                 $(LN_S) ../var-run.mount var-run.mount && \
1094                 $(LN_S) ../var-lock.mount var-lock.mount )
1095         ( cd $(DESTDIR)$(sessionunitdir) && \
1096                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1097                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1098                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1099                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1100                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1101                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1102                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1103         ( cd $(DESTDIR)$(systemunitdir) && \
1104                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1105                 $(LN_S) poweroff.target runlevel0.target && \
1106                 $(LN_S) rescue.target runlevel1.target && \
1107                 $(LN_S) multi-user.target runlevel2.target && \
1108                 $(LN_S) multi-user.target runlevel3.target && \
1109                 $(LN_S) multi-user.target runlevel4.target && \
1110                 $(LN_S) graphical.target runlevel5.target && \
1111                 $(LN_S) reboot.target runlevel6.target )
1112         ( cd $(DESTDIR)$(systemunitdir) && \
1113                 rm -f default.target ctrl-alt-del.target && \
1114                 $(LN_S) graphical.target default.target && \
1115                 $(LN_S) reboot.target ctrl-alt-del.target )
1116         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1117                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1118                 $(LN_S) ../getty.target getty.target && \
1119                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1120                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1121         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1122                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1123                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1124                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1125                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1126                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1127                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1128                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1129         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1130                 rm -f quotaon.service quotacheck.service && \
1131                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1132                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1133         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1134                 rm -f remote-fs.target && \
1135                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1136         ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1137                 rm -f hwclock-load.service && \
1138                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1139         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1140                 rm -f dev-hugepages.automount \
1141                         dev-mqueue.automount \
1142                         proc-sys-fs-binfmt_misc.automount \
1143                         sys-kernel-debug.automount \
1144                         sys-kernel-security.automount \
1145                         systemd-vconsole-setup.service \
1146                         systemd-modules-load.service \
1147                         systemd-random-seed-load.service \
1148                         systemd-tmpfiles-setup.service \
1149                         sysctl.service \
1150                         systemd-tmpfiles-clean.timer && \
1151                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1152                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1153                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1154                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1155                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1156                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1157                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1158                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1159                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1160                 $(LN_S) ../sysctl.service sysctl.service && \
1161                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1162         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1163                 rm -f org.freedesktop.systemd1.service && \
1164                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1165 if TARGET_FEDORA
1166         $(MKDIR_P) -m 0755 \
1167                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1168                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1169                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1170                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1171                 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1172                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1173                 $(DESTDIR)$(systemunitdir)/final.target.wants
1174         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1175                 rm -f display-manager.service && \
1176                 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1177         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1178                 rm -f prefdm.service && \
1179                 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1180         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1181                 rm -f rc-local.service && \
1182                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1183         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1184                 rm -f halt-local.service && \
1185                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1186         ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1187                 rm -f single.service && \
1188                 $(LN_S) $(systemunitdir)/single.service single.service )
1189         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1190                 rm -f plymouth-quit.service && \
1191                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1192         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1193                 rm -f plymouth-reboot.service && \
1194                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1195         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1196                 rm -f plymouth-poweroff.service && \
1197                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1198         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1199                 rm -f plymouth-halt.service && \
1200                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1201         ( cd $(DESTDIR)$(systemunitdir) && \
1202                 rm -f local.service && \
1203                 $(LN_S) rc-local.service local.service )
1204         ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1205                 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1206 endif
1207 if TARGET_GENTOO
1208         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1209                 rm -f display-manager.service && \
1210                 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1211         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1212                 rm -f xdm.service && \
1213                 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1214 endif
1215 if TARGET_DEBIAN_OR_UBUNTU
1216         $(MKDIR_P) -m 0755 \
1217                 $(DESTDIR)$(systemunitdir)/umount.target.wants
1218         ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1219                 rm -f umountfs.service umountnfs.service umountroot.service && \
1220                 $(LN_S) ../umountfs.service umountfs.service && \
1221                 $(LN_S) ../umountnfs.service umountnfs.service && \
1222                 $(LN_S) ../umountroot.service umountroot.service )
1223         ( cd $(DESTDIR)$(systemunitdir) && \
1224                 rm -f runlevel5.target && \
1225                 $(LN_S) multi-user.target runlevel5.target )
1226 endif
1227
1228 DISTCHECK_CONFIGURE_FLAGS = \
1229         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1230         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1231         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1232         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1233         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1234         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1235         --with-rootdir=$$dc_install_base/$(rootdir)
1236
1237 upload: all distcheck
1238         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1239         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1240         scp man/*.html tango:public/systemd-man/
1241
1242 git-tag:
1243         git tag "v$(VERSION)" -m "systemd $(VERSION)"
1244
1245 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1246 fedora: install
1247         rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1248         rm /lib/systemd/system/local-fs.target.wants/var-lock.mount