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