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