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