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