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