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