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