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