chiark / gitweb /
logind: parse configuration file
[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=$(prefix)/lib/systemd/user
34 tmpfilesdir=$(prefix)/lib/tmpfiles.d
35 usergeneratordir=$(pkglibexecdir)/user-generators
36
37 # And these are the special ones for /
38 rootdir=@rootdir@
39 rootbindir=$(rootdir)/bin
40 rootlibexecdir=$(rootdir)/lib/systemd
41 systemgeneratordir=$(rootlibexecdir)/system-generators
42 systemshutdowndir=$(rootlibexecdir)/system-shutdown
43 systemunitdir=$(rootdir)/lib/systemd/system
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         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
61         -DRUNTIME_DIR=\"/run\" \
62         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
63         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
64         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
65         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
66         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
67         -I $(top_srcdir)/src
68
69 if TARGET_GENTOO
70 AM_CPPFLAGS += \
71         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
72         -DKBD_SETFONT=\"/usr/bin/setfont\" \
73         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
74 else
75 if TARGET_ARCH
76 AM_CPPFLAGS += \
77         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
78         -DKBD_SETFONT=\"/usr/bin/setfont\" \
79         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
80 else
81 if TARGET_FRUGALWARE
82 AM_CPPFLAGS += \
83         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
84         -DKBD_SETFONT=\"/usr/bin/setfont\" \
85         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
86 else
87 if TARGET_MANDRIVA
88 AM_CPPFLAGS += \
89         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
90         -DKBD_SETFONT=\"/bin/setfont\" \
91         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
92 else
93 if TARGET_MEEGO
94 AM_CPPFLAGS += \
95         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
96         -DKBD_SETFONT=\"/bin/setfont\" \
97         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
98 else
99 if TARGET_ANGSTROM
100 AM_CPPFLAGS += \
101         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
102         -DKBD_SETFONT=\"/usr/bin/setfont\" \
103         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
104 else
105 AM_CPPFLAGS += \
106         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
107         -DKBD_SETFONT=\"/bin/setfont\" \
108         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
109 endif
110 endif
111 endif
112 endif
113 endif
114 endif
115
116 rootbin_PROGRAMS = \
117         systemd \
118         systemctl \
119         systemd-notify \
120         systemd-ask-password \
121         systemd-tty-ask-password-agent \
122         systemd-tmpfiles \
123         systemd-machine-id-setup
124
125 bin_PROGRAMS = \
126         systemd-cgls \
127         systemd-stdio-bridge \
128         systemd-nspawn
129
130 dist_bin_SCRIPTS = \
131         src/systemd-analyze
132
133 if HAVE_GTK
134 bin_PROGRAMS += \
135         systemadm \
136         systemd-gnome-ask-password-agent
137 endif
138
139 rootlibexec_PROGRAMS = \
140         systemd-logger \
141         systemd-cgroups-agent \
142         systemd-initctl \
143         systemd-update-utmp \
144         systemd-random-seed \
145         systemd-shutdownd \
146         systemd-shutdown \
147         systemd-modules-load \
148         systemd-remount-api-vfs \
149         systemd-kmsg-syslogd \
150         systemd-vconsole-setup \
151         systemd-reply-password \
152         systemd-readahead-collect \
153         systemd-readahead-replay \
154         systemd-user-sessions \
155         systemd-fsck \
156         systemd-quotacheck \
157         systemd-timestamp \
158         systemd-ac-power \
159         systemd-detect-virt \
160         systemd-sysctl \
161         systemd-hostnamed \
162         systemd-localed \
163         systemd-timedated \
164         systemd-logind \
165         systemd-uaccess
166
167 if ENABLE_BINFMT
168 rootlibexec_PROGRAMS += \
169         systemd-binfmt
170 endif
171
172 systemgenerator_PROGRAMS = \
173         systemd-getty-generator
174
175 if HAVE_LIBCRYPTSETUP
176 rootlibexec_PROGRAMS += \
177         systemd-cryptsetup
178
179 systemgenerator_PROGRAMS += \
180         systemd-cryptsetup-generator
181 endif
182
183 noinst_PROGRAMS = \
184         test-engine \
185         test-job-type \
186         test-ns \
187         test-loopback \
188         test-hostname \
189         test-daemon \
190         test-cgroup \
191         test-env-replace \
192         test-strv
193
194 if HAVE_PAM
195 pamlib_LTLIBRARIES = \
196         pam_systemd.la
197 endif
198
199 dist_pkgsysconf_DATA = \
200         src/system.conf \
201         src/user.conf \
202         src/systemd-logind.conf
203
204 dist_dbuspolicy_DATA = \
205         src/org.freedesktop.systemd1.conf \
206         src/org.freedesktop.hostname1.conf \
207         src/org.freedesktop.locale1.conf \
208         src/org.freedesktop.timedate1.conf \
209         src/org.freedesktop.login1.conf
210
211 dist_dbussystemservice_DATA = \
212         src/org.freedesktop.systemd1.service \
213         src/org.freedesktop.hostname1.service \
214         src/org.freedesktop.locale1.service \
215         src/org.freedesktop.timedate1.service \
216         src/org.freedesktop.login1.service
217
218 dist_udevrules_DATA = \
219         src/70-uaccess.rules \
220         src/71-seat.rules \
221         src/73-seat-late.rules \
222         src/99-systemd.rules
223
224 dbusinterface_DATA = \
225         org.freedesktop.systemd1.Manager.xml \
226         org.freedesktop.systemd1.Job.xml \
227         org.freedesktop.systemd1.Unit.xml \
228         org.freedesktop.systemd1.Service.xml \
229         org.freedesktop.systemd1.Socket.xml \
230         org.freedesktop.systemd1.Timer.xml \
231         org.freedesktop.systemd1.Target.xml \
232         org.freedesktop.systemd1.Device.xml \
233         org.freedesktop.systemd1.Mount.xml \
234         org.freedesktop.systemd1.Automount.xml \
235         org.freedesktop.systemd1.Snapshot.xml \
236         org.freedesktop.systemd1.Swap.xml \
237         org.freedesktop.systemd1.Path.xml \
238         org.freedesktop.hostname1.xml \
239         org.freedesktop.locale1.xml \
240         org.freedesktop.timedate1.xml
241
242 dist_bashcompletion_DATA = \
243         src/systemctl-bash-completion.sh
244
245 dist_tmpfiles_DATA = \
246         tmpfiles.d/systemd.conf \
247         tmpfiles.d/x11.conf
248
249 if HAVE_SYSV_COMPAT
250 dist_tmpfiles_DATA += \
251         tmpfiles.d/legacy.conf
252 endif
253
254 dist_systemunit_DATA = \
255         units/graphical.target \
256         units/multi-user.target \
257         units/emergency.service \
258         units/emergency.target \
259         units/sysinit.target \
260         units/basic.target \
261         units/getty.target \
262         units/halt.target \
263         units/kexec.target \
264         units/local-fs.target \
265         units/remote-fs.target \
266         units/cryptsetup.target \
267         units/network.target \
268         units/nss-lookup.target \
269         units/mail-transfer-agent.target \
270         units/http-daemon.target \
271         units/poweroff.target \
272         units/reboot.target \
273         units/rescue.target \
274         units/rpcbind.target \
275         units/time-sync.target \
276         units/shutdown.target \
277         units/final.target \
278         units/umount.target \
279         units/sigpwr.target \
280         units/sockets.target \
281         units/swap.target \
282         units/systemd-initctl.socket \
283         units/systemd-logger.socket \
284         units/systemd-shutdownd.socket \
285         units/syslog.socket \
286         units/dev-hugepages.automount \
287         units/dev-hugepages.mount \
288         units/dev-mqueue.automount \
289         units/dev-mqueue.mount \
290         units/sys-kernel-debug.automount \
291         units/sys-kernel-debug.mount \
292         units/sys-kernel-security.automount \
293         units/sys-kernel-security.mount \
294         units/var-run.mount \
295         units/media.mount \
296         units/remount-rootfs.service \
297         units/printer.target \
298         units/sound.target \
299         units/bluetooth.target \
300         units/smartcard.target \
301         units/systemd-readahead-done.timer \
302         units/systemd-tmpfiles-clean.timer \
303         units/quotaon.service \
304         units/systemd-ask-password-wall.path \
305         units/systemd-ask-password-console.path \
306         units/syslog.target
307
308 if HAVE_SYSV_COMPAT
309 dist_systemunit_DATA += \
310         units/var-lock.mount
311 endif
312
313 if ENABLE_BINFMT
314 dist_systemunit_DATA += \
315         units/proc-sys-fs-binfmt_misc.automount \
316         units/proc-sys-fs-binfmt_misc.mount
317 endif
318
319 nodist_systemunit_DATA = \
320         units/getty@.service \
321         units/serial-getty@.service \
322         units/console-shell.service \
323         units/systemd-initctl.service \
324         units/systemd-logger.service \
325         units/systemd-shutdownd.service \
326         units/systemd-hostnamed.service \
327         units/systemd-localed.service \
328         units/systemd-timedated.service \
329         units/systemd-logind.service \
330         units/systemd-kmsg-syslogd.service \
331         units/systemd-modules-load.service \
332         units/systemd-vconsole-setup.service \
333         units/systemd-remount-api-vfs.service \
334         units/systemd-update-utmp-runlevel.service \
335         units/systemd-update-utmp-shutdown.service \
336         units/systemd-random-seed-save.service \
337         units/systemd-random-seed-load.service \
338         units/systemd-readahead-collect.service \
339         units/systemd-readahead-replay.service \
340         units/systemd-readahead-done.service \
341         units/systemd-tmpfiles-setup.service \
342         units/systemd-tmpfiles-clean.service \
343         units/systemd-user-sessions.service \
344         units/systemd-ask-password-wall.service \
345         units/systemd-ask-password-console.service \
346         units/systemd-sysctl.service \
347         units/halt.service \
348         units/poweroff.service \
349         units/reboot.service \
350         units/kexec.service \
351         units/fsck@.service \
352         units/fsck-root.service \
353         units/quotacheck.service \
354         units/rescue.service
355
356 if ENABLE_BINFMT
357 nodist_systemunit_DATA += \
358         units/systemd-binfmt.service
359 endif
360
361 dist_userunit_DATA = \
362         units/user/default.target \
363         units/user/exit.target
364
365 nodist_userunit_DATA = \
366         units/user/exit.service
367
368 EXTRA_DIST = \
369         units/getty@.service.m4 \
370         units/serial-getty@.service.m4 \
371         units/console-shell.service.m4 \
372         units/rescue.service.m4 \
373         units/systemd-initctl.service.in \
374         units/systemd-logger.service.in \
375         units/systemd-shutdownd.service.in \
376         units/systemd-hostnamed.service.in \
377         units/systemd-localed.service.in \
378         units/systemd-timedated.service.in \
379         units/systemd-logind.service.in \
380         units/systemd-kmsg-syslogd.service.in \
381         units/systemd-modules-load.service.in \
382         units/systemd-vconsole-setup.service.in \
383         units/systemd-remount-api-vfs.service.in \
384         units/systemd-update-utmp-runlevel.service.in \
385         units/systemd-update-utmp-shutdown.service.in \
386         units/systemd-random-seed-save.service.in \
387         units/systemd-random-seed-load.service.in \
388         units/systemd-readahead-collect.service.in \
389         units/systemd-readahead-replay.service.in \
390         units/systemd-readahead-done.service.in \
391         units/systemd-tmpfiles-setup.service.in \
392         units/systemd-tmpfiles-clean.service.in \
393         units/systemd-user-sessions.service.in \
394         units/systemd-ask-password-wall.service.in \
395         units/systemd-ask-password-console.service.in \
396         units/systemd-sysctl.service.in \
397         units/halt.service.in \
398         units/poweroff.service.in \
399         units/reboot.service.in \
400         units/kexec.service.in \
401         units/user/exit.service.in \
402         units/fsck@.service.in \
403         units/fsck-root.service.in \
404         units/quotacheck.service.in \
405         systemd.pc.in \
406         introspect.awk \
407         src/org.freedesktop.systemd1.policy.in
408
409 if ENABLE_BINFMT
410 EXTRA_DIST += \
411         units/systemd-binfmt.service.in
412 endif
413
414 if TARGET_FEDORA
415 dist_systemunit_DATA += \
416         units/fedora/prefdm.service \
417         units/fedora/rc-local.service \
418         units/fedora/halt-local.service
419 endif
420
421 if TARGET_MANDRIVA
422 dist_systemunit_DATA += \
423         units/mandriva/prefdm.service \
424         units/fedora/rc-local.service \
425         units/fedora/halt-local.service
426 endif
427
428 if TARGET_FRUGALWARE
429 dist_systemunit_DATA += \
430         units/frugalware/display-manager.service
431 endif
432
433 if HAVE_PLYMOUTH
434 dist_systemunit_DATA += \
435         units/plymouth-start.service \
436         units/plymouth-read-write.service \
437         units/plymouth-quit.service \
438         units/plymouth-quit-wait.service \
439         units/plymouth-reboot.service \
440         units/plymouth-kexec.service \
441         units/plymouth-poweroff.service \
442         units/plymouth-halt.service \
443         units/systemd-ask-password-plymouth.path
444
445 nodist_systemunit_DATA += \
446         units/systemd-ask-password-plymouth.service
447
448 EXTRA_DIST += \
449         units/systemd-ask-password-plymouth.service.in
450 endif
451
452 dist_doc_DATA = \
453         README \
454         LICENSE \
455         DISTRO_PORTING \
456         src/sd-daemon.h \
457         src/sd-daemon.c \
458         src/sd-readahead.h \
459         src/sd-readahead.c
460
461 pkgconfigdata_DATA = \
462         systemd.pc
463
464 nodist_polkitpolicy_DATA = \
465         src/org.freedesktop.systemd1.policy
466
467 dist_polkitpolicy_DATA = \
468         src/org.freedesktop.hostname1.policy \
469         src/org.freedesktop.locale1.policy \
470         src/org.freedesktop.timedate1.policy \
471         src/org.freedesktop.login1.policy
472
473 noinst_LTLIBRARIES = \
474         libsystemd-basic.la \
475         libsystemd-core.la \
476         libsystemd-daemon.la
477
478 libsystemd_basic_la_SOURCES = \
479         src/util.c \
480         src/label.c \
481         src/hashmap.c \
482         src/set.c \
483         src/strv.c \
484         src/conf-parser.c \
485         src/socket-util.c \
486         src/log.c \
487         src/ratelimit.c \
488         src/exit-status.c
489
490 libsystemd_basic_la_CFLAGS = \
491         $(AM_CFLAGS) \
492         $(SELINUX_CFLAGS)
493
494 libsystemd_basic_la_LIBADD = \
495         $(SELINUX_LIBS)
496
497 libsystemd_core_la_SOURCES = \
498         src/unit.c \
499         src/job.c \
500         src/manager.c \
501         src/path-lookup.c \
502         src/load-fragment.c \
503         src/service.c \
504         src/automount.c \
505         src/mount.c \
506         src/swap.c \
507         src/device.c \
508         src/target.c \
509         src/snapshot.c \
510         src/socket.c \
511         src/timer.c \
512         src/path.c \
513         src/load-dropin.c \
514         src/execute.c \
515         src/utmp-wtmp.c \
516         src/dbus.c \
517         src/dbus-manager.c \
518         src/dbus-unit.c \
519         src/dbus-job.c \
520         src/dbus-service.c \
521         src/dbus-socket.c \
522         src/dbus-timer.c \
523         src/dbus-target.c \
524         src/dbus-mount.c \
525         src/dbus-automount.c \
526         src/dbus-swap.c \
527         src/dbus-snapshot.c \
528         src/dbus-device.c \
529         src/dbus-execute.c \
530         src/dbus-path.c \
531         src/cgroup.c \
532         src/mount-setup.c \
533         src/hostname-setup.c \
534         src/selinux-setup.c \
535         src/loopback-setup.c \
536         src/kmod-setup.c \
537         src/locale-setup.c \
538         src/machine-id-setup.c \
539         src/specifier.c \
540         src/unit-name.c \
541         src/fdset.c \
542         src/namespace.c \
543         src/tcpwrap.c \
544         src/cgroup-util.c \
545         src/condition.c \
546         src/dbus-common.c
547
548 libsystemd_core_la_CFLAGS = \
549         $(AM_CFLAGS) \
550         $(DBUS_CFLAGS) \
551         $(UDEV_CFLAGS) \
552         $(LIBWRAP_CFLAGS) \
553         $(PAM_CFLAGS) \
554         $(AUDIT_CFLAGS)
555
556 libsystemd_core_la_LIBADD = \
557         libsystemd-basic.la \
558         $(DBUS_LIBS) \
559         $(UDEV_LIBS) \
560         $(LIBWRAP_LIBS) \
561         $(PAM_LIBS) \
562         $(AUDIT_LIBS)
563
564 libsystemd_daemon_la_SOURCES = \
565         src/sd-daemon.c
566
567 # This is needed because automake is buggy in how it generates the
568 # rules for C programs, but not Vala programs.  We therefore can't
569 # list the .h files as dependencies if we want make dist to work.
570
571 EXTRA_DIST += \
572         ${libsystemd_basic_la_SOURCES:.c=.h} \
573         ${libsystemd_core_la_SOURCES:.c=.h} \
574         ${libsystemd_daemon_la_SOURCES:.c=.h} \
575         src/macro.h \
576         src/def.h \
577         src/ioprio.h \
578         src/missing.h \
579         src/list.h \
580         src/securebits.h \
581         src/linux/auto_dev-ioctl.h \
582         src/linux/fanotify.h \
583         src/initreq.h \
584         src/sd-readahead.h \
585         src/special.h \
586         src/dbus-common.h \
587         src/bus-errors.h \
588         src/cgroup-show.h \
589         src/build.h \
590         src/shutdownd.h \
591         src/umount.h \
592         src/readahead-common.h \
593         src/ask-password-api.h
594
595 MANPAGES = \
596         man/systemd.1 \
597         man/systemctl.1 \
598         man/systemadm.1 \
599         man/systemd-cgls.1 \
600         man/systemd-nspawn.1 \
601         man/systemd-tmpfiles.8 \
602         man/systemd-notify.1 \
603         man/sd_notify.3 \
604         man/sd_readahead.3 \
605         man/sd_booted.3 \
606         man/sd_listen_fds.3 \
607         man/sd_is_fifo.3 \
608         man/systemd.unit.5 \
609         man/systemd.service.5 \
610         man/systemd.socket.5 \
611         man/systemd.mount.5 \
612         man/systemd.automount.5 \
613         man/systemd.swap.5 \
614         man/systemd.timer.5 \
615         man/systemd.path.5 \
616         man/systemd.target.5 \
617         man/systemd.device.5 \
618         man/systemd.snapshot.5 \
619         man/systemd.exec.5 \
620         man/daemon.7 \
621         man/sd-daemon.7 \
622         man/sd-readahead.7 \
623         man/runlevel.8 \
624         man/telinit.8 \
625         man/halt.8 \
626         man/shutdown.8 \
627         man/pam_systemd.8 \
628         man/systemd.conf.5 \
629         man/tmpfiles.d.5 \
630         man/hostname.5 \
631         man/machine-id.5 \
632         man/vconsole.conf.5 \
633         man/locale.conf.5 \
634         man/os-release.5 \
635         man/machine-info.5 \
636         man/modules-load.d.5 \
637         man/sysctl.d.5 \
638         man/systemd-ask-password.1
639
640 if ENABLE_BINFMT
641 MANPAGES += \
642         man/binfmt.d.5
643 endif
644
645 MANPAGES_ALIAS = \
646         man/reboot.8 \
647         man/poweroff.8 \
648         man/sd_is_socket.3 \
649         man/sd_is_socket_unix.3 \
650         man/sd_is_socket_inet.3 \
651         man/sd_notifyf.3 \
652         man/init.1
653
654 man/reboot.8: man/halt.8
655 man/poweroff.8: man/halt.8
656 man/sd_is_socket.3: man/sd_is_fifo.3
657 man/sd_is_socket_unix.3: man/sd_is_fifo.3
658 man/sd_is_socket_inet.3: man/sd_is_fifo.3
659 man/sd_notifyf.3: man/sd_notify.3
660 man/init.1: man/systemd.1
661
662 dist_man_MANS = \
663         $(MANPAGES) \
664         $(MANPAGES_ALIAS)
665
666 nodist_man_MANS = \
667         man/systemd.special.7
668
669 XML_FILES = \
670         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
671
672 XML_IN_FILES = \
673         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
674
675 dist_noinst_DATA = \
676         ${XML_FILES:.xml=.html}
677
678 nodist_noinst_DATA = \
679         ${XML_IN_FILES:.xml.in=.html}
680
681 EXTRA_DIST += \
682         $(XML_FILES) \
683         $(XML_IN_FILES) \
684         ${nodist_man_MANS:=.in} \
685         ${XML_IN_FILES:.xml.in=.html.in}
686
687 systemd_SOURCES = \
688         src/main.c
689
690 systemd_CFLAGS = \
691         $(AM_CFLAGS) \
692         $(DBUS_CFLAGS) \
693         $(UDEV_CFLAGS)
694
695 systemd_LDADD = \
696         libsystemd-core.la
697
698 test_engine_SOURCES = \
699         src/test-engine.c
700
701 test_engine_CFLAGS = $(systemd_CFLAGS)
702 test_engine_LDADD = $(systemd_LDADD)
703
704 test_job_type_SOURCES = \
705         src/test-job-type.c
706
707 test_job_type_CFLAGS = $(systemd_CFLAGS)
708 test_job_type_LDADD = $(systemd_LDADD)
709
710 test_ns_SOURCES = \
711         src/test-ns.c
712
713 test_ns_CFLAGS = $(systemd_CFLAGS)
714 test_ns_LDADD = $(systemd_LDADD)
715
716 test_loopback_SOURCES = \
717         src/test-loopback.c \
718         src/loopback-setup.c
719
720 test_loopback_LDADD = \
721         libsystemd-basic.la
722
723 test_hostname_SOURCES = \
724         src/test-hostname.c \
725         src/hostname-setup.c
726
727 test_hostname_LDADD = \
728         libsystemd-basic.la
729
730 test_daemon_SOURCES = \
731         src/test-daemon.c
732
733 test_daemon_LDADD = \
734         libsystemd-basic.la \
735         libsystemd-daemon.la
736
737 test_cgroup_SOURCES = \
738         src/test-cgroup.c \
739         src/cgroup-util.c
740
741 test_cgroup_CFLAGS = \
742         $(AM_CFLAGS)
743
744 test_cgroup_LDADD = \
745         libsystemd-basic.la
746
747 test_env_replace_SOURCES = \
748         src/test-env-replace.c
749
750 test_env_replace_CFLAGS = \
751         $(AM_CFLAGS)
752
753 test_env_replace_LDADD = \
754         libsystemd-basic.la
755
756 test_strv_SOURCES = \
757         src/test-strv.c \
758         src/specifier.c
759
760 test_strv_CFLAGS = \
761         $(AM_CFLAGS)
762
763 test_strv_LDADD = \
764         libsystemd-basic.la
765
766 systemd_logger_SOURCES = \
767         src/logger.c \
768         src/tcpwrap.c
769
770 systemd_logger_LDADD = \
771         libsystemd-basic.la \
772         libsystemd-daemon.la \
773         $(LIBWRAP_LIBS)
774
775 systemd_initctl_SOURCES = \
776         src/initctl.c \
777         src/dbus-common.c
778
779 systemd_initctl_CFLAGS = \
780         $(AM_CFLAGS) \
781         $(DBUS_CFLAGS)
782
783 systemd_initctl_LDADD = \
784         libsystemd-basic.la \
785         libsystemd-daemon.la \
786         $(DBUS_LIBS)
787
788 systemd_update_utmp_SOURCES = \
789         src/update-utmp.c \
790         src/dbus-common.c \
791         src/utmp-wtmp.c
792
793 systemd_update_utmp_CFLAGS = \
794         $(AM_CFLAGS) \
795         $(DBUS_CFLAGS) \
796         $(AUDIT_CFLAGS)
797
798 systemd_update_utmp_LDADD = \
799         libsystemd-basic.la \
800         $(DBUS_LIBS) \
801         $(AUDIT_LIBS)
802
803 systemd_random_seed_SOURCES = \
804         src/random-seed.c
805
806 systemd_random_seed_CFLAGS = \
807         $(AM_CFLAGS)
808
809 systemd_random_seed_LDADD = \
810         libsystemd-basic.la
811
812 systemd_shutdownd_SOURCES = \
813         src/utmp-wtmp.c \
814         src/shutdownd.c
815
816 systemd_shutdownd_CFLAGS = \
817         $(AM_CFLAGS)
818
819 systemd_shutdownd_LDADD = \
820         libsystemd-basic.la \
821         libsystemd-daemon.la
822
823 systemd_hostnamed_SOURCES = \
824         src/hostnamed.c \
825         src/dbus-common.c \
826         src/polkit.c
827
828 systemd_hostnamed_CFLAGS = \
829         $(AM_CFLAGS) \
830         $(DBUS_CFLAGS)
831
832 systemd_hostnamed_LDADD = \
833         libsystemd-basic.la \
834         libsystemd-daemon.la \
835         $(DBUS_LIBS)
836
837 systemd_localed_SOURCES = \
838         src/localed.c \
839         src/dbus-common.c \
840         src/polkit.c
841
842 systemd_localed_CFLAGS = \
843         $(AM_CFLAGS) \
844         $(DBUS_CFLAGS)
845
846 systemd_localed_LDADD = \
847         libsystemd-basic.la \
848         libsystemd-daemon.la \
849         $(DBUS_LIBS)
850
851 systemd_timedated_SOURCES = \
852         src/timedated.c \
853         src/dbus-common.c \
854         src/polkit.c
855
856 systemd_timedated_CFLAGS = \
857         $(AM_CFLAGS) \
858         $(DBUS_CFLAGS)
859
860 systemd_timedated_LDADD = \
861         libsystemd-basic.la \
862         libsystemd-daemon.la \
863         $(DBUS_LIBS)
864
865 systemd_logind_SOURCES = \
866         src/logind.c \
867         src/logind-dbus.c \
868         src/logind-device.c \
869         src/logind-seat.c \
870         src/logind-seat-dbus.c \
871         src/logind-session.c \
872         src/logind-session-dbus.c \
873         src/logind-user.c \
874         src/logind-user-dbus.c \
875         src/logind-acl.c \
876         src/dbus-common.c \
877         src/dbus-loop.c \
878         src/cgroup-util.c \
879         src/polkit.c
880
881 systemd_logind_CFLAGS = \
882         $(AM_CFLAGS) \
883         $(DBUS_CFLAGS) \
884         $(UDEV_CFLAGS) \
885         $(ACL_CFLAGS)
886
887 systemd_logind_LDADD = \
888         libsystemd-basic.la \
889         libsystemd-daemon.la \
890         $(DBUS_LIBS) \
891         $(UDEV_LIBS) \
892         $(ACL_LIBS)
893
894 systemd_uaccess_SOURCES = \
895         src/uaccess.c \
896         src/logind-acl.c
897
898 systemd_uaccess_CFLAGS = \
899         $(AM_CFLAGS) \
900         $(UDEV_CFLAGS) \
901         $(ACL_CFLAGS)
902
903 systemd_uaccess_LDADD = \
904         libsystemd-basic.la \
905         $(UDEV_LIBS) \
906         $(ACL_LIBS)
907
908 systemd_shutdown_SOURCES = \
909         src/mount-setup.c \
910         src/umount.c \
911         src/shutdown.c
912
913 systemd_shutdown_CFLAGS = \
914         $(AM_CFLAGS) \
915         $(UDEV_CFLAGS)
916
917 systemd_shutdown_LDADD = \
918         libsystemd-basic.la \
919         $(UDEV_LIBS)
920
921 systemd_modules_load_SOURCES = \
922         src/modules-load.c
923
924 systemd_modules_load_CFLAGS = \
925         $(AM_CFLAGS)
926
927 systemd_modules_load_LDADD = \
928         libsystemd-basic.la
929
930 systemd_tmpfiles_SOURCES = \
931         src/tmpfiles.c
932
933 systemd_tmpfiles_CFLAGS = \
934         $(AM_CFLAGS)
935
936 systemd_tmpfiles_LDADD = \
937         libsystemd-basic.la
938
939 systemd_machine_id_setup_SOURCES = \
940         src/machine-id-setup.c \
941         src/machine-id-main.c
942
943 systemd_machine_id_setup_CFLAGS = \
944         $(AM_CFLAGS)
945
946 systemd_machine_id_setup_LDADD = \
947         libsystemd-basic.la
948
949 systemd_sysctl_SOURCES = \
950         src/sysctl.c
951
952 systemd_sysctl_CFLAGS = \
953         $(AM_CFLAGS)
954
955 systemd_sysctl_LDADD = \
956         libsystemd-basic.la
957
958 systemd_binfmt_SOURCES = \
959         src/binfmt.c
960
961 systemd_binfmt_CFLAGS = \
962         $(AM_CFLAGS)
963
964 systemd_binfmt_LDADD = \
965         libsystemd-basic.la
966
967 systemd_fsck_SOURCES = \
968         src/fsck.c \
969         src/dbus-common.c
970
971 systemd_fsck_CFLAGS = \
972         $(AM_CFLAGS) \
973         $(UDEV_CFLAGS) \
974         $(DBUS_CFLAGS)
975
976 systemd_fsck_LDADD = \
977         libsystemd-basic.la \
978         $(UDEV_LIBS) \
979         $(DBUS_LIBS)
980
981 systemd_quotacheck_SOURCES = \
982         src/quotacheck.c
983
984 systemd_quotacheck_CFLAGS = \
985         $(AM_CFLAGS)
986
987 systemd_quotacheck_LDADD = \
988         libsystemd-basic.la
989
990 systemd_timestamp_SOURCES = \
991         src/timestamp.c
992
993 systemd_timestamp_CFLAGS = \
994         $(AM_CFLAGS)
995
996 systemd_timestamp_LDADD = \
997         libsystemd-basic.la
998
999 systemd_ac_power_SOURCES = \
1000         src/ac-power.c
1001
1002 systemd_ac_power_CFLAGS = \
1003         $(AM_CFLAGS) \
1004         $(UDEV_CFLAGS)
1005
1006 systemd_ac_power_LDADD = \
1007         libsystemd-basic.la \
1008         $(UDEV_LIBS)
1009
1010 systemd_detect_virt_SOURCES = \
1011         src/detect-virt.c
1012
1013 systemd_detect_virt_CFLAGS = \
1014         $(AM_CFLAGS)
1015
1016 systemd_detect_virt_LDADD = \
1017         libsystemd-basic.la
1018
1019 systemd_cryptsetup_SOURCES = \
1020         src/cryptsetup.c \
1021         src/ask-password-api.c
1022
1023 systemd_cryptsetup_CFLAGS = \
1024         $(LIBCRYPTSETUP_CFLAGS) \
1025         $(UDEV_CFLAGS) \
1026         $(AM_CFLAGS)
1027
1028 systemd_cryptsetup_LDADD = \
1029         $(LIBCRYPTSETUP_LIBS) \
1030         $(UDEV_LIBS) \
1031         libsystemd-basic.la
1032
1033 systemd_cryptsetup_generator_SOURCES = \
1034         src/cryptsetup-generator.c \
1035         src/unit-name.c
1036
1037 systemd_cryptsetup_generator_CFLAGS = \
1038         $(AM_CFLAGS)
1039
1040 systemd_cryptsetup_generator_LDADD = \
1041         libsystemd-basic.la
1042
1043 systemd_getty_generator_SOURCES = \
1044         src/getty-generator.c \
1045         src/unit-name.c
1046
1047 systemd_getty_generator_CFLAGS = \
1048         $(AM_CFLAGS)
1049
1050 systemd_getty_generator_LDADD = \
1051         libsystemd-basic.la
1052
1053 systemd_user_sessions_SOURCES = \
1054         src/user-sessions.c \
1055         src/cgroup-util.c
1056
1057 systemd_user_sessions_CFLAGS = \
1058         $(AM_CFLAGS)
1059
1060 systemd_user_sessions_LDADD = \
1061         libsystemd-basic.la
1062
1063 systemd_vconsole_setup_SOURCES = \
1064         src/vconsole-setup.c
1065
1066 systemd_vconsole_setup_CFLAGS = \
1067         $(AM_CFLAGS)
1068
1069 systemd_vconsole_setup_LDADD = \
1070         libsystemd-basic.la
1071
1072 systemd_remount_api_vfs_SOURCES = \
1073         src/remount-api-vfs.c \
1074         src/mount-setup.c \
1075         src/exit-status.c
1076
1077 systemd_remount_api_vfs_CFLAGS = \
1078         $(AM_CFLAGS)
1079
1080 systemd_remount_api_vfs_LDADD = \
1081         libsystemd-basic.la
1082
1083 systemd_cgroups_agent_SOURCES = \
1084         src/cgroups-agent.c \
1085         src/dbus-common.c
1086
1087 systemd_cgroups_agent_CFLAGS = \
1088         $(AM_CFLAGS) \
1089         $(DBUS_CFLAGS)
1090
1091 systemd_cgroups_agent_LDADD = \
1092         libsystemd-basic.la \
1093         $(DBUS_LIBS)
1094
1095 systemd_kmsg_syslogd_SOURCES = \
1096         src/kmsg-syslogd.c \
1097         src/fdset.c
1098
1099 systemd_kmsg_syslogd_CFLAGS = \
1100         $(AM_CFLAGS)
1101
1102 systemd_kmsg_syslogd_LDADD = \
1103         libsystemd-basic.la \
1104         libsystemd-daemon.la
1105
1106 systemctl_SOURCES = \
1107         src/systemctl.c \
1108         src/utmp-wtmp.c \
1109         src/dbus-common.c \
1110         src/path-lookup.c \
1111         src/cgroup-show.c \
1112         src/cgroup-util.c \
1113         src/exit-status.c \
1114         src/unit-name.c
1115
1116 systemctl_CFLAGS = \
1117         $(AM_CFLAGS) \
1118         $(DBUS_CFLAGS)
1119
1120 systemctl_LDADD = \
1121         libsystemd-basic.la \
1122         libsystemd-daemon.la \
1123         $(DBUS_LIBS)
1124
1125 systemd_notify_SOURCES = \
1126         src/notify.c \
1127         src/sd-readahead.c
1128
1129 systemd_notify_LDADD = \
1130         libsystemd-basic.la \
1131         libsystemd-daemon.la
1132
1133 systemd_ask_password_SOURCES = \
1134         src/ask-password.c \
1135         src/ask-password-api.c
1136
1137 systemd_ask_password_LDADD = \
1138         libsystemd-basic.la
1139
1140 systemd_reply_password_SOURCES = \
1141         src/reply-password.c
1142
1143 systemd_reply_password_LDADD = \
1144         libsystemd-basic.la
1145
1146 systemd_readahead_collect_SOURCES = \
1147         src/readahead-collect.c \
1148         src/readahead-common.c
1149
1150 systemd_readahead_collect_CFLAGS = \
1151         $(UDEV_CFLAGS)
1152
1153 systemd_readahead_collect_LDADD = \
1154         libsystemd-basic.la \
1155         libsystemd-daemon.la \
1156         $(UDEV_LIBS)
1157
1158 systemd_readahead_replay_SOURCES = \
1159         src/readahead-replay.c \
1160         src/readahead-common.c
1161
1162 systemd_readahead_replay_CFLAGS = \
1163         $(UDEV_CFLAGS)
1164
1165 systemd_readahead_replay_LDADD = \
1166         libsystemd-basic.la \
1167         libsystemd-daemon.la \
1168         $(UDEV_LIBS)
1169
1170 systemd_cgls_SOURCES = \
1171         src/cgls.c \
1172         src/cgroup-show.c \
1173         src/cgroup-util.c
1174
1175 systemd_cgls_CFLAGS = \
1176         $(AM_CFLAGS)
1177
1178 systemd_cgls_LDADD = \
1179         libsystemd-basic.la
1180
1181 systemd_nspawn_SOURCES = \
1182         src/nspawn.c \
1183         src/cgroup-util.c
1184
1185 systemd_nspawn_CFLAGS = \
1186         $(AM_CFLAGS)
1187
1188 systemd_nspawn_LDADD = \
1189         libsystemd-basic.la \
1190         libsystemd-daemon.la
1191
1192 systemd_stdio_bridge_SOURCES = \
1193         src/bridge.c
1194
1195 systemd_stdio_bridge_LDADD = \
1196         libsystemd-basic.la
1197
1198 systemadm_SOURCES = \
1199         src/systemadm.vala \
1200         src/systemd-interfaces.vala
1201
1202 systemadm_CFLAGS = \
1203         $(AM_CFLAGS) \
1204         $(GTK_CFLAGS) \
1205         -Wno-unused-variable \
1206         -Wno-unused-function \
1207         -Wno-shadow \
1208         -Wno-format-nonliteral
1209
1210 systemadm_VALAFLAGS = \
1211         --pkg=posix \
1212         --pkg=gtk+-2.0 \
1213         -g
1214
1215 systemadm_LDADD = \
1216         $(GTK_LIBS)
1217
1218 systemd_gnome_ask_password_agent_SOURCES = \
1219         src/gnome-ask-password-agent.vala
1220
1221 systemd_gnome_ask_password_agent_CFLAGS = \
1222         $(AM_CFLAGS) \
1223         $(LIBNOTIFY_CFLAGS) \
1224         $(GTK_CFLAGS) \
1225         -Wno-unused-variable \
1226         -Wno-unused-function \
1227         -Wno-shadow \
1228         -Wno-format-nonliteral
1229
1230 systemd_gnome_ask_password_agent_VALAFLAGS = \
1231         --pkg=posix \
1232         --pkg=gtk+-2.0 \
1233         --pkg=linux \
1234         --pkg=gio-unix-2.0 \
1235         --pkg=libnotify
1236 if LIBNOTIFY07
1237 systemd_gnome_ask_password_agent_VALAFLAGS += \
1238         -D LIBNOTIFY07
1239 endif
1240 systemd_gnome_ask_password_agent_VALAFLAGS += \
1241         -g
1242
1243 systemd_gnome_ask_password_agent_LDADD = \
1244         $(LIBNOTIFY_LIBS) \
1245         $(GTK_LIBS)
1246
1247 systemd_tty_ask_password_agent_SOURCES = \
1248         src/tty-ask-password-agent.c \
1249         src/ask-password-api.c \
1250         src/utmp-wtmp.c
1251
1252 systemd_tty_ask_password_agent_LDADD = \
1253         libsystemd-basic.la
1254
1255 pam_systemd_la_SOURCES = \
1256         src/pam-module.c \
1257         src/dbus-common.c
1258
1259 pam_systemd_la_CFLAGS = \
1260         $(AM_CFLAGS) \
1261         $(PAM_CFLAGS) \
1262         $(DBUS_CFLAGS) \
1263         -fvisibility=hidden
1264
1265 pam_systemd_la_LDFLAGS = \
1266         -module \
1267         -export-dynamic \
1268         -avoid-version \
1269         -shared \
1270         -export-symbols-regex '^pam_sm_.*'
1271
1272 pam_systemd_la_LIBADD = \
1273         libsystemd-basic.la \
1274         libsystemd-daemon.la \
1275         $(PAM_LIBS) \
1276         $(DBUS_LIBS)
1277
1278 SED_PROCESS = \
1279         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1280         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1281                 -e 's,@rootbindir\@,$(rootbindir),g' \
1282                 -e 's,@bindir\@,$(bindir),g' \
1283                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1284                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1285                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1286                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1287                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1288                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1289                 -e 's,@userunitdir\@,$(userunitdir),g' \
1290                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1291                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1292                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1293                 -e 's,@prefix\@,$(prefix),g' \
1294                 < $< > $@ || rm $@
1295
1296 units/%: units/%.in Makefile
1297         $(SED_PROCESS)
1298
1299 man/%: man/%.in Makefile
1300         $(SED_PROCESS)
1301
1302 %.pc: %.pc.in Makefile
1303         $(SED_PROCESS)
1304
1305 src/%.policy: src/%.policy.in Makefile
1306         $(SED_PROCESS)
1307
1308 M4_PROCESS_SYSTEM = \
1309         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1310         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1311
1312 M4_PROCESS_USER = \
1313         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1314         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1315
1316 units/%: units/%.m4 Makefile
1317         $(M4_PROCESS_SYSTEM)
1318
1319 units/user/%: units/%.m4 Makefile
1320         $(M4_PROCESS_USER)
1321
1322 CLEANFILES = \
1323         $(nodist_systemunit_DATA) \
1324         $(nodist_userunit_DATA) \
1325         $(nodist_man_MANS) \
1326         ${XML_IN_FILES:.xml.in=.html} \
1327         $(pkgconfigdata_DATA) \
1328         src/org.freedesktop.systemd1.policy
1329
1330 if HAVE_VALAC
1331 CLEANFILES += \
1332         ${systemadm_SOURCES:.vala=.c}
1333 endif
1334
1335 if HAVE_XSLTPROC
1336 XSLTPROC_FLAGS = \
1337         --nonet \
1338         --param funcsynopsis.style "'ansi'"
1339
1340 XSLTPROC_PROCESS_MAN = \
1341         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1342         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1343
1344 XSLTPROC_PROCESS_MAN_IN = \
1345         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1346         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1347         mv ${@:.in=} $@
1348
1349 XSLTPROC_PROCESS_HTML = \
1350         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1351         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1352
1353 XSLTPROC_PROCESS_HTML_IN = \
1354         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1355         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1356         mv ${@:.in=} $@
1357
1358 man/%.1: man/%.xml
1359         $(XSLTPROC_PROCESS_MAN)
1360
1361 man/%.1.in: man/%.xml.in
1362         $(XSLTPROC_PROCESS_MAN)
1363
1364 man/%.3: man/%.xml
1365         $(XSLTPROC_PROCESS_MAN)
1366
1367 man/%.3.in: man/%.xml.in
1368         $(XSLTPROC_PROCESS_MAN)
1369
1370 man/%.5: man/%.xml
1371         $(XSLTPROC_PROCESS_MAN)
1372
1373 man/%.5.in: man/%.xml.in
1374         $(XSLTPROC_PROCESS_MAN)
1375
1376 man/%.7: man/%.xml
1377         $(XSLTPROC_PROCESS_MAN)
1378
1379 man/%.7.in: man/%.xml.in
1380         $(XSLTPROC_PROCESS_MAN_IN)
1381
1382 man/%.8: man/%.xml
1383         $(XSLTPROC_PROCESS_MAN)
1384
1385 man/%.8.in: man/%.xml.in
1386         $(XSLTPROC_PROCESS_MAN_IN)
1387
1388 man/%.html: man/%.xml
1389         $(XSLTPROC_PROCESS_HTML)
1390
1391 man/%.html.in: man/%.xml.in
1392         $(XSLTPROC_PROCESS_HTML_IN)
1393
1394 CLEANFILES += \
1395         $(dist_man_MANS) \
1396         ${nodist_man_MANS:=.in} \
1397         ${XML_FILES:.xml=.html} \
1398         ${XML_IN_FILES:.xml.in=.html.in}
1399 endif
1400
1401 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1402
1403 org.freedesktop.systemd1.%.xml: systemd
1404         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1405                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1406                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1407
1408 org.freedesktop.hostname1.xml: systemd-hostnamed
1409         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1410                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1411                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1412
1413 org.freedesktop.locale1.xml: systemd-localed
1414         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1415                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1416                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1417
1418 org.freedesktop.timedate1.xml: systemd-timedated
1419         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1420                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1421                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1422
1423 CLEANFILES += \
1424         $(dbusinterface_DATA)
1425
1426 install-data-hook:
1427         $(MKDIR_P) -m 0755 \
1428                 $(DESTDIR)$(tmpfilesdir) \
1429                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1430                 $(DESTDIR)$(prefix)/lib/modules-load.d \
1431                 $(DESTDIR)$(sysconfdir)/modules-load.d \
1432                 $(DESTDIR)$(prefix)/lib/sysctl.d \
1433                 $(DESTDIR)$(sysconfdir)/sysctl.d \
1434                 $(DESTDIR)$(systemshutdowndir) \
1435                 $(DESTDIR)$(systemgeneratordir) \
1436                 $(DESTDIR)$(usergeneratordir)
1437 if ENABLE_BINFMT
1438         $(MKDIR_P) -m 0755 \
1439                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1440                 $(DESTDIR)$(sysconfdir)/binfmt.d
1441 endif
1442         $(MKDIR_P) -m 0755 \
1443                 $(DESTDIR)$(systemunitdir) \
1444                 $(DESTDIR)$(userunitdir) \
1445                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1446                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1447                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1448                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1449                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1450                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1451                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1452                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1453                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1454                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1455                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1456                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1457                 $(DESTDIR)$(pkgsysconfdir)/system \
1458                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1459                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1460                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1461                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1462                 $(DESTDIR)$(pkgsysconfdir)/user \
1463                 $(DESTDIR)$(dbussessionservicedir) \
1464                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1465         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1466                 rm -f user && \
1467                 $(LN_S) $(pkgsysconfdir)/user user )
1468         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1469                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1470                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1471                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1472                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1473                 $(LN_S) ../syslog.socket syslog.socket )
1474         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1475                 rm -f systemd-update-utmp-runlevel.service && \
1476                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1477         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1478                 rm -f systemd-update-utmp-runlevel.service && \
1479                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1480         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1481                 rm -f systemd-update-utmp-runlevel.service && \
1482                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1483         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1484                 rm -f systemd-update-utmp-runlevel.service && \
1485                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1486         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1487                 rm -f systemd-update-utmp-runlevel.service && \
1488                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1489         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1490                 rm -f systemd-update-utmp-shutdown.service \
1491                         systemd-random-seed-save.service && \
1492                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1493                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1494         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1495                 rm -f systemd-remount-api-vfs.service \
1496                         fsck-root.service \
1497                         remount-rootfs.service \
1498                         var-run.mount \
1499                         media.mount && \
1500                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1501                 $(LN_S) ../fsck-root.service fsck-root.service && \
1502                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1503                 $(LN_S) ../var-run.mount var-run.mount && \
1504                 $(LN_S) ../media.mount media.mount )
1505         ( cd $(DESTDIR)$(userunitdir) && \
1506                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
1507                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1508                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1509                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1510                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1511                 $(LN_S) $(systemunitdir)/sound.target sound.target )
1512         ( cd $(DESTDIR)$(systemunitdir) && \
1513                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1514                 $(LN_S) poweroff.target runlevel0.target && \
1515                 $(LN_S) rescue.target runlevel1.target && \
1516                 $(LN_S) multi-user.target runlevel2.target && \
1517                 $(LN_S) multi-user.target runlevel3.target && \
1518                 $(LN_S) multi-user.target runlevel4.target && \
1519                 $(LN_S) graphical.target runlevel5.target && \
1520                 $(LN_S) reboot.target runlevel6.target )
1521         ( cd $(DESTDIR)$(systemunitdir) && \
1522                 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt@.service && \
1523                 $(LN_S) graphical.target default.target && \
1524                 $(LN_S) reboot.target ctrl-alt-del.target && \
1525                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service && \
1526                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \
1527                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service && \
1528                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
1529                 $(LN_S) getty@.service autovt@.service )
1530         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1531                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
1532                 $(LN_S) ../getty.target getty.target && \
1533                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1534                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path && \
1535                 $(LN_S) ../systemd-logind.service systemd-logind.service )
1536         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1537                 rm -f getty@tty1.service && \
1538                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
1539         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1540                 rm -f remote-fs.target && \
1541                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1542         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1543                 rm -f dev-hugepages.automount \
1544                         dev-mqueue.automount \
1545                         sys-kernel-debug.automount \
1546                         sys-kernel-security.automount \
1547                         systemd-vconsole-setup.service \
1548                         systemd-modules-load.service \
1549                         systemd-random-seed-load.service \
1550                         systemd-tmpfiles-setup.service \
1551                         systemd-sysctl.service \
1552                         systemd-ask-password-console.path \
1553                         systemd-kmsg-syslogd.service \
1554                         cryptsetup.target && \
1555                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1556                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1557                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1558                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1559                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1560                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1561                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1562                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1563                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1564                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1565                 $(LN_S) ../systemd-kmsg-syslogd.service && \
1566                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1567 if ENABLE_BINFMT
1568         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1569                 rm -f systemd-binfmt.service \
1570                         proc-sys-fs-binfmt_misc.automount && \
1571                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1572                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1573 endif
1574         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1575                 rm -f systemd-tmpfiles-clean.timer && \
1576                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1577         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1578                 rm -f org.freedesktop.systemd1.service && \
1579                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1580 if HAVE_PLYMOUTH
1581         $(MKDIR_P) -m 0755 \
1582                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1583                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1584                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1585                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1586                 $(DESTDIR)$(systemunitdir)/halt.target.wants
1587         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1588                 rm -f plymouth-start.service plymouth-read-write.service && \
1589                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1590                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1591         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1592                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1593                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1594                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1595         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1596                 rm -f plymouth-reboot.service && \
1597                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1598         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1599                 rm -f plymouth-kexec.service && \
1600                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1601         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1602                 rm -f plymouth-poweroff.service && \
1603                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1604         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1605                 rm -f plymouth-halt.service && \
1606                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1607 endif
1608 if TARGET_MEEGO
1609         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1610         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1611                 rm -f network.target && \
1612                 $(LN_S) $(systemunitdir)/network.target network.target )
1613         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1614                 rm -f * )
1615         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1616                 rm -f * )
1617         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1618                 rm -f * )
1619         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1620                 rm -f * )
1621 endif
1622
1623 if TARGET_FEDORA
1624         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1625         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1626                 rm -f rc-local.service && \
1627                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1628         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1629                 rm -f halt-local.service && \
1630                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1631         ( cd $(DESTDIR)$(systemunitdir) && \
1632                 rm -f display-manager.service single.service && \
1633                 $(LN_S) prefdm.service display-manager.service && \
1634                 $(LN_S) rescue.service single.service )
1635         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1636                 rm -f display-manager.service && \
1637                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1638 endif
1639
1640 if TARGET_MANDRIVA
1641         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1642         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1643                 rm -f rc-local.service && \
1644                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1645         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1646                 rm -f halt-local.service && \
1647                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1648         ( cd $(DESTDIR)$(systemunitdir) && \
1649                 rm -f display-manager.service dm.service single.service && \
1650                 $(LN_S) prefdm.service display-manager.service && \
1651                 $(LN_S) prefdm.service dm.service && \
1652                 $(LN_S) rescue.service single.service )
1653         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1654                 rm -f display-manager.service && \
1655                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1656 endif
1657
1658 if TARGET_DEBIAN_OR_UBUNTU
1659         ( cd $(DESTDIR)$(systemunitdir) && \
1660                 rm -f runlevel5.target && \
1661                 $(LN_S) multi-user.target runlevel5.target )
1662 endif
1663
1664 if HAVE_SYSV_COMPAT
1665         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1666                 rm -f var-lock.mount && \
1667                 $(LN_S) ../var-lock.mount var-lock.mount )
1668 endif
1669
1670 DISTCHECK_CONFIGURE_FLAGS = \
1671         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1672         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1673         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1674         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1675         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1676         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1677         --with-rootdir=$$dc_install_base/$(rootdir)
1678
1679 upload: all distcheck
1680         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1681         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1682         scp man/*.html tango:public/systemd-man/
1683
1684 git-tag:
1685         git tag "v$(VERSION)" -m "systemd $(VERSION)"