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