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