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