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