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