chiark / gitweb /
build-sys: bump for v13
[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
510 MANPAGES_ALIAS = \
511         man/reboot.8 \
512         man/poweroff.8 \
513         man/sd_is_socket.3 \
514         man/sd_is_socket_unix.3 \
515         man/sd_is_socket_inet.3 \
516         man/sd_notifyf.3 \
517         man/init.1
518
519 man/reboot.8: man/halt.8
520 man/poweroff.8: man/halt.8
521 man/sd_is_socket.3: man/sd_is_fifo.3
522 man/sd_is_socket_unix.3: man/sd_is_fifo.3
523 man/sd_is_socket_inet.3: man/sd_is_fifo.3
524 man/sd_notifyf.3: man/sd_notify.3
525 man/init.1: man/systemd.1
526
527 dist_man_MANS = \
528         $(MANPAGES) \
529         $(MANPAGES_ALIAS)
530
531 nodist_man_MANS = \
532         man/systemd.special.7
533
534 XML_FILES = \
535         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
536
537 XML_IN_FILES = \
538         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
539
540 dist_noinst_DATA = \
541         ${XML_FILES:.xml=.html}
542
543 nodist_noinst_DATA = \
544         ${XML_IN_FILES:.xml.in=.html}
545
546 EXTRA_DIST += \
547         $(XML_FILES) \
548         $(XML_IN_FILES) \
549         ${nodist_man_MANS:=.in} \
550         ${XML_IN_FILES:.xml.in=.html.in}
551
552 systemd_SOURCES = \
553         src/main.c
554
555 systemd_CFLAGS = \
556         $(AM_CFLAGS) \
557         $(DBUS_CFLAGS) \
558         $(UDEV_CFLAGS)
559
560 systemd_LDADD = \
561         libsystemd-core.la
562
563 test_engine_SOURCES = \
564         src/test-engine.c
565
566 test_engine_CFLAGS = $(systemd_CFLAGS)
567 test_engine_LDADD = $(systemd_LDADD)
568
569 test_job_type_SOURCES = \
570         src/test-job-type.c
571
572 test_job_type_CFLAGS = $(systemd_CFLAGS)
573 test_job_type_LDADD = $(systemd_LDADD)
574
575 test_ns_SOURCES = \
576         src/test-ns.c
577
578 test_ns_CFLAGS = $(systemd_CFLAGS)
579 test_ns_LDADD = $(systemd_LDADD)
580
581 test_loopback_SOURCES = \
582         src/test-loopback.c \
583         src/loopback-setup.c
584
585 test_loopback_LDADD = \
586         libsystemd-basic.la
587
588 test_hostname_SOURCES = \
589         src/test-hostname.c \
590         src/hostname-setup.c
591
592 test_hostname_LDADD = \
593         libsystemd-basic.la
594
595 test_daemon_SOURCES = \
596         src/test-daemon.c \
597         src/sd-daemon.c
598
599 test_daemon_LDADD = \
600         libsystemd-basic.la
601
602 test_cgroup_SOURCES = \
603         src/test-cgroup.c \
604         src/cgroup-util.c
605
606 test_cgroup_CFLAGS = \
607         $(AM_CFLAGS)
608
609 test_cgroup_LDADD = \
610         libsystemd-basic.la
611
612 test_env_replace_SOURCES = \
613         src/test-env-replace.c
614
615 test_env_replace_CFLAGS = \
616         $(AM_CFLAGS)
617
618 test_env_replace_LDADD = \
619         libsystemd-basic.la
620
621 test_strv_SOURCES = \
622         src/test-strv.c
623
624 test_strv_CFLAGS = \
625         $(AM_CFLAGS)
626
627 test_strv_LDADD = \
628         libsystemd-basic.la
629
630 systemd_logger_SOURCES = \
631         src/logger.c \
632         src/sd-daemon.c \
633         src/tcpwrap.c
634
635 systemd_logger_LDADD = \
636         libsystemd-basic.la \
637         $(LIBWRAP_LIBS)
638
639 systemd_initctl_SOURCES = \
640         src/initctl.c \
641         src/sd-daemon.c \
642         src/dbus-common.c
643
644 systemd_initctl_CFLAGS = \
645         $(AM_CFLAGS) \
646         $(DBUS_CFLAGS)
647
648 systemd_initctl_LDADD = \
649         libsystemd-basic.la \
650         $(DBUS_LIBS)
651
652 systemd_update_utmp_SOURCES = \
653         src/update-utmp.c \
654         src/dbus-common.c \
655         src/utmp-wtmp.c
656
657 systemd_update_utmp_CFLAGS = \
658         $(AM_CFLAGS) \
659         $(DBUS_CFLAGS) \
660         $(AUDIT_CFLAGS)
661
662 systemd_update_utmp_LDADD = \
663         libsystemd-basic.la \
664         $(DBUS_LIBS) \
665         $(AUDIT_LIBS)
666
667 systemd_random_seed_SOURCES = \
668         src/random-seed.c
669
670 systemd_random_seed_CFLAGS = \
671         $(AM_CFLAGS)
672
673 systemd_random_seed_LDADD = \
674         libsystemd-basic.la
675
676 systemd_shutdownd_SOURCES = \
677         src/utmp-wtmp.c \
678         src/sd-daemon.c \
679         src/shutdownd.c
680
681 systemd_shutdownd_CFLAGS = \
682         $(AM_CFLAGS)
683
684 systemd_shutdownd_LDADD = \
685         libsystemd-basic.la
686
687 systemd_shutdown_SOURCES = \
688         src/mount-setup.c \
689         src/umount.c \
690         src/shutdown.c
691
692 systemd_shutdown_CFLAGS = \
693         $(AM_CFLAGS) \
694         $(UDEV_CFLAGS)
695
696 systemd_shutdown_LDADD = \
697         libsystemd-basic.la \
698         $(UDEV_LIBS)
699
700 systemd_modules_load_SOURCES = \
701         src/modules-load.c
702
703 systemd_modules_load_CFLAGS = \
704         $(AM_CFLAGS)
705
706 systemd_modules_load_LDADD = \
707         libsystemd-basic.la
708
709 systemd_tmpfiles_SOURCES = \
710         src/tmpfiles.c
711
712 systemd_tmpfiles_CFLAGS = \
713         $(AM_CFLAGS)
714
715 systemd_tmpfiles_LDADD = \
716         libsystemd-basic.la
717
718 systemd_sysctl_SOURCES = \
719         src/sysctl.c
720
721 systemd_sysctl_CFLAGS = \
722         $(AM_CFLAGS)
723
724 systemd_sysctl_LDADD = \
725         libsystemd-basic.la
726
727 systemd_fsck_SOURCES = \
728         src/fsck.c \
729         src/dbus-common.c
730
731 systemd_fsck_CFLAGS = \
732         $(AM_CFLAGS) \
733         $(UDEV_CFLAGS) \
734         $(DBUS_CFLAGS)
735
736 systemd_fsck_LDADD = \
737         libsystemd-basic.la \
738         $(UDEV_LIBS) \
739         $(DBUS_LIBS)
740
741 systemd_quotacheck_SOURCES = \
742         src/quotacheck.c
743
744 systemd_quotacheck_CFLAGS = \
745         $(AM_CFLAGS)
746
747 systemd_quotacheck_LDADD = \
748         libsystemd-basic.la
749
750 systemd_timestamp_SOURCES = \
751         src/timestamp.c
752
753 systemd_timestamp_CFLAGS = \
754         $(AM_CFLAGS)
755
756 systemd_timestamp_LDADD = \
757         libsystemd-basic.la
758
759 systemd_ac_power_SOURCES = \
760         src/ac-power.c
761
762 systemd_ac_power_CFLAGS = \
763         $(AM_CFLAGS) \
764         $(UDEV_CFLAGS)
765
766 systemd_ac_power_LDADD = \
767         libsystemd-basic.la \
768         $(UDEV_LIBS)
769
770 systemd_cryptsetup_SOURCES = \
771         src/cryptsetup.c \
772         src/ask-password-api.c
773
774 systemd_cryptsetup_CFLAGS = \
775         $(LIBCRYPTSETUP_CFLAGS) \
776         $(UDEV_CFLAGS) \
777         $(AM_CFLAGS)
778
779 systemd_cryptsetup_LDADD = \
780         $(LIBCRYPTSETUP_LIBS) \
781         $(UDEV_LIBS) \
782         libsystemd-basic.la
783
784 systemd_cryptsetup_generator_SOURCES = \
785         src/cryptsetup-generator.c \
786         src/unit-name.c
787
788 systemd_cryptsetup_generator_CFLAGS = \
789         $(AM_CFLAGS)
790
791 systemd_cryptsetup_generator_LDADD = \
792         libsystemd-basic.la
793
794 systemd_user_sessions_SOURCES = \
795         src/user-sessions.c \
796         src/cgroup-util.c
797
798 systemd_user_sessions_CFLAGS = \
799         $(AM_CFLAGS)
800
801 systemd_user_sessions_LDADD = \
802         libsystemd-basic.la
803
804 systemd_vconsole_setup_SOURCES = \
805         src/vconsole-setup.c
806
807 systemd_vconsole_setup_CFLAGS = \
808         $(AM_CFLAGS)
809
810 systemd_vconsole_setup_LDADD = \
811         libsystemd-basic.la
812
813 systemd_remount_api_vfs_SOURCES = \
814         src/remount-api-vfs.c \
815         src/mount-setup.c
816
817 systemd_remount_api_vfs_CFLAGS = \
818         $(AM_CFLAGS)
819
820 systemd_remount_api_vfs_LDADD = \
821         libsystemd-basic.la
822
823 systemd_cgroups_agent_SOURCES = \
824         src/cgroups-agent.c \
825         src/dbus-common.c
826
827 systemd_cgroups_agent_CFLAGS = \
828         $(AM_CFLAGS) \
829         $(DBUS_CFLAGS)
830
831 systemd_cgroups_agent_LDADD = \
832         libsystemd-basic.la \
833         $(DBUS_LIBS)
834
835 systemd_kmsg_syslogd_SOURCES = \
836         src/kmsg-syslogd.c \
837         src/sd-daemon.c \
838         src/fdset.c
839
840 systemd_kmsg_syslogd_CFLAGS = \
841         $(AM_CFLAGS)
842
843 systemd_kmsg_syslogd_LDADD = \
844         libsystemd-basic.la
845
846 systemctl_SOURCES = \
847         src/systemctl.c \
848         src/utmp-wtmp.c \
849         src/dbus-common.c \
850         src/path-lookup.c \
851         src/sd-daemon.c \
852         src/cgroup-show.c \
853         src/cgroup-util.c \
854         src/exit-status.c \
855         src/unit-name.c
856
857 systemctl_CFLAGS = \
858         $(AM_CFLAGS) \
859         $(DBUS_CFLAGS)
860
861 systemctl_LDADD = \
862         libsystemd-basic.la \
863         $(DBUS_LIBS)
864
865 systemd_notify_SOURCES = \
866         src/notify.c \
867         src/sd-daemon.c \
868         src/sd-readahead.c
869
870 systemd_notify_LDADD = \
871         libsystemd-basic.la
872
873 systemd_ask_password_SOURCES = \
874         src/ask-password.c \
875         src/ask-password-api.c
876
877 systemd_ask_password_LDADD = \
878         libsystemd-basic.la
879
880 systemd_reply_password_SOURCES = \
881         src/reply-password.c
882
883 systemd_reply_password_LDADD = \
884         libsystemd-basic.la
885
886 systemd_readahead_collect_SOURCES = \
887         src/readahead-collect.c \
888         src/sd-daemon.c \
889         src/readahead-common.c
890
891 systemd_readahead_collect_CFLAGS = \
892         $(UDEV_CFLAGS)
893
894 systemd_readahead_collect_LDADD = \
895         libsystemd-basic.la \
896         $(UDEV_LIBS)
897
898 systemd_readahead_replay_SOURCES = \
899         src/readahead-replay.c \
900         src/sd-daemon.c \
901         src/readahead-common.c
902
903 systemd_readahead_replay_CFLAGS = \
904         $(UDEV_CFLAGS)
905
906 systemd_readahead_replay_LDADD = \
907         libsystemd-basic.la \
908         $(UDEV_LIBS)
909
910 systemd_cgls_SOURCES = \
911         src/cgls.c \
912         src/cgroup-show.c \
913         src/cgroup-util.c
914
915 systemd_cgls_CFLAGS = \
916         $(AM_CFLAGS)
917
918 systemd_cgls_LDADD = \
919         libsystemd-basic.la
920
921 systemadm_SOURCES = \
922         src/systemadm.vala \
923         src/systemd-interfaces.vala
924
925 systemadm_CFLAGS = \
926         $(AM_CFLAGS) \
927         $(DBUSGLIB_CFLAGS) \
928         $(GTK_CFLAGS) \
929         -Wno-unused-variable \
930         -Wno-unused-function \
931         -Wno-shadow \
932         -Wno-format-nonliteral
933
934 systemadm_VALAFLAGS = \
935         --pkg=dbus-glib-1 \
936         --pkg=posix \
937         --pkg=gtk+-2.0 \
938         -g
939
940 systemadm_LDADD = \
941         $(DBUSGLIB_LIBS) \
942         $(GTK_LIBS)
943
944 systemd_gnome_ask_password_agent_SOURCES = \
945         src/gnome-ask-password-agent.vala
946
947 systemd_gnome_ask_password_agent_CFLAGS = \
948         $(AM_CFLAGS) \
949         $(DBUSGLIB_CFLAGS) \
950         $(LIBNOTIFY_CFLAGS) \
951         $(GTK_CFLAGS) \
952         -Wno-unused-variable \
953         -Wno-unused-function \
954         -Wno-shadow \
955         -Wno-format-nonliteral
956
957 systemd_gnome_ask_password_agent_VALAFLAGS = \
958         --pkg=dbus-glib-1 \
959         --pkg=posix \
960         --pkg=gtk+-2.0 \
961         --pkg=linux \
962         --pkg=gio-unix-2.0 \
963         --pkg=libnotify \
964         -g
965
966 systemd_gnome_ask_password_agent_LDADD = \
967         $(DBUSGLIB_LIBS) \
968         $(LIBNOTIFY_LIBS) \
969         $(GTK_LIBS)
970
971 systemd_tty_ask_password_agent_SOURCES = \
972         src/tty-ask-password-agent.c \
973         src/ask-password-api.c \
974         src/utmp-wtmp.c
975
976 systemd_tty_ask_password_agent_LDADD = \
977         libsystemd-basic.la
978
979 pam_systemd_la_SOURCES = \
980         src/pam-module.c \
981         src/cgroup-util.c \
982         src/sd-daemon.c
983
984 pam_systemd_la_CFLAGS = \
985         $(AM_CFLAGS)
986         -fvisibility=hidden
987
988 pam_systemd_la_LDFLAGS = \
989         -module \
990         -export-dynamic \
991         -avoid-version \
992         -shared \
993         -export-symbols-regex '^pam_sm_.*'
994
995 pam_systemd_la_LIBADD = \
996         libsystemd-basic.la \
997         $(PAM_LIBS)
998
999 SED_PROCESS = \
1000         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1001         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1002                 -e 's,@rootbindir\@,$(rootbindir),g' \
1003                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
1004                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1005                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1006                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1007                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1008                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1009                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1010                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1011                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1012                 -e 's,@prefix\@,$(prefix),g' \
1013                 < $< > $@ || rm $@
1014
1015 units/%: units/%.in Makefile
1016         $(SED_PROCESS)
1017
1018 man/%: man/%.in Makefile
1019         $(SED_PROCESS)
1020
1021 %.pc: %.pc.in Makefile
1022         $(SED_PROCESS)
1023
1024 M4_PROCESS_SYSTEM = \
1025         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1026         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1027
1028 M4_PROCESS_USER = \
1029         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1030         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1031
1032 units/%: units/%.m4 Makefile
1033         $(M4_PROCESS_SYSTEM)
1034
1035 units/user/%: units/%.m4 Makefile
1036         $(M4_PROCESS_USER)
1037
1038 CLEANFILES = \
1039         $(nodist_systemunit_DATA) \
1040         $(nodist_userunit_DATA) \
1041         $(nodist_man_MANS) \
1042         ${XML_IN_FILES:.xml.in=.html} \
1043         $(pkgconfigdata_DATA)
1044
1045 if HAVE_VALAC
1046 CLEANFILES += \
1047         ${systemadm_SOURCES:.vala=.c}
1048 endif
1049
1050 if HAVE_XSLTPROC
1051 XSLTPROC_FLAGS = \
1052         --nonet \
1053         --param funcsynopsis.style "'ansi'"
1054
1055 XSLTPROC_PROCESS_MAN = \
1056         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1057         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1058
1059 XSLTPROC_PROCESS_MAN_IN = \
1060         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1061         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1062         mv ${@:.in=} $@
1063
1064 XSLTPROC_PROCESS_HTML = \
1065         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1066         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1067
1068 XSLTPROC_PROCESS_HTML_IN = \
1069         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1070         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1071         mv ${@:.in=} $@
1072
1073 man/%.1: man/%.xml
1074         $(XSLTPROC_PROCESS_MAN)
1075
1076 man/%.1.in: man/%.xml.in
1077         $(XSLTPROC_PROCESS_MAN)
1078
1079 man/%.3: man/%.xml
1080         $(XSLTPROC_PROCESS_MAN)
1081
1082 man/%.3.in: man/%.xml.in
1083         $(XSLTPROC_PROCESS_MAN)
1084
1085 man/%.5: man/%.xml
1086         $(XSLTPROC_PROCESS_MAN)
1087
1088 man/%.5.in: man/%.xml.in
1089         $(XSLTPROC_PROCESS_MAN)
1090
1091 man/%.7: man/%.xml
1092         $(XSLTPROC_PROCESS_MAN)
1093
1094 man/%.7.in: man/%.xml.in
1095         $(XSLTPROC_PROCESS_MAN_IN)
1096
1097 man/%.8: man/%.xml
1098         $(XSLTPROC_PROCESS_MAN)
1099
1100 man/%.8.in: man/%.xml.in
1101         $(XSLTPROC_PROCESS_MAN_IN)
1102
1103 man/%.html: man/%.xml
1104         $(XSLTPROC_PROCESS_HTML)
1105
1106 man/%.html.in: man/%.xml.in
1107         $(XSLTPROC_PROCESS_HTML_IN)
1108
1109 CLEANFILES += \
1110         $(dist_man_MANS) \
1111         ${nodist_man_MANS:=.in} \
1112         ${XML_FILES:.xml=.html} \
1113         ${XML_IN_FILES:.xml.in=.html.in}
1114 endif
1115
1116 org.freedesktop.systemd1.%.xml: systemd
1117         $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1118
1119 CLEANFILES += \
1120         $(dbusinterface_DATA)
1121
1122 install-data-hook:
1123         $(MKDIR_P) -m 0755 \
1124                 $(DESTDIR)$(systemunitdir) \
1125                 $(DESTDIR)$(userunitdir) \
1126                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1127                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1128                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1129                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1130                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1131                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1132                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1133                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1134                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1135                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1136                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1137                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1138                 $(DESTDIR)$(pkgsysconfdir)/system \
1139                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1140                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1141                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1142                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1143                 $(DESTDIR)$(pkgsysconfdir)/user \
1144                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1145         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1146                 rm -f user && \
1147                 $(LN_S) $(pkgsysconfdir)/user user )
1148         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1149                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1150                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1151                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1152                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1153                 $(LN_S) ../syslog.socket syslog.socket )
1154         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1155                 rm -f systemd-update-utmp-runlevel.service && \
1156                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1157         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1158                 rm -f systemd-update-utmp-runlevel.service && \
1159                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1160         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1161                 rm -f systemd-update-utmp-runlevel.service && \
1162                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1163         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1164                 rm -f systemd-update-utmp-runlevel.service && \
1165                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1166         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1167                 rm -f systemd-update-utmp-runlevel.service && \
1168                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1169         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1170                 rm -f systemd-update-utmp-shutdown.service \
1171                         hwclock-save.service \
1172                         systemd-random-seed-save.service && \
1173                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1174                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1175                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1176         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1177                 rm -f systemd-remount-api-vfs.service \
1178                         fsck-root.service \
1179                         remount-rootfs.service \
1180                         var-run.mount \
1181                         var-lock.mount \
1182                         cryptsetup.target && \
1183                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1184                 $(LN_S) ../fsck-root.service fsck-root.service && \
1185                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1186                 $(LN_S) ../var-run.mount var-run.mount && \
1187                 $(LN_S) ../var-lock.mount var-lock.mount && \
1188                 $(LN_S) ../cryptsetup.target )
1189         ( cd $(DESTDIR)$(userunitdir) && \
1190                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1191                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1192                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1193                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1194                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1195                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1196                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1197         ( cd $(DESTDIR)$(systemunitdir) && \
1198                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1199                 $(LN_S) poweroff.target runlevel0.target && \
1200                 $(LN_S) rescue.target runlevel1.target && \
1201                 $(LN_S) multi-user.target runlevel2.target && \
1202                 $(LN_S) multi-user.target runlevel3.target && \
1203                 $(LN_S) multi-user.target runlevel4.target && \
1204                 $(LN_S) graphical.target runlevel5.target && \
1205                 $(LN_S) reboot.target runlevel6.target )
1206         ( cd $(DESTDIR)$(systemunitdir) && \
1207                 rm -f default.target ctrl-alt-del.target && \
1208                 $(LN_S) graphical.target default.target && \
1209                 $(LN_S) reboot.target ctrl-alt-del.target )
1210         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1211                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1212                 $(LN_S) ../getty.target getty.target && \
1213                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1214                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1215         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1216                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1217                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1218                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1219                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1220                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1221                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1222                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1223         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1224                 rm -f quotaon.service quotacheck.service && \
1225                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1226                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1227         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1228                 rm -f remote-fs.target && \
1229                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1230         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1231                 rm -f hwclock-load.service && \
1232                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1233         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1234                 rm -f dev-hugepages.automount \
1235                         dev-mqueue.automount \
1236                         proc-sys-fs-binfmt_misc.automount \
1237                         sys-kernel-debug.automount \
1238                         sys-kernel-security.automount \
1239                         systemd-vconsole-setup.service \
1240                         systemd-modules-load.service \
1241                         systemd-random-seed-load.service \
1242                         systemd-tmpfiles-setup.service \
1243                         systemd-sysctl.service \
1244                         systemd-ask-password-console.path && \
1245                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1246                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1247                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1248                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1249                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1250                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1251                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1252                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1253                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1254                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1255                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
1256         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1257                 rm -f systemd-tmpfiles-clean.timer && \
1258                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1259         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1260                 rm -f org.freedesktop.systemd1.service && \
1261                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1262 if TARGET_FEDORA
1263         $(MKDIR_P) -m 0755 \
1264                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1265                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1266                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1267                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1268                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1269                 $(DESTDIR)$(systemunitdir)/final.target.wants
1270         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1271                 rm -f rc-local.service && \
1272                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1273         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1274                 rm -f halt-local.service && \
1275                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1276         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1277                 rm -f plymouth-start.service plymouth-read-write.service && \
1278                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1279                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1280         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1281                 rm -f plymouth-quit.service  && \
1282                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1283         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1284                 rm -f plymouth-reboot.service && \
1285                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1286         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1287                 rm -f plymouth-kexec.service && \
1288                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1289         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1290                 rm -f plymouth-poweroff.service && \
1291                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1292         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1293                 rm -f plymouth-halt.service && \
1294                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1295         ( cd $(DESTDIR)$(systemunitdir) && \
1296                 rm -f display-manager.service && \
1297                 $(LN_S) prefdm.service display-manager.service )
1298         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1299                 rm -f display-manager.service && \
1300                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1301 endif
1302 if TARGET_GENTOO
1303         ( cd $(DESTDIR)$(systemunitdir) && \
1304                 rm -f display-manager.service && \
1305                 $(LN_S) xdm.service display-manager.service )
1306         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1307                 rm -f display-manager.service && \
1308                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1309 endif
1310 if TARGET_DEBIAN_OR_UBUNTU
1311         ( cd $(DESTDIR)$(systemunitdir) && \
1312                 rm -f runlevel5.target && \
1313                 $(LN_S) multi-user.target runlevel5.target )
1314 endif
1315
1316 DISTCHECK_CONFIGURE_FLAGS = \
1317         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1318         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1319         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1320         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1321         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1322         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1323         --with-rootdir=$$dc_install_base/$(rootdir)
1324
1325 upload: all distcheck
1326         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1327         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1328         scp man/*.html tango:public/systemd-man/
1329
1330 git-tag:
1331         git tag "v$(VERSION)" -m "systemd $(VERSION)"
1332
1333 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1334 fedora: install
1335         rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1336         rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount