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