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