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