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