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