chiark / gitweb /
fragment: properly handle quotes in assignments in EnvironmentFile= files
[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         units/fedora/plymouth-start.service \
336         units/fedora/plymouth-read-write.service \
337         units/fedora/plymouth-quit.service \
338         units/fedora/plymouth-reboot.service \
339         units/fedora/plymouth-kexec.service \
340         units/fedora/plymouth-poweroff.service \
341         units/fedora/plymouth-halt.service
342 endif
343
344
345 if TARGET_ARCH
346 dist_systemunit_DATA += \
347         units/arch/rc-local.service
348 endif
349
350 dist_doc_DATA = \
351         README \
352         LICENSE \
353         DISTRO_PORTING \
354         src/sd-daemon.h \
355         src/sd-daemon.c \
356         src/sd-readahead.h \
357         src/sd-readahead.c
358
359 pkgconfigdata_DATA = \
360         systemd.pc
361
362 dist_polkitpolicy_DATA = \
363         src/org.freedesktop.systemd1.policy
364
365 noinst_LTLIBRARIES = \
366         libsystemd-basic.la \
367         libsystemd-core.la \
368         libsystemd-daemon.la
369
370 libsystemd_basic_la_SOURCES = \
371         src/util.c \
372         src/label.c \
373         src/hashmap.c \
374         src/set.c \
375         src/strv.c \
376         src/conf-parser.c \
377         src/socket-util.c \
378         src/log.c \
379         src/ratelimit.c
380
381 libsystemd_basic_la_CFLAGS = \
382         $(AM_CFLAGS) \
383         $(SELINUX_CFLAGS)
384
385 libsystemd_basic_la_LIBADD = \
386         $(SELINUX_LIBS)
387
388 libsystemd_core_la_SOURCES = \
389         src/unit.c \
390         src/job.c \
391         src/manager.c \
392         src/path-lookup.c \
393         src/load-fragment.c \
394         src/service.c \
395         src/automount.c \
396         src/mount.c \
397         src/swap.c \
398         src/device.c \
399         src/target.c \
400         src/snapshot.c \
401         src/socket.c \
402         src/timer.c \
403         src/path.c \
404         src/load-dropin.c \
405         src/execute.c \
406         src/utmp-wtmp.c \
407         src/exit-status.c \
408         src/dbus.c \
409         src/dbus-manager.c \
410         src/dbus-unit.c \
411         src/dbus-job.c \
412         src/dbus-service.c \
413         src/dbus-socket.c \
414         src/dbus-timer.c \
415         src/dbus-target.c \
416         src/dbus-mount.c \
417         src/dbus-automount.c \
418         src/dbus-swap.c \
419         src/dbus-snapshot.c \
420         src/dbus-device.c \
421         src/dbus-execute.c \
422         src/dbus-path.c \
423         src/cgroup.c \
424         src/mount-setup.c \
425         src/hostname-setup.c \
426         src/selinux-setup.c \
427         src/loopback-setup.c \
428         src/kmod-setup.c \
429         src/locale-setup.c \
430         src/specifier.c \
431         src/unit-name.c \
432         src/fdset.c \
433         src/namespace.c \
434         src/tcpwrap.c \
435         src/cgroup-util.c \
436         src/condition.c
437
438 libsystemd_core_la_CFLAGS = \
439         $(AM_CFLAGS) \
440         $(DBUS_CFLAGS) \
441         $(UDEV_CFLAGS) \
442         $(LIBWRAP_CFLAGS) \
443         $(PAM_CFLAGS) \
444         $(AUDIT_CFLAGS)
445
446 libsystemd_core_la_LIBADD = \
447         libsystemd-basic.la \
448         $(DBUS_LIBS) \
449         $(UDEV_LIBS) \
450         $(LIBWRAP_LIBS) \
451         $(PAM_LIBS) \
452         $(AUDIT_LIBS)
453
454 libsystemd_daemon_la_SOURCES = \
455         src/sd-daemon.c
456
457 # This is needed because automake is buggy in how it generates the
458 # rules for C programs, but not Vala programs.  We therefore can't
459 # list the .h files as dependencies if we want make dist to work.
460
461 EXTRA_DIST += \
462         ${libsystemd_basic_la_SOURCES:.c=.h} \
463         ${libsystemd_core_la_SOURCES:.c=.h} \
464         ${libsystemd_daemon_la_SOURCES:.c=.h} \
465         src/macro.h \
466         src/ioprio.h \
467         src/missing.h \
468         src/list.h \
469         src/securebits.h \
470         src/linux/auto_dev-ioctl.h \
471         src/linux/fanotify.h \
472         src/initreq.h \
473         src/sd-readahead.h \
474         src/special.h \
475         src/dbus-common.h \
476         src/bus-errors.h \
477         src/cgroup-show.h \
478         src/build.h \
479         src/shutdownd.h \
480         src/umount.h \
481         src/readahead-common.h \
482         src/ask-password-api.h
483
484 MANPAGES = \
485         man/systemd.1 \
486         man/systemctl.1 \
487         man/systemadm.1 \
488         man/systemd-cgls.1 \
489         man/systemd-notify.1 \
490         man/sd_notify.3 \
491         man/sd_readahead.3 \
492         man/sd_booted.3 \
493         man/sd_listen_fds.3 \
494         man/sd_is_fifo.3 \
495         man/systemd.unit.5 \
496         man/systemd.service.5 \
497         man/systemd.socket.5 \
498         man/systemd.mount.5 \
499         man/systemd.automount.5 \
500         man/systemd.swap.5 \
501         man/systemd.timer.5 \
502         man/systemd.path.5 \
503         man/systemd.target.5 \
504         man/systemd.device.5 \
505         man/systemd.snapshot.5 \
506         man/systemd.exec.5 \
507         man/daemon.7 \
508         man/sd-daemon.7 \
509         man/sd-readahead.7 \
510         man/runlevel.8 \
511         man/telinit.8 \
512         man/halt.8 \
513         man/shutdown.8 \
514         man/pam_systemd.8 \
515         man/systemd.conf.5 \
516         man/tmpfiles.d.5 \
517         man/hostname.5 \
518         man/vconsole.conf.5 \
519         man/locale.conf.5 \
520         man/os-release.5 \
521         man/modules-load.d.5
522
523 MANPAGES_ALIAS = \
524         man/reboot.8 \
525         man/poweroff.8 \
526         man/sd_is_socket.3 \
527         man/sd_is_socket_unix.3 \
528         man/sd_is_socket_inet.3 \
529         man/sd_notifyf.3 \
530         man/init.1
531
532 man/reboot.8: man/halt.8
533 man/poweroff.8: man/halt.8
534 man/sd_is_socket.3: man/sd_is_fifo.3
535 man/sd_is_socket_unix.3: man/sd_is_fifo.3
536 man/sd_is_socket_inet.3: man/sd_is_fifo.3
537 man/sd_notifyf.3: man/sd_notify.3
538 man/init.1: man/systemd.1
539
540 dist_man_MANS = \
541         $(MANPAGES) \
542         $(MANPAGES_ALIAS)
543
544 nodist_man_MANS = \
545         man/systemd.special.7
546
547 XML_FILES = \
548         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
549
550 XML_IN_FILES = \
551         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
552
553 dist_noinst_DATA = \
554         ${XML_FILES:.xml=.html}
555
556 nodist_noinst_DATA = \
557         ${XML_IN_FILES:.xml.in=.html}
558
559 EXTRA_DIST += \
560         $(XML_FILES) \
561         $(XML_IN_FILES) \
562         ${nodist_man_MANS:=.in} \
563         ${XML_IN_FILES:.xml.in=.html.in}
564
565 systemd_SOURCES = \
566         src/main.c
567
568 systemd_CFLAGS = \
569         $(AM_CFLAGS) \
570         $(DBUS_CFLAGS) \
571         $(UDEV_CFLAGS)
572
573 systemd_LDADD = \
574         libsystemd-core.la
575
576 test_engine_SOURCES = \
577         src/test-engine.c
578
579 test_engine_CFLAGS = $(systemd_CFLAGS)
580 test_engine_LDADD = $(systemd_LDADD)
581
582 test_job_type_SOURCES = \
583         src/test-job-type.c
584
585 test_job_type_CFLAGS = $(systemd_CFLAGS)
586 test_job_type_LDADD = $(systemd_LDADD)
587
588 test_ns_SOURCES = \
589         src/test-ns.c
590
591 test_ns_CFLAGS = $(systemd_CFLAGS)
592 test_ns_LDADD = $(systemd_LDADD)
593
594 test_loopback_SOURCES = \
595         src/test-loopback.c \
596         src/loopback-setup.c
597
598 test_loopback_LDADD = \
599         libsystemd-basic.la
600
601 test_hostname_SOURCES = \
602         src/test-hostname.c \
603         src/hostname-setup.c
604
605 test_hostname_LDADD = \
606         libsystemd-basic.la
607
608 test_daemon_SOURCES = \
609         src/test-daemon.c
610
611 test_daemon_LDADD = \
612         libsystemd-basic.la \
613         libsystemd-daemon.la
614
615 test_cgroup_SOURCES = \
616         src/test-cgroup.c \
617         src/cgroup-util.c
618
619 test_cgroup_CFLAGS = \
620         $(AM_CFLAGS)
621
622 test_cgroup_LDADD = \
623         libsystemd-basic.la
624
625 test_env_replace_SOURCES = \
626         src/test-env-replace.c
627
628 test_env_replace_CFLAGS = \
629         $(AM_CFLAGS)
630
631 test_env_replace_LDADD = \
632         libsystemd-basic.la
633
634 test_strv_SOURCES = \
635         src/test-strv.c
636
637 test_strv_CFLAGS = \
638         $(AM_CFLAGS)
639
640 test_strv_LDADD = \
641         libsystemd-basic.la
642
643 systemd_logger_SOURCES = \
644         src/logger.c \
645         src/tcpwrap.c
646
647 systemd_logger_LDADD = \
648         libsystemd-basic.la \
649         libsystemd-daemon.la \
650         $(LIBWRAP_LIBS)
651
652 systemd_initctl_SOURCES = \
653         src/initctl.c \
654         src/dbus-common.c
655
656 systemd_initctl_CFLAGS = \
657         $(AM_CFLAGS) \
658         $(DBUS_CFLAGS)
659
660 systemd_initctl_LDADD = \
661         libsystemd-basic.la \
662         libsystemd-daemon.la \
663         $(DBUS_LIBS)
664
665 systemd_update_utmp_SOURCES = \
666         src/update-utmp.c \
667         src/dbus-common.c \
668         src/utmp-wtmp.c
669
670 systemd_update_utmp_CFLAGS = \
671         $(AM_CFLAGS) \
672         $(DBUS_CFLAGS) \
673         $(AUDIT_CFLAGS)
674
675 systemd_update_utmp_LDADD = \
676         libsystemd-basic.la \
677         $(DBUS_LIBS) \
678         $(AUDIT_LIBS)
679
680 systemd_random_seed_SOURCES = \
681         src/random-seed.c
682
683 systemd_random_seed_CFLAGS = \
684         $(AM_CFLAGS)
685
686 systemd_random_seed_LDADD = \
687         libsystemd-basic.la
688
689 systemd_shutdownd_SOURCES = \
690         src/utmp-wtmp.c \
691         src/shutdownd.c
692
693 systemd_shutdownd_CFLAGS = \
694         $(AM_CFLAGS)
695
696 systemd_shutdownd_LDADD = \
697         libsystemd-basic.la \
698         libsystemd-daemon.la
699
700 systemd_shutdown_SOURCES = \
701         src/mount-setup.c \
702         src/umount.c \
703         src/shutdown.c
704
705 systemd_shutdown_CFLAGS = \
706         $(AM_CFLAGS) \
707         $(UDEV_CFLAGS)
708
709 systemd_shutdown_LDADD = \
710         libsystemd-basic.la \
711         $(UDEV_LIBS)
712
713 systemd_modules_load_SOURCES = \
714         src/modules-load.c
715
716 systemd_modules_load_CFLAGS = \
717         $(AM_CFLAGS)
718
719 systemd_modules_load_LDADD = \
720         libsystemd-basic.la
721
722 systemd_tmpfiles_SOURCES = \
723         src/tmpfiles.c
724
725 systemd_tmpfiles_CFLAGS = \
726         $(AM_CFLAGS)
727
728 systemd_tmpfiles_LDADD = \
729         libsystemd-basic.la
730
731 systemd_sysctl_SOURCES = \
732         src/sysctl.c
733
734 systemd_sysctl_CFLAGS = \
735         $(AM_CFLAGS)
736
737 systemd_sysctl_LDADD = \
738         libsystemd-basic.la
739
740 systemd_fsck_SOURCES = \
741         src/fsck.c \
742         src/dbus-common.c
743
744 systemd_fsck_CFLAGS = \
745         $(AM_CFLAGS) \
746         $(UDEV_CFLAGS) \
747         $(DBUS_CFLAGS)
748
749 systemd_fsck_LDADD = \
750         libsystemd-basic.la \
751         $(UDEV_LIBS) \
752         $(DBUS_LIBS)
753
754 systemd_quotacheck_SOURCES = \
755         src/quotacheck.c
756
757 systemd_quotacheck_CFLAGS = \
758         $(AM_CFLAGS)
759
760 systemd_quotacheck_LDADD = \
761         libsystemd-basic.la
762
763 systemd_timestamp_SOURCES = \
764         src/timestamp.c
765
766 systemd_timestamp_CFLAGS = \
767         $(AM_CFLAGS)
768
769 systemd_timestamp_LDADD = \
770         libsystemd-basic.la
771
772 systemd_ac_power_SOURCES = \
773         src/ac-power.c
774
775 systemd_ac_power_CFLAGS = \
776         $(AM_CFLAGS) \
777         $(UDEV_CFLAGS)
778
779 systemd_ac_power_LDADD = \
780         libsystemd-basic.la \
781         $(UDEV_LIBS)
782
783 systemd_cryptsetup_SOURCES = \
784         src/cryptsetup.c \
785         src/ask-password-api.c
786
787 systemd_cryptsetup_CFLAGS = \
788         $(LIBCRYPTSETUP_CFLAGS) \
789         $(UDEV_CFLAGS) \
790         $(AM_CFLAGS)
791
792 systemd_cryptsetup_LDADD = \
793         $(LIBCRYPTSETUP_LIBS) \
794         $(UDEV_LIBS) \
795         libsystemd-basic.la
796
797 systemd_cryptsetup_generator_SOURCES = \
798         src/cryptsetup-generator.c \
799         src/unit-name.c
800
801 systemd_cryptsetup_generator_CFLAGS = \
802         $(AM_CFLAGS)
803
804 systemd_cryptsetup_generator_LDADD = \
805         libsystemd-basic.la
806
807 systemd_user_sessions_SOURCES = \
808         src/user-sessions.c \
809         src/cgroup-util.c
810
811 systemd_user_sessions_CFLAGS = \
812         $(AM_CFLAGS)
813
814 systemd_user_sessions_LDADD = \
815         libsystemd-basic.la
816
817 systemd_vconsole_setup_SOURCES = \
818         src/vconsole-setup.c
819
820 systemd_vconsole_setup_CFLAGS = \
821         $(AM_CFLAGS)
822
823 systemd_vconsole_setup_LDADD = \
824         libsystemd-basic.la
825
826 systemd_remount_api_vfs_SOURCES = \
827         src/remount-api-vfs.c \
828         src/mount-setup.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         $(DBUSGLIB_CFLAGS) \
941         $(GTK_CFLAGS) \
942         -Wno-unused-variable \
943         -Wno-unused-function \
944         -Wno-shadow \
945         -Wno-format-nonliteral
946
947 systemadm_VALAFLAGS = \
948         --pkg=dbus-glib-1 \
949         --pkg=posix \
950         --pkg=gtk+-2.0 \
951         -g
952
953 systemadm_LDADD = \
954         $(DBUSGLIB_LIBS) \
955         $(GTK_LIBS)
956
957 systemd_gnome_ask_password_agent_SOURCES = \
958         src/gnome-ask-password-agent.vala
959
960 systemd_gnome_ask_password_agent_CFLAGS = \
961         $(AM_CFLAGS) \
962         $(DBUSGLIB_CFLAGS) \
963         $(LIBNOTIFY_CFLAGS) \
964         $(GTK_CFLAGS) \
965         -Wno-unused-variable \
966         -Wno-unused-function \
967         -Wno-shadow \
968         -Wno-format-nonliteral
969
970 systemd_gnome_ask_password_agent_VALAFLAGS = \
971         --pkg=dbus-glib-1 \
972         --pkg=posix \
973         --pkg=gtk+-2.0 \
974         --pkg=linux \
975         --pkg=gio-unix-2.0 \
976         --pkg=libnotify
977 if LIBNOTIFY07
978 systemd_gnome_ask_password_agent_VALAFLAGS += \
979         -D LIBNOTIFY07
980 endif
981 systemd_gnome_ask_password_agent_VALAFLAGS += \
982         -g
983
984 systemd_gnome_ask_password_agent_LDADD = \
985         $(DBUSGLIB_LIBS) \
986         $(LIBNOTIFY_LIBS) \
987         $(GTK_LIBS)
988
989 systemd_tty_ask_password_agent_SOURCES = \
990         src/tty-ask-password-agent.c \
991         src/ask-password-api.c \
992         src/utmp-wtmp.c
993
994 systemd_tty_ask_password_agent_LDADD = \
995         libsystemd-basic.la
996
997 pam_systemd_la_SOURCES = \
998         src/pam-module.c \
999         src/cgroup-util.c
1000
1001 pam_systemd_la_CFLAGS = \
1002         $(AM_CFLAGS)
1003         -fvisibility=hidden
1004
1005 pam_systemd_la_LDFLAGS = \
1006         -module \
1007         -export-dynamic \
1008         -avoid-version \
1009         -shared \
1010         -export-symbols-regex '^pam_sm_.*'
1011
1012 pam_systemd_la_LIBADD = \
1013         libsystemd-basic.la \
1014         libsystemd-daemon.la \
1015         $(PAM_LIBS)
1016
1017 SED_PROCESS = \
1018         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1019         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1020                 -e 's,@rootbindir\@,$(rootbindir),g' \
1021                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
1022                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1023                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1024                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1025                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1026                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1027                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1028                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1029                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1030                 -e 's,@prefix\@,$(prefix),g' \
1031                 < $< > $@ || rm $@
1032
1033 units/%: units/%.in Makefile
1034         $(SED_PROCESS)
1035
1036 man/%: man/%.in Makefile
1037         $(SED_PROCESS)
1038
1039 %.pc: %.pc.in Makefile
1040         $(SED_PROCESS)
1041
1042 M4_PROCESS_SYSTEM = \
1043         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1044         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1045
1046 M4_PROCESS_USER = \
1047         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1048         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1049
1050 units/%: units/%.m4 Makefile
1051         $(M4_PROCESS_SYSTEM)
1052
1053 units/user/%: units/%.m4 Makefile
1054         $(M4_PROCESS_USER)
1055
1056 CLEANFILES = \
1057         $(nodist_systemunit_DATA) \
1058         $(nodist_userunit_DATA) \
1059         $(nodist_man_MANS) \
1060         ${XML_IN_FILES:.xml.in=.html} \
1061         $(pkgconfigdata_DATA)
1062
1063 if HAVE_VALAC
1064 CLEANFILES += \
1065         ${systemadm_SOURCES:.vala=.c}
1066 endif
1067
1068 if HAVE_XSLTPROC
1069 XSLTPROC_FLAGS = \
1070         --nonet \
1071         --param funcsynopsis.style "'ansi'"
1072
1073 XSLTPROC_PROCESS_MAN = \
1074         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1075         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1076
1077 XSLTPROC_PROCESS_MAN_IN = \
1078         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1079         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1080         mv ${@:.in=} $@
1081
1082 XSLTPROC_PROCESS_HTML = \
1083         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1084         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1085
1086 XSLTPROC_PROCESS_HTML_IN = \
1087         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1088         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1089         mv ${@:.in=} $@
1090
1091 man/%.1: man/%.xml
1092         $(XSLTPROC_PROCESS_MAN)
1093
1094 man/%.1.in: man/%.xml.in
1095         $(XSLTPROC_PROCESS_MAN)
1096
1097 man/%.3: man/%.xml
1098         $(XSLTPROC_PROCESS_MAN)
1099
1100 man/%.3.in: man/%.xml.in
1101         $(XSLTPROC_PROCESS_MAN)
1102
1103 man/%.5: man/%.xml
1104         $(XSLTPROC_PROCESS_MAN)
1105
1106 man/%.5.in: man/%.xml.in
1107         $(XSLTPROC_PROCESS_MAN)
1108
1109 man/%.7: man/%.xml
1110         $(XSLTPROC_PROCESS_MAN)
1111
1112 man/%.7.in: man/%.xml.in
1113         $(XSLTPROC_PROCESS_MAN_IN)
1114
1115 man/%.8: man/%.xml
1116         $(XSLTPROC_PROCESS_MAN)
1117
1118 man/%.8.in: man/%.xml.in
1119         $(XSLTPROC_PROCESS_MAN_IN)
1120
1121 man/%.html: man/%.xml
1122         $(XSLTPROC_PROCESS_HTML)
1123
1124 man/%.html.in: man/%.xml.in
1125         $(XSLTPROC_PROCESS_HTML_IN)
1126
1127 CLEANFILES += \
1128         $(dist_man_MANS) \
1129         ${nodist_man_MANS:=.in} \
1130         ${XML_FILES:.xml=.html} \
1131         ${XML_IN_FILES:.xml.in=.html.in}
1132 endif
1133
1134 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1135
1136 org.freedesktop.systemd1.%.xml: systemd
1137         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1138                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1139                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1140
1141 CLEANFILES += \
1142         $(dbusinterface_DATA)
1143
1144 install-data-hook:
1145         $(MKDIR_P) -m 0755 \
1146                 $(DESTDIR)$(systemunitdir) \
1147                 $(DESTDIR)$(userunitdir) \
1148                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1149                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1150                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1151                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1152                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1153                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1154                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1155                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1156                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1157                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1158                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1159                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1160                 $(DESTDIR)$(pkgsysconfdir)/system \
1161                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1162                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1163                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1164                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1165                 $(DESTDIR)$(pkgsysconfdir)/user \
1166                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1167         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1168                 rm -f user && \
1169                 $(LN_S) $(pkgsysconfdir)/user user )
1170         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1171                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1172                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1173                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1174                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1175                 $(LN_S) ../syslog.socket syslog.socket )
1176         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.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)/runlevel2.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)/runlevel3.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)/runlevel4.target.wants && \
1186                 rm -f systemd-update-utmp-runlevel.service && \
1187                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1188         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1189                 rm -f systemd-update-utmp-runlevel.service && \
1190                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1191         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1192                 rm -f systemd-update-utmp-shutdown.service \
1193                         hwclock-save.service \
1194                         systemd-random-seed-save.service && \
1195                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1196                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1197                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1198         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1199                 rm -f systemd-remount-api-vfs.service \
1200                         fsck-root.service \
1201                         remount-rootfs.service \
1202                         var-run.mount \
1203                         var-lock.mount \
1204                         cryptsetup.target && \
1205                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1206                 $(LN_S) ../fsck-root.service fsck-root.service && \
1207                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1208                 $(LN_S) ../var-run.mount var-run.mount && \
1209                 $(LN_S) ../var-lock.mount var-lock.mount && \
1210                 $(LN_S) ../cryptsetup.target )
1211         ( cd $(DESTDIR)$(userunitdir) && \
1212                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1213                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1214                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1215                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1216                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1217                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1218                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1219         ( cd $(DESTDIR)$(systemunitdir) && \
1220                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1221                 $(LN_S) poweroff.target runlevel0.target && \
1222                 $(LN_S) rescue.target runlevel1.target && \
1223                 $(LN_S) multi-user.target runlevel2.target && \
1224                 $(LN_S) multi-user.target runlevel3.target && \
1225                 $(LN_S) multi-user.target runlevel4.target && \
1226                 $(LN_S) graphical.target runlevel5.target && \
1227                 $(LN_S) reboot.target runlevel6.target )
1228         ( cd $(DESTDIR)$(systemunitdir) && \
1229                 rm -f default.target ctrl-alt-del.target && \
1230                 $(LN_S) graphical.target default.target && \
1231                 $(LN_S) reboot.target ctrl-alt-del.target )
1232         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1233                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1234                 $(LN_S) ../getty.target getty.target && \
1235                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1236                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1237         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1238                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1239                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1240                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1241                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1242                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1243                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1244                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1245         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1246                 rm -f quotaon.service quotacheck.service && \
1247                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1248                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1249         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1250                 rm -f remote-fs.target && \
1251                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1252         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1253                 rm -f hwclock-load.service && \
1254                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1255         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1256                 rm -f dev-hugepages.automount \
1257                         dev-mqueue.automount \
1258                         proc-sys-fs-binfmt_misc.automount \
1259                         sys-kernel-debug.automount \
1260                         sys-kernel-security.automount \
1261                         systemd-vconsole-setup.service \
1262                         systemd-modules-load.service \
1263                         systemd-random-seed-load.service \
1264                         systemd-tmpfiles-setup.service \
1265                         systemd-sysctl.service \
1266                         systemd-ask-password-console.path && \
1267                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1268                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1269                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1270                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1271                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1272                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1273                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1274                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1275                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1276                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1277                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
1278         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1279                 rm -f systemd-tmpfiles-clean.timer && \
1280                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1281         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1282                 rm -f org.freedesktop.systemd1.service && \
1283                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1284 if TARGET_FEDORA
1285         $(MKDIR_P) -m 0755 \
1286                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1287                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1288                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1289                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1290                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1291                 $(DESTDIR)$(systemunitdir)/final.target.wants
1292         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1293                 rm -f rc-local.service && \
1294                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1295         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1296                 rm -f halt-local.service && \
1297                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1298         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1299                 rm -f plymouth-start.service plymouth-read-write.service && \
1300                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1301                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1302         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1303                 rm -f plymouth-quit.service  && \
1304                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1305         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1306                 rm -f plymouth-reboot.service && \
1307                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1308         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1309                 rm -f plymouth-kexec.service && \
1310                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1311         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1312                 rm -f plymouth-poweroff.service && \
1313                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1314         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1315                 rm -f plymouth-halt.service && \
1316                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1317         ( cd $(DESTDIR)$(systemunitdir) && \
1318                 rm -f display-manager.service && \
1319                 $(LN_S) prefdm.service display-manager.service )
1320         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1321                 rm -f display-manager.service && \
1322                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1323 endif
1324 if TARGET_DEBIAN_OR_UBUNTU
1325         ( cd $(DESTDIR)$(systemunitdir) && \
1326                 rm -f runlevel5.target && \
1327                 $(LN_S) multi-user.target runlevel5.target )
1328 endif
1329
1330 DISTCHECK_CONFIGURE_FLAGS = \
1331         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1332         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1333         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1334         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1335         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1336         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1337         --with-rootdir=$$dc_install_base/$(rootdir)
1338
1339 upload: all distcheck
1340         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1341         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1342         scp man/*.html tango:public/systemd-man/
1343
1344 git-tag:
1345         git tag "v$(VERSION)" -m "systemd $(VERSION)"