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