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