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