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