]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
journald: parse configuration file
[thirdparty/systemd.git] / Makefile.am
1 # This file is part of systemd.
2 #
3 # Copyright 2011 Lennart Poettering
4 # Copyright 2011 Kay Sievers
5 #
6 # systemd is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # systemd is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 SUBDIRS = po
22
23 LIBSYSTEMD_LOGIN_CURRENT=1
24 LIBSYSTEMD_LOGIN_REVISION=0
25 LIBSYSTEMD_LOGIN_AGE=1
26
27 LIBSYSTEMD_DAEMON_CURRENT=0
28 LIBSYSTEMD_DAEMON_REVISION=0
29 LIBSYSTEMD_DAEMON_AGE=0
30
31 LIBSYSTEMD_ID128_CURRENT=0
32 LIBSYSTEMD_ID128_REVISION=0
33 LIBSYSTEMD_ID128_AGE=0
34
35 LIBSYSTEMD_JOURNAL_CURRENT=0
36 LIBSYSTEMD_JOURNAL_REVISION=0
37 LIBSYSTEMD_JOURNAL_AGE=0
38
39 # Dirs of external packages
40 dbuspolicydir=@dbuspolicydir@
41 dbussessionservicedir=@dbussessionservicedir@
42 dbussystemservicedir=@dbussystemservicedir@
43 dbusinterfacedir=@dbusinterfacedir@
44 udevrulesdir=@udevrulesdir@
45 pamlibdir=@pamlibdir@
46 pkgconfigdatadir=$(datadir)/pkgconfig
47 pkgconfiglibdir=$(libdir)/pkgconfig
48 polkitpolicydir=$(datadir)/polkit-1/actions
49 bashcompletiondir=$(sysconfdir)/bash_completion.d
50
51 # Our own, non-special dirs
52 pkgsysconfdir=$(sysconfdir)/systemd
53 userunitdir=$(prefix)/lib/systemd/user
54 tmpfilesdir=$(prefix)/lib/tmpfiles.d
55 usergeneratordir=$(pkglibexecdir)/user-generators
56 pkgincludedir=$(includedir)/systemd
57
58 # And these are the special ones for /
59 rootdir=@rootdir@
60 rootbindir=$(rootdir)/bin
61 rootlibexecdir=$(rootdir)/lib/systemd
62 systemgeneratordir=$(rootlibexecdir)/system-generators
63 systemshutdowndir=$(rootlibexecdir)/system-shutdown
64 systemunitdir=$(rootdir)/lib/systemd/system
65
66 CLEANFILES =
67 EXTRA_DIST =
68 INSTALL_EXEC_HOOKS =
69 UNINSTALL_EXEC_HOOKS =
70 INSTALL_DATA_HOOKS =
71 pkginclude_HEADERS =
72 lib_LTLIBRARIES =
73 pkgconfiglib_DATA =
74 polkitpolicy_in_files =
75
76 AM_CPPFLAGS = \
77 -include $(top_builddir)/config.h \
78 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
79 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
80 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
81 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
82 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
83 -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
84 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
85 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
86 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
87 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
88 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
89 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
90 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
91 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
92 -DRUNTIME_DIR=\"/run\" \
93 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
94 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
95 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
96 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
97 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
98 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
99 -I $(top_srcdir)/src \
100 -I $(top_srcdir)/src/readahead \
101 -I $(top_srcdir)/src/login \
102 -I $(top_srcdir)/src/journal
103
104 if TARGET_GENTOO
105 AM_CPPFLAGS += \
106 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
107 -DKBD_SETFONT=\"/usr/bin/setfont\" \
108 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
109 else
110 if TARGET_ARCH
111 AM_CPPFLAGS += \
112 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
113 -DKBD_SETFONT=\"/usr/bin/setfont\" \
114 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
115 else
116 if TARGET_FRUGALWARE
117 AM_CPPFLAGS += \
118 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
119 -DKBD_SETFONT=\"/usr/bin/setfont\" \
120 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
121 else
122 if TARGET_MANDRIVA
123 AM_CPPFLAGS += \
124 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
125 -DKBD_SETFONT=\"/bin/setfont\" \
126 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
127 else
128 if TARGET_MEEGO
129 AM_CPPFLAGS += \
130 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
131 -DKBD_SETFONT=\"/bin/setfont\" \
132 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
133 else
134 if TARGET_ANGSTROM
135 AM_CPPFLAGS += \
136 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
137 -DKBD_SETFONT=\"/usr/bin/setfont\" \
138 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
139 else
140 if TARGET_MAGEIA
141 AM_CPPFLAGS += \
142 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
143 -DKBD_SETFONT=\"/bin/setfont\" \
144 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
145 else
146 AM_CPPFLAGS += \
147 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
148 -DKBD_SETFONT=\"/bin/setfont\" \
149 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
150 endif
151 endif
152 endif
153 endif
154 endif
155 endif
156 endif
157
158 rootbin_PROGRAMS = \
159 systemd \
160 systemctl \
161 systemd-notify \
162 systemd-ask-password \
163 systemd-tty-ask-password-agent \
164 systemd-tmpfiles \
165 systemd-machine-id-setup
166
167 bin_PROGRAMS = \
168 systemd-cgls \
169 systemd-stdio-bridge \
170 systemd-nspawn
171
172 dist_bin_SCRIPTS = \
173 src/systemd-analyze
174
175 if HAVE_GTK
176 bin_PROGRAMS += \
177 systemadm \
178 systemd-gnome-ask-password-agent
179 endif
180
181 rootlibexec_PROGRAMS = \
182 systemd-stdout-syslog-bridge \
183 systemd-cgroups-agent \
184 systemd-initctl \
185 systemd-update-utmp \
186 systemd-shutdownd \
187 systemd-shutdown \
188 systemd-modules-load \
189 systemd-remount-api-vfs \
190 systemd-kmsg-syslogd \
191 systemd-reply-password \
192 systemd-fsck \
193 systemd-timestamp \
194 systemd-ac-power \
195 systemd-detect-virt \
196 systemd-sysctl
197
198 systemgenerator_PROGRAMS = \
199 systemd-getty-generator
200
201 noinst_PROGRAMS = \
202 test-engine \
203 test-job-type \
204 test-ns \
205 test-loopback \
206 test-hostname \
207 test-daemon \
208 test-cgroup \
209 test-env-replace \
210 test-strv \
211 test-install
212
213 dist_pkgsysconf_DATA = \
214 src/system.conf \
215 src/user.conf
216
217 dist_dbuspolicy_DATA = \
218 src/org.freedesktop.systemd1.conf
219
220 dist_dbussystemservice_DATA = \
221 src/org.freedesktop.systemd1.service
222
223 dist_udevrules_DATA = \
224 src/71-seat.rules
225
226 nodist_udevrules_DATA = \
227 src/73-seat-late.rules \
228 src/99-systemd.rules
229
230 dbusinterface_DATA = \
231 org.freedesktop.systemd1.Manager.xml \
232 org.freedesktop.systemd1.Job.xml \
233 org.freedesktop.systemd1.Unit.xml \
234 org.freedesktop.systemd1.Service.xml \
235 org.freedesktop.systemd1.Socket.xml \
236 org.freedesktop.systemd1.Timer.xml \
237 org.freedesktop.systemd1.Target.xml \
238 org.freedesktop.systemd1.Device.xml \
239 org.freedesktop.systemd1.Mount.xml \
240 org.freedesktop.systemd1.Automount.xml \
241 org.freedesktop.systemd1.Snapshot.xml \
242 org.freedesktop.systemd1.Swap.xml \
243 org.freedesktop.systemd1.Path.xml
244
245 dist_bashcompletion_DATA = \
246 src/systemd-bash-completion.sh
247
248 dist_tmpfiles_DATA = \
249 tmpfiles.d/systemd.conf \
250 tmpfiles.d/tmp.conf \
251 tmpfiles.d/x11.conf
252
253 if HAVE_SYSV_COMPAT
254 dist_tmpfiles_DATA += \
255 tmpfiles.d/legacy.conf
256 endif
257
258 dist_systemunit_DATA = \
259 units/graphical.target \
260 units/multi-user.target \
261 units/emergency.service \
262 units/emergency.target \
263 units/sysinit.target \
264 units/basic.target \
265 units/getty.target \
266 units/halt.target \
267 units/kexec.target \
268 units/local-fs.target \
269 units/local-fs-pre.target \
270 units/remote-fs.target \
271 units/remote-fs-pre.target \
272 units/network.target \
273 units/nss-lookup.target \
274 units/mail-transfer-agent.target \
275 units/http-daemon.target \
276 units/poweroff.target \
277 units/reboot.target \
278 units/rescue.target \
279 units/rpcbind.target \
280 units/time-sync.target \
281 units/shutdown.target \
282 units/final.target \
283 units/umount.target \
284 units/sigpwr.target \
285 units/sockets.target \
286 units/swap.target \
287 units/systemd-initctl.socket \
288 units/systemd-stdout-syslog-bridge.socket \
289 units/systemd-shutdownd.socket \
290 units/syslog.socket \
291 units/dev-hugepages.mount \
292 units/dev-mqueue.mount \
293 units/sys-kernel-config.mount \
294 units/sys-kernel-debug.mount \
295 units/sys-kernel-security.mount \
296 units/sys-fs-fuse-connections.mount \
297 units/var-run.mount \
298 units/media.mount \
299 units/remount-rootfs.service \
300 units/printer.target \
301 units/sound.target \
302 units/bluetooth.target \
303 units/smartcard.target \
304 units/systemd-tmpfiles-clean.timer \
305 units/quotaon.service \
306 units/systemd-ask-password-wall.path \
307 units/systemd-ask-password-console.path \
308 units/syslog.target
309
310 if HAVE_SYSV_COMPAT
311 dist_systemunit_DATA += \
312 units/var-lock.mount
313 endif
314
315 nodist_systemunit_DATA = \
316 units/getty@.service \
317 units/serial-getty@.service \
318 units/console-shell.service \
319 units/systemd-initctl.service \
320 units/systemd-stdout-syslog-bridge.service \
321 units/systemd-shutdownd.service \
322 units/systemd-kmsg-syslogd.service \
323 units/systemd-modules-load.service \
324 units/systemd-remount-api-vfs.service \
325 units/systemd-update-utmp-runlevel.service \
326 units/systemd-update-utmp-shutdown.service \
327 units/systemd-tmpfiles-setup.service \
328 units/systemd-tmpfiles-clean.service \
329 units/systemd-ask-password-wall.service \
330 units/systemd-ask-password-console.service \
331 units/systemd-sysctl.service \
332 units/halt.service \
333 units/poweroff.service \
334 units/reboot.service \
335 units/kexec.service \
336 units/fsck@.service \
337 units/fsck-root.service \
338 units/rescue.service \
339 units/user@.service
340
341 dist_userunit_DATA = \
342 units/user/default.target \
343 units/user/exit.target
344
345 nodist_userunit_DATA = \
346 units/user/exit.service
347
348 EXTRA_DIST += \
349 units/getty@.service.m4 \
350 units/serial-getty@.service.m4 \
351 units/console-shell.service.m4 \
352 units/rescue.service.m4 \
353 units/systemd-initctl.service.in \
354 units/systemd-stdout-syslog-bridge.service.in \
355 units/systemd-shutdownd.service.in \
356 units/systemd-kmsg-syslogd.service.in \
357 units/systemd-modules-load.service.in \
358 units/systemd-remount-api-vfs.service.in \
359 units/systemd-update-utmp-runlevel.service.in \
360 units/systemd-update-utmp-shutdown.service.in \
361 units/systemd-tmpfiles-setup.service.in \
362 units/systemd-tmpfiles-clean.service.in \
363 units/systemd-ask-password-wall.service.in \
364 units/systemd-ask-password-console.service.in \
365 units/systemd-sysctl.service.in \
366 units/halt.service.in \
367 units/poweroff.service.in \
368 units/reboot.service.in \
369 units/kexec.service.in \
370 units/user/exit.service.in \
371 units/fsck@.service.in \
372 units/fsck-root.service.in \
373 units/user@.service.in \
374 systemd.pc.in \
375 introspect.awk \
376 src/73-seat-late.rules.in \
377 src/99-systemd.rules.in \
378 man/custom-html.xsl
379
380 if TARGET_FEDORA
381 dist_systemunit_DATA += \
382 units/fedora/prefdm.service \
383 units/fedora/rc-local.service \
384 units/fedora/halt-local.service
385 systemgenerator_PROGRAMS += \
386 systemd-rc-local-generator
387 endif
388
389 if TARGET_MANDRIVA
390 dist_systemunit_DATA += \
391 units/mandriva/prefdm.service \
392 units/fedora/rc-local.service \
393 units/fedora/halt-local.service
394 systemgenerator_PROGRAMS += \
395 systemd-rc-local-generator
396 endif
397
398 if TARGET_FRUGALWARE
399 dist_systemunit_DATA += \
400 units/frugalware/display-manager.service
401 endif
402
403 if TARGET_SUSE
404 dist_systemunit_DATA += \
405 units/suse/rc-local.service \
406 units/suse/halt-local.service
407 systemgenerator_PROGRAMS += \
408 systemd-rc-local-generator
409 endif
410
411 if TARGET_MAGEIA
412 dist_systemunit_DATA += \
413 units/mageia/prefdm.service \
414 units/fedora/rc-local.service \
415 units/fedora/halt-local.service
416 systemgenerator_PROGRAMS += \
417 systemd-rc-local-generator
418 endif
419
420 if HAVE_PLYMOUTH
421 dist_systemunit_DATA += \
422 units/plymouth-start.service \
423 units/plymouth-read-write.service \
424 units/plymouth-quit.service \
425 units/plymouth-quit-wait.service \
426 units/plymouth-reboot.service \
427 units/plymouth-kexec.service \
428 units/plymouth-poweroff.service \
429 units/plymouth-halt.service \
430 units/systemd-ask-password-plymouth.path
431
432 nodist_systemunit_DATA += \
433 units/systemd-ask-password-plymouth.service
434
435 EXTRA_DIST += \
436 units/systemd-ask-password-plymouth.service.in
437 endif
438
439 dist_doc_DATA = \
440 README \
441 LICENSE \
442 DISTRO_PORTING
443
444 pkgconfigdata_DATA = \
445 systemd.pc
446
447 # First passed through sed, followed by intltool
448 polkitpolicy_in_in_files = \
449 src/org.freedesktop.systemd1.policy.in.in
450
451 nodist_polkitpolicy_DATA = \
452 $(polkitpolicy_in_files:.policy.in=.policy) \
453 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
454
455 EXTRA_DIST += \
456 $(polkitpolicy_in_files) \
457 $(polkitpolicy_in_in_files)
458
459 @INTLTOOL_POLICY_RULE@
460
461 noinst_LTLIBRARIES = \
462 libsystemd-basic.la \
463 libsystemd-core.la
464
465 libsystemd_basic_la_SOURCES = \
466 src/util.c \
467 src/virt.c \
468 src/label.c \
469 src/hashmap.c \
470 src/set.c \
471 src/strv.c \
472 src/conf-parser.c \
473 src/socket-util.c \
474 src/log.c \
475 src/ratelimit.c \
476 src/exit-status.c
477
478 libsystemd_basic_la_CFLAGS = \
479 $(AM_CFLAGS) \
480 $(SELINUX_CFLAGS)
481
482 libsystemd_basic_la_LIBADD = \
483 $(SELINUX_LIBS) \
484 $(CAP_LIBS)
485
486 libsystemd_core_la_SOURCES = \
487 src/unit.c \
488 src/job.c \
489 src/manager.c \
490 src/path-lookup.c \
491 src/load-fragment.c \
492 src/service.c \
493 src/automount.c \
494 src/mount.c \
495 src/swap.c \
496 src/device.c \
497 src/target.c \
498 src/snapshot.c \
499 src/socket.c \
500 src/timer.c \
501 src/path.c \
502 src/load-dropin.c \
503 src/execute.c \
504 src/utmp-wtmp.c \
505 src/dbus.c \
506 src/dbus-manager.c \
507 src/dbus-unit.c \
508 src/dbus-job.c \
509 src/dbus-service.c \
510 src/dbus-socket.c \
511 src/dbus-timer.c \
512 src/dbus-target.c \
513 src/dbus-mount.c \
514 src/dbus-automount.c \
515 src/dbus-swap.c \
516 src/dbus-snapshot.c \
517 src/dbus-device.c \
518 src/dbus-execute.c \
519 src/dbus-path.c \
520 src/cgroup.c \
521 src/mount-setup.c \
522 src/hostname-setup.c \
523 src/selinux-setup.c \
524 src/loopback-setup.c \
525 src/kmod-setup.c \
526 src/locale-setup.c \
527 src/machine-id-setup.c \
528 src/specifier.c \
529 src/unit-name.c \
530 src/fdset.c \
531 src/namespace.c \
532 src/tcpwrap.c \
533 src/cgroup-util.c \
534 src/condition.c \
535 src/dbus-common.c \
536 src/sd-daemon.c \
537 src/install.c \
538 src/cgroup-attr.c \
539 src/sd-id128.c
540
541 nodist_libsystemd_core_la_SOURCES = \
542 src/load-fragment-gperf.c \
543 src/load-fragment-gperf-nulstr.c
544
545 EXTRA_DIST += \
546 src/load-fragment-gperf.gperf.m4
547
548 libsystemd_core_la_CFLAGS = \
549 $(AM_CFLAGS) \
550 $(DBUS_CFLAGS) \
551 $(UDEV_CFLAGS) \
552 $(LIBWRAP_CFLAGS) \
553 $(PAM_CFLAGS) \
554 $(AUDIT_CFLAGS)
555
556 libsystemd_core_la_LIBADD = \
557 libsystemd-basic.la \
558 $(DBUS_LIBS) \
559 $(UDEV_LIBS) \
560 $(LIBWRAP_LIBS) \
561 $(PAM_LIBS) \
562 $(AUDIT_LIBS) \
563 $(CAP_LIBS)
564
565 # This is needed because automake is buggy in how it generates the
566 # rules for C programs, but not Vala programs. We therefore can't
567 # list the .h files as dependencies if we want make dist to work.
568
569 EXTRA_DIST += \
570 ${libsystemd_basic_la_SOURCES:.c=.h} \
571 ${libsystemd_core_la_SOURCES:.c=.h} \
572 src/macro.h \
573 src/def.h \
574 src/ioprio.h \
575 src/missing.h \
576 src/list.h \
577 src/securebits.h \
578 src/linux/auto_dev-ioctl.h \
579 src/linux/fanotify.h \
580 src/initreq.h \
581 src/special.h \
582 src/dbus-common.h \
583 src/bus-errors.h \
584 src/cgroup-show.h \
585 src/build.h \
586 src/shutdownd.h \
587 src/umount.h \
588 src/ask-password-api.h \
589 src/pager.h \
590 src/sysfs-show.h \
591 src/polkit.h \
592 src/dbus-loop.h \
593 src/spawn-agent.h \
594 src/acl-util.h
595
596 MANPAGES = \
597 man/systemd.1 \
598 man/systemctl.1 \
599 man/systemadm.1 \
600 man/systemd-cgls.1 \
601 man/systemd-nspawn.1 \
602 man/systemd-tmpfiles.8 \
603 man/systemd-notify.1 \
604 man/systemd.unit.5 \
605 man/systemd.service.5 \
606 man/systemd.socket.5 \
607 man/systemd.mount.5 \
608 man/systemd.automount.5 \
609 man/systemd.swap.5 \
610 man/systemd.timer.5 \
611 man/systemd.path.5 \
612 man/systemd.target.5 \
613 man/systemd.device.5 \
614 man/systemd.snapshot.5 \
615 man/systemd.exec.5 \
616 man/daemon.7 \
617 man/runlevel.8 \
618 man/telinit.8 \
619 man/halt.8 \
620 man/shutdown.8 \
621 man/pam_systemd.8 \
622 man/systemd.conf.5 \
623 man/tmpfiles.d.5 \
624 man/hostname.5 \
625 man/timezone.5 \
626 man/machine-id.5 \
627 man/locale.conf.5 \
628 man/os-release.5 \
629 man/machine-info.5 \
630 man/modules-load.d.5 \
631 man/sysctl.d.5 \
632 man/systemd-ask-password.1
633
634 MANPAGES_ALIAS = \
635 man/reboot.8 \
636 man/poweroff.8 \
637 man/init.1
638
639 man/reboot.8: man/halt.8
640 man/poweroff.8: man/halt.8
641 man/init.1: man/systemd.1
642
643 dist_man_MANS = \
644 $(MANPAGES) \
645 $(MANPAGES_ALIAS)
646
647 nodist_man_MANS = \
648 man/systemd.special.7
649
650 XML_FILES = \
651 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
652
653 XML_IN_FILES = \
654 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
655
656 dist_noinst_DATA = \
657 ${XML_FILES:.xml=.html}
658
659 nodist_noinst_DATA = \
660 ${XML_IN_FILES:.xml.in=.html}
661
662 EXTRA_DIST += \
663 $(XML_FILES) \
664 $(XML_IN_FILES) \
665 ${nodist_man_MANS:=.in} \
666 ${XML_IN_FILES:.xml.in=.html.in}
667
668 systemd_SOURCES = \
669 src/main.c
670
671 systemd_CFLAGS = \
672 $(AM_CFLAGS) \
673 $(DBUS_CFLAGS) \
674 $(UDEV_CFLAGS)
675
676 systemd_LDADD = \
677 libsystemd-core.la
678
679 test_engine_SOURCES = \
680 src/test-engine.c
681
682 test_engine_CFLAGS = $(systemd_CFLAGS)
683 test_engine_LDADD = $(systemd_LDADD)
684
685 test_job_type_SOURCES = \
686 src/test-job-type.c
687
688 test_job_type_CFLAGS = $(systemd_CFLAGS)
689 test_job_type_LDADD = $(systemd_LDADD)
690
691 test_ns_SOURCES = \
692 src/test-ns.c
693
694 test_ns_CFLAGS = $(systemd_CFLAGS)
695 test_ns_LDADD = $(systemd_LDADD)
696
697 test_loopback_SOURCES = \
698 src/test-loopback.c \
699 src/loopback-setup.c
700
701 test_loopback_LDADD = \
702 libsystemd-basic.la
703
704 test_hostname_SOURCES = \
705 src/test-hostname.c \
706 src/hostname-setup.c
707
708 test_hostname_LDADD = \
709 libsystemd-basic.la
710
711 test_daemon_SOURCES = \
712 src/test-daemon.c
713
714 test_daemon_LDADD = \
715 libsystemd-basic.la \
716 libsystemd-daemon.la
717
718 test_cgroup_SOURCES = \
719 src/test-cgroup.c \
720 src/cgroup-util.c
721
722 test_cgroup_LDADD = \
723 libsystemd-basic.la
724
725 test_env_replace_SOURCES = \
726 src/test-env-replace.c
727
728 test_env_replace_LDADD = \
729 libsystemd-basic.la
730
731 test_strv_SOURCES = \
732 src/test-strv.c \
733 src/specifier.c
734
735 test_strv_LDADD = \
736 libsystemd-basic.la
737
738 test_install_SOURCES = \
739 src/test-install.c \
740 src/install.c \
741 src/path-lookup.c \
742 src/unit-name.c
743
744 test_install_CFLAGS = \
745 $(AM_CFLAGS) \
746 $(DBUS_CFLAGS)
747
748 test_install_LDADD = \
749 libsystemd-basic.la
750
751 systemd_stdout_syslog_bridge_SOURCES = \
752 src/stdout-syslog-bridge.c \
753 src/tcpwrap.c
754
755 systemd_stdout_syslog_bridge_LDADD = \
756 libsystemd-basic.la \
757 libsystemd-daemon.la \
758 $(LIBWRAP_LIBS)
759
760 systemd_initctl_SOURCES = \
761 src/initctl.c \
762 src/dbus-common.c
763
764 systemd_initctl_CFLAGS = \
765 $(AM_CFLAGS) \
766 $(DBUS_CFLAGS)
767
768 systemd_initctl_LDADD = \
769 libsystemd-basic.la \
770 libsystemd-daemon.la \
771 $(DBUS_LIBS)
772
773 systemd_update_utmp_SOURCES = \
774 src/update-utmp.c \
775 src/dbus-common.c \
776 src/utmp-wtmp.c
777
778 systemd_update_utmp_CFLAGS = \
779 $(AM_CFLAGS) \
780 $(DBUS_CFLAGS) \
781 $(AUDIT_CFLAGS)
782
783 systemd_update_utmp_LDADD = \
784 libsystemd-basic.la \
785 $(DBUS_LIBS) \
786 $(AUDIT_LIBS)
787
788 systemd_shutdownd_SOURCES = \
789 src/utmp-wtmp.c \
790 src/shutdownd.c
791
792 systemd_shutdownd_CFLAGS = \
793 $(AM_CFLAGS)
794
795 systemd_shutdownd_LDADD = \
796 libsystemd-basic.la \
797 libsystemd-daemon.la
798
799 systemd_shutdown_SOURCES = \
800 src/mount-setup.c \
801 src/umount.c \
802 src/shutdown.c
803
804 systemd_shutdown_CFLAGS = \
805 $(AM_CFLAGS) \
806 $(UDEV_CFLAGS)
807
808 systemd_shutdown_LDADD = \
809 libsystemd-basic.la \
810 $(UDEV_LIBS)
811
812 systemd_modules_load_SOURCES = \
813 src/modules-load.c
814
815 systemd_modules_load_LDADD = \
816 libsystemd-basic.la
817
818 systemd_tmpfiles_SOURCES = \
819 src/tmpfiles.c
820
821 systemd_tmpfiles_LDADD = \
822 libsystemd-basic.la
823
824 systemd_machine_id_setup_SOURCES = \
825 src/machine-id-setup.c \
826 src/machine-id-main.c \
827 src/sd-id128.c
828
829 systemd_machine_id_setup_LDADD = \
830 libsystemd-basic.la
831
832 systemd_sysctl_SOURCES = \
833 src/sysctl.c
834
835 systemd_sysctl_LDADD = \
836 libsystemd-basic.la
837
838 systemd_fsck_SOURCES = \
839 src/fsck.c \
840 src/dbus-common.c
841
842 systemd_fsck_CFLAGS = \
843 $(AM_CFLAGS) \
844 $(UDEV_CFLAGS) \
845 $(DBUS_CFLAGS)
846
847 systemd_fsck_LDADD = \
848 libsystemd-basic.la \
849 $(UDEV_LIBS) \
850 $(DBUS_LIBS)
851
852 systemd_timestamp_SOURCES = \
853 src/timestamp.c
854
855 systemd_timestamp_LDADD = \
856 libsystemd-basic.la
857
858 systemd_ac_power_SOURCES = \
859 src/ac-power.c
860
861 systemd_ac_power_CFLAGS = \
862 $(AM_CFLAGS) \
863 $(UDEV_CFLAGS)
864
865 systemd_ac_power_LDADD = \
866 libsystemd-basic.la \
867 $(UDEV_LIBS)
868
869 systemd_detect_virt_SOURCES = \
870 src/detect-virt.c
871
872 systemd_detect_virt_LDADD = \
873 libsystemd-basic.la
874
875 systemd_getty_generator_SOURCES = \
876 src/getty-generator.c \
877 src/unit-name.c
878
879 systemd_getty_generator_LDADD = \
880 libsystemd-basic.la
881
882 systemd_rc_local_generator_SOURCES = \
883 src/rc-local-generator.c
884
885 systemd_rc_local_generator_LDADD = \
886 libsystemd-basic.la
887
888 systemd_remount_api_vfs_SOURCES = \
889 src/remount-api-vfs.c \
890 src/mount-setup.c \
891 src/exit-status.c
892
893 systemd_remount_api_vfs_LDADD = \
894 libsystemd-basic.la
895
896 systemd_cgroups_agent_SOURCES = \
897 src/cgroups-agent.c \
898 src/dbus-common.c
899
900 systemd_cgroups_agent_CFLAGS = \
901 $(AM_CFLAGS) \
902 $(DBUS_CFLAGS)
903
904 systemd_cgroups_agent_LDADD = \
905 libsystemd-basic.la \
906 $(DBUS_LIBS)
907
908 systemd_kmsg_syslogd_SOURCES = \
909 src/kmsg-syslogd.c \
910 src/fdset.c
911
912 systemd_kmsg_syslogd_LDADD = \
913 libsystemd-basic.la \
914 libsystemd-daemon.la
915
916 systemctl_SOURCES = \
917 src/systemctl.c \
918 src/utmp-wtmp.c \
919 src/dbus-common.c \
920 src/path-lookup.c \
921 src/cgroup-show.c \
922 src/cgroup-util.c \
923 src/exit-status.c \
924 src/unit-name.c \
925 src/pager.c \
926 src/install.c \
927 src/spawn-agent.c \
928 src/logs-show.c
929
930 systemctl_CFLAGS = \
931 $(AM_CFLAGS) \
932 $(DBUS_CFLAGS)
933
934 systemctl_LDADD = \
935 libsystemd-basic.la \
936 libsystemd-daemon.la \
937 libsystemd-journal.la \
938 $(DBUS_LIBS)
939
940 systemd_notify_SOURCES = \
941 src/notify.c \
942 src/readahead/sd-readahead.c
943
944 systemd_notify_LDADD = \
945 libsystemd-basic.la \
946 libsystemd-daemon.la
947
948 systemd_ask_password_SOURCES = \
949 src/ask-password.c \
950 src/ask-password-api.c
951
952 systemd_ask_password_LDADD = \
953 libsystemd-basic.la
954
955 systemd_reply_password_SOURCES = \
956 src/reply-password.c
957
958 systemd_reply_password_LDADD = \
959 libsystemd-basic.la
960
961 systemd_cgls_SOURCES = \
962 src/cgls.c \
963 src/cgroup-show.c \
964 src/cgroup-util.c \
965 src/pager.c
966
967 systemd_cgls_LDADD = \
968 libsystemd-basic.la
969
970 systemd_nspawn_SOURCES = \
971 src/nspawn.c \
972 src/cgroup-util.c \
973 src/loopback-setup.c
974
975 systemd_nspawn_LDADD = \
976 libsystemd-basic.la \
977 libsystemd-daemon.la
978
979 systemd_stdio_bridge_SOURCES = \
980 src/bridge.c
981
982 systemd_stdio_bridge_LDADD = \
983 libsystemd-basic.la
984
985 systemadm_SOURCES = \
986 src/systemadm.vala \
987 src/systemd-interfaces.vala \
988 src/wraplabel.vala
989
990 systemadm_CFLAGS = \
991 $(AM_CFLAGS) \
992 $(GTK_CFLAGS) \
993 -Wno-unused-variable \
994 -Wno-unused-function \
995 -Wno-shadow \
996 -Wno-format-nonliteral
997
998 systemadm_VALAFLAGS = \
999 --pkg=posix \
1000 --pkg=gtk+-2.0 \
1001 --pkg=gee-1.0 \
1002 -g
1003
1004 systemadm_LDADD = \
1005 $(GTK_LIBS)
1006
1007 systemd_gnome_ask_password_agent_SOURCES = \
1008 src/gnome-ask-password-agent.vala
1009
1010 systemd_gnome_ask_password_agent_CFLAGS = \
1011 $(AM_CFLAGS) \
1012 $(LIBNOTIFY_CFLAGS) \
1013 $(GTK_CFLAGS) \
1014 -Wno-unused-variable \
1015 -Wno-unused-function \
1016 -Wno-shadow \
1017 -Wno-format-nonliteral
1018
1019 systemd_gnome_ask_password_agent_VALAFLAGS = \
1020 --pkg=posix \
1021 --pkg=gtk+-2.0 \
1022 --pkg=linux \
1023 --pkg=gio-unix-2.0 \
1024 --pkg=libnotify \
1025 -g
1026
1027 systemd_gnome_ask_password_agent_LDADD = \
1028 $(LIBNOTIFY_LIBS) \
1029 $(GTK_LIBS)
1030
1031 systemd_tty_ask_password_agent_SOURCES = \
1032 src/tty-ask-password-agent.c \
1033 src/ask-password-api.c \
1034 src/utmp-wtmp.c
1035
1036 systemd_tty_ask_password_agent_LDADD = \
1037 libsystemd-basic.la
1038
1039 # ------------------------------------------------------------------------------
1040 libsystemd_daemon_la_SOURCES = \
1041 src/sd-daemon.c
1042
1043 libsystemd_daemon_la_CFLAGS = \
1044 $(AM_CFLAGS) \
1045 -fvisibility=hidden \
1046 -DSD_EXPORT_SYMBOLS
1047
1048 libsystemd_daemon_la_LDFLAGS = \
1049 -shared \
1050 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1051 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1052
1053 pkginclude_HEADERS += \
1054 src/sd-daemon.h
1055
1056 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1057 libsystemd-daemon-install-hook:
1058 if test "$(libdir)" != "$(rootlibdir)"; then \
1059 mkdir -p $(DESTDIR)$(rootlibdir) && \
1060 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1061 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1062 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1063 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1064 fi
1065
1066 INSTALL_EXEC_HOOKS += \
1067 libsystemd-daemon-install-hook
1068
1069 libsystemd-daemon-uninstall-hook:
1070 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1071
1072 UNINSTALL_EXEC_HOOKS += \
1073 libsystemd-daemon-uninstall-hook
1074
1075 lib_LTLIBRARIES += \
1076 libsystemd-daemon.la
1077
1078 pkgconfiglib_DATA += \
1079 libsystemd-daemon.pc
1080
1081 MANPAGES += \
1082 man/sd-daemon.7 \
1083 man/sd_notify.3 \
1084 man/sd_listen_fds.3 \
1085 man/sd_is_fifo.3 \
1086 man/sd_booted.3
1087
1088 MANPAGES_ALIAS += \
1089 man/sd_is_socket.3 \
1090 man/sd_is_socket_unix.3 \
1091 man/sd_is_socket_inet.3 \
1092 man/sd_is_mq.3 \
1093 man/sd_notifyf.3
1094
1095 man/sd_is_socket.3: man/sd_is_fifo.3
1096 man/sd_is_socket_unix.3: man/sd_is_fifo.3
1097 man/sd_is_socket_inet.3: man/sd_is_fifo.3
1098 man/sd_is_mq.3: man/sd_is_fifo.3
1099 man/sd_notifyf.3: man/sd_notify.3
1100
1101 EXTRA_DIST += \
1102 libsystemd-daemon.pc.in \
1103 src/libsystemd-daemon.sym
1104
1105 # ------------------------------------------------------------------------------
1106 libsystemd_id128_la_SOURCES = \
1107 src/sd-id128.c
1108
1109 libsystemd_id128_la_CFLAGS = \
1110 $(AM_CFLAGS) \
1111 -fvisibility=hidden
1112
1113 libsystemd_id128_la_LDFLAGS = \
1114 -shared \
1115 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1116 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1117
1118 libsystemd_id128_la_LIBADD = \
1119 libsystemd-basic.la
1120
1121 test_id128_SOURCES = \
1122 src/test-id128.c \
1123 src/sd-id128.c
1124
1125 test_id128_LDADD = \
1126 libsystemd-basic.la
1127
1128 noinst_PROGRAMS += \
1129 test-id128
1130
1131 pkginclude_HEADERS += \
1132 src/sd-id128.h
1133
1134 lib_LTLIBRARIES += \
1135 libsystemd-id128.la
1136
1137 pkgconfiglib_DATA += \
1138 libsystemd-id128.pc
1139
1140 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1141 libsystemd-id128-install-hook:
1142 if test "$(libdir)" != "$(rootlibdir)"; then \
1143 mkdir -p $(DESTDIR)$(rootlibdir) && \
1144 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1145 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1146 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1147 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1148 fi
1149
1150 INSTALL_EXEC_HOOKS += \
1151 libsystemd-id128-install-hook
1152
1153 libsystemd-id128-uninstall-hook:
1154 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1155
1156 UNINSTALL_EXEC_HOOKS += \
1157 libsystemd-id128-uninstall-hook
1158
1159 EXTRA_DIST += \
1160 libsystemd-id128.pc.in \
1161 src/libsystemd-id128.sym
1162
1163 # ------------------------------------------------------------------------------
1164 systemd_journald_SOURCES = \
1165 src/journal/journald.c \
1166 src/journal/sd-journal.c \
1167 src/journal/journal-file.c \
1168 src/journal/lookup3.c \
1169 src/journal/journal-rate-limit.c \
1170 src/sd-id128.c \
1171 src/acl-util.c \
1172 src/cgroup-util.c
1173
1174 nodist_systemd_journald_SOURCES = \
1175 src/journal/journald-gperf.c
1176
1177 systemd_journald_CFLAGS = \
1178 $(AM_CFLAGS) \
1179 $(ACL_CFLAGS)
1180
1181 systemd_journald_LDADD = \
1182 libsystemd-basic.la \
1183 libsystemd-daemon.la \
1184 libsystemd-login.la \
1185 $(ACL_LIBS)
1186
1187 if HAVE_XZ
1188 systemd_journald_SOURCES += \
1189 src/journal/compress.c
1190 systemd_journald_CFLAGS += \
1191 $(XZ_CFLAGS)
1192 systemd_journald_LDADD += \
1193 $(XZ_LIBS)
1194 endif
1195
1196 systemd_journalctl_SOURCES = \
1197 src/journal/journalctl.c \
1198 src/pager.c \
1199 src/logs-show.c
1200
1201 systemd_journalctl_LDADD = \
1202 libsystemd-basic.la \
1203 libsystemd-journal.la
1204
1205 if HAVE_XZ
1206 systemd_journalctl_SOURCES += \
1207 src/journal/compress.c
1208 systemd_journalctl_CFLAGS = \
1209 $(AM_CFLAGS) \
1210 $(XZ_CFLAGS)
1211 systemd_journalctl_LDADD += \
1212 $(XZ_LIBS)
1213 endif
1214
1215 test_journal_SOURCES = \
1216 src/journal/test-journal.c \
1217 src/journal/sd-journal.c \
1218 src/journal/journal-file.c \
1219 src/journal/lookup3.c \
1220 src/journal/journal-send.c \
1221 src/sd-id128.c
1222
1223 test_journal_LDADD = \
1224 libsystemd-basic.la
1225
1226 if HAVE_XZ
1227 test_journal_SOURCES += \
1228 src/journal/compress.c
1229
1230 test_journal_CFLAGS = \
1231 $(AM_CFLAGS) \
1232 $(XZ_CFLAGS)
1233
1234 test_journal_LDADD += \
1235 $(XZ_LIBS)
1236 endif
1237
1238 libsystemd_journal_la_SOURCES = \
1239 src/journal/sd-journal.c \
1240 src/journal/journal-file.c \
1241 src/journal/lookup3.c \
1242 src/journal/journal-send.c
1243
1244 libsystemd_journal_la_CFLAGS = \
1245 $(AM_CFLAGS) \
1246 -fvisibility=hidden
1247
1248 libsystemd_journal_la_LDFLAGS = \
1249 -shared \
1250 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1251 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1252
1253 libsystemd_journal_la_LIBADD = \
1254 libsystemd-basic.la \
1255 libsystemd-id128.la
1256
1257 if HAVE_XZ
1258 libsystemd_journal_la_SOURCES += \
1259 src/journal/compress.c
1260
1261 libsystemd_journal_la_CFLAGS += \
1262 $(XZ_CFLAGS)
1263
1264 libsystemd_journal_la_LIBADD += \
1265 $(XZ_LIBS)
1266 endif
1267
1268 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1269 libsystemd-journal-install-hook:
1270 if test "$(libdir)" != "$(rootlibdir)"; then \
1271 mkdir -p $(DESTDIR)$(rootlibdir) && \
1272 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1273 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1274 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1275 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1276 fi
1277
1278 INSTALL_EXEC_HOOKS += \
1279 libsystemd-journal-install-hook
1280
1281 libsystemd-journal-uninstall-hook:
1282 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1283
1284 UNINSTALL_EXEC_HOOKS += \
1285 libsystemd-journal-uninstall-hook
1286
1287 noinst_PROGRAMS += \
1288 test-journal
1289
1290 pkginclude_HEADERS += \
1291 src/journal/sd-journal.h
1292
1293 lib_LTLIBRARIES += \
1294 libsystemd-journal.la
1295
1296 rootlibexec_PROGRAMS += \
1297 systemd-journald
1298
1299 rootbin_PROGRAMS += \
1300 systemd-journalctl
1301
1302 dist_systemunit_DATA += \
1303 units/systemd-journald.socket
1304
1305 nodist_systemunit_DATA += \
1306 units/systemd-journald.service
1307
1308 dist_pkgsysconf_DATA += \
1309 src/journal/systemd-journald.conf
1310
1311 pkgconfiglib_DATA += \
1312 src/journal/libsystemd-journal.pc
1313
1314 journal-install-data-hook:
1315 $(MKDIR_P) -m 0755 \
1316 $(DESTDIR)$(systemunitdir)/sockets.target.wants
1317 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1318 rm -f systemd-journald.socket && \
1319 $(LN_S) ../systemd-journald.socket )
1320
1321 INSTALL_DATA_HOOKS += \
1322 journal-install-data-hook
1323
1324 EXTRA_DIST += \
1325 src/journal/journal-def.h \
1326 src/journal/journal-internal.h \
1327 src/journal/journal-file.h \
1328 src/journal/lookup3.h \
1329 src/journal/compress.h \
1330 src/journal/journal-rate-limit.h \
1331 src/journal/libsystemd-journal.pc.in \
1332 src/journal/libsystemd-journal.sym \
1333 units/systemd-journald.service.in \
1334 src/journal/journald-gperf.gperf
1335
1336 CLEANFILES += \
1337 src/journal/journald-gperf.c
1338
1339 # ------------------------------------------------------------------------------
1340 if ENABLE_BINFMT
1341 systemd_binfmt_SOURCES = \
1342 src/binfmt/binfmt.c
1343
1344 systemd_binfmt_LDADD = \
1345 libsystemd-basic.la
1346
1347 rootlibexec_PROGRAMS += \
1348 systemd-binfmt
1349
1350 dist_systemunit_DATA += \
1351 units/proc-sys-fs-binfmt_misc.automount \
1352 units/proc-sys-fs-binfmt_misc.mount
1353
1354 nodist_systemunit_DATA += \
1355 units/systemd-binfmt.service
1356
1357 binfmt-install-data-hook:
1358 $(MKDIR_P) -m 0755 \
1359 $(DESTDIR)$(prefix)/lib/binfmt.d \
1360 $(DESTDIR)$(sysconfdir)/binfmt.d \
1361 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1362 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1363 rm -f systemd-binfmt.service \
1364 proc-sys-fs-binfmt_misc.automount && \
1365 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1366 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1367
1368 INSTALL_DATA_HOOKS += \
1369 binfmt-install-data-hook
1370
1371 MANPAGES += \
1372 man/binfmt.d.5
1373
1374 EXTRA_DIST += \
1375 units/systemd-binfmt.service.in
1376 endif
1377
1378 # ------------------------------------------------------------------------------
1379 if ENABLE_VCONSOLE
1380 systemd_vconsole_setup_SOURCES = \
1381 src/vconsole/vconsole-setup.c
1382
1383 systemd_vconsole_setup_LDADD = \
1384 libsystemd-basic.la
1385
1386 rootlibexec_PROGRAMS += \
1387 systemd-vconsole-setup
1388
1389 nodist_systemunit_DATA += \
1390 units/systemd-vconsole-setup.service
1391
1392 vconsole-install-data-hook:
1393 $(MKDIR_P) -m 0755 \
1394 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1395 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1396 rm -f systemd-vconsole-setup.service && \
1397 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1398
1399 INSTALL_DATA_HOOKS += \
1400 vconsole-install-data-hook
1401
1402 MANPAGES += \
1403 man/vconsole.conf.5
1404
1405 EXTRA_DIST += \
1406 units/systemd-vconsole-setup.service.in
1407 endif
1408
1409 # ------------------------------------------------------------------------------
1410 if ENABLE_READAHEAD
1411 systemd_readahead_collect_SOURCES = \
1412 src/readahead/readahead-collect.c \
1413 src/readahead/readahead-common.c
1414
1415 systemd_readahead_collect_LDADD = \
1416 libsystemd-basic.la \
1417 libsystemd-daemon.la \
1418 $(UDEV_LIBS)
1419
1420 systemd_readahead_collect_CFLAGS = \
1421 $(AM_CFLAGS) \
1422 $(UDEV_CFLAGS)
1423
1424 systemd_readahead_replay_SOURCES = \
1425 src/readahead/readahead-replay.c \
1426 src/readahead/readahead-common.c
1427
1428 systemd_readahead_replay_CFLAGS = \
1429 $(AM_CFLAGS) \
1430 $(UDEV_CFLAGS)
1431
1432 systemd_readahead_replay_LDADD = \
1433 libsystemd-basic.la \
1434 libsystemd-daemon.la \
1435 $(UDEV_LIBS)
1436
1437 rootlibexec_PROGRAMS += \
1438 systemd-readahead-collect \
1439 systemd-readahead-replay
1440
1441 dist_systemunit_DATA += \
1442 units/systemd-readahead-done.timer
1443
1444 nodist_systemunit_DATA += \
1445 units/systemd-readahead-collect.service \
1446 units/systemd-readahead-replay.service \
1447 units/systemd-readahead-done.service
1448
1449 EXTRA_DIST += \
1450 src/readahead/sd-readahead.h \
1451 src/readahead/readahead-common.h \
1452 units/systemd-readahead-collect.service.in \
1453 units/systemd-readahead-replay.service.in \
1454 units/systemd-readahead-done.service.in
1455
1456 MANPAGES += \
1457 man/sd_readahead.3 \
1458 man/sd-readahead.7
1459 endif
1460
1461 # ------------------------------------------------------------------------------
1462 if ENABLE_QUOTACHECK
1463 rootlibexec_PROGRAMS += \
1464 systemd-quotacheck
1465
1466 nodist_systemunit_DATA += \
1467 units/quotacheck.service
1468
1469 EXTRA_DIST += \
1470 units/quotacheck.service.in
1471
1472 systemd_quotacheck_SOURCES = \
1473 src/quotacheck.c
1474
1475 systemd_quotacheck_LDADD = \
1476 libsystemd-basic.la
1477 endif
1478
1479 # ------------------------------------------------------------------------------
1480 if ENABLE_RANDOMSEED
1481 rootlibexec_PROGRAMS += \
1482 systemd-random-seed
1483
1484 nodist_systemunit_DATA += \
1485 units/systemd-random-seed-save.service \
1486 units/systemd-random-seed-load.service
1487
1488 EXTRA_DIST += \
1489 units/systemd-random-seed-save.service.in \
1490 units/systemd-random-seed-load.service.in
1491
1492 systemd_random_seed_SOURCES = \
1493 src/random-seed.c
1494
1495 systemd_random_seed_LDADD = \
1496 libsystemd-basic.la
1497
1498 randomseed-install-data-hook:
1499 $(MKDIR_P) -m 0755 \
1500 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1501 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1502 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1503 rm -f systemd-random-seed-save.service && \
1504 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1505 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1506 rm -f systemd-random-seed-load.service && \
1507 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1508
1509 INSTALL_DATA_HOOKS += \
1510 randomseed-install-data-hook
1511 endif
1512
1513 # ------------------------------------------------------------------------------
1514 if HAVE_LIBCRYPTSETUP
1515 rootlibexec_PROGRAMS += \
1516 systemd-cryptsetup
1517
1518 systemgenerator_PROGRAMS += \
1519 systemd-cryptsetup-generator
1520
1521 dist_systemunit_DATA += \
1522 units/cryptsetup.target
1523
1524 systemd_cryptsetup_SOURCES = \
1525 src/cryptsetup/cryptsetup.c \
1526 src/ask-password-api.c
1527
1528 systemd_cryptsetup_CFLAGS = \
1529 $(AM_CFLAGS) \
1530 $(LIBCRYPTSETUP_CFLAGS) \
1531 $(UDEV_CFLAGS)
1532
1533 systemd_cryptsetup_LDADD = \
1534 $(LIBCRYPTSETUP_LIBS) \
1535 $(UDEV_LIBS) \
1536 libsystemd-basic.la
1537
1538 systemd_cryptsetup_generator_SOURCES = \
1539 src/cryptsetup/cryptsetup-generator.c \
1540 src/unit-name.c
1541
1542 systemd_cryptsetup_generator_LDADD = \
1543 libsystemd-basic.la
1544
1545 cryptsetup-install-data-hook:
1546 $(MKDIR_P) -m 0755 \
1547 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1548 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1549 rm -f cryptsetup.target && \
1550 $(LN_S) ../cryptsetup.target cryptsetup.target )
1551
1552 INSTALL_DATA_HOOKS += \
1553 cryptsetup-install-data-hook
1554 endif
1555
1556 # ------------------------------------------------------------------------------
1557 if ENABLE_HOSTNAMED
1558 systemd_hostnamed_SOURCES = \
1559 src/hostname/hostnamed.c \
1560 src/dbus-common.c \
1561 src/polkit.c
1562
1563 systemd_hostnamed_CFLAGS = \
1564 $(AM_CFLAGS) \
1565 $(DBUS_CFLAGS)
1566
1567 systemd_hostnamed_LDADD = \
1568 libsystemd-basic.la \
1569 libsystemd-daemon.la \
1570 $(DBUS_LIBS)
1571
1572 rootlibexec_PROGRAMS += \
1573 systemd-hostnamed
1574
1575 nodist_systemunit_DATA += \
1576 units/systemd-hostnamed.service
1577
1578 dist_dbuspolicy_DATA += \
1579 src/hostname/org.freedesktop.hostname1.conf
1580
1581 dist_dbussystemservice_DATA += \
1582 src/hostname/org.freedesktop.hostname1.service
1583
1584 polkitpolicy_in_files += \
1585 src/hostname/org.freedesktop.hostname1.policy.in
1586
1587 dbusinterface_DATA += \
1588 org.freedesktop.hostname1.xml
1589
1590 org.freedesktop.hostname1.xml: systemd-hostnamed
1591 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1592 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1593 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1594
1595 hostnamed-install-data-hook:
1596 ( cd $(DESTDIR)$(systemunitdir) && \
1597 rm -f dbus-org.freedesktop.hostname1.service && \
1598 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1599
1600 INSTALL_DATA_HOOKS += \
1601 hostnamed-install-data-hook
1602
1603 EXTRA_DIST += \
1604 units/systemd-hostnamed.service.in
1605 endif
1606
1607 # ------------------------------------------------------------------------------
1608 if ENABLE_LOCALED
1609 systemd_localed_SOURCES = \
1610 src/locale/localed.c \
1611 src/dbus-common.c \
1612 src/polkit.c
1613
1614 systemd_localed_CFLAGS = \
1615 $(AM_CFLAGS) \
1616 $(DBUS_CFLAGS)
1617
1618 systemd_localed_LDADD = \
1619 libsystemd-basic.la \
1620 libsystemd-daemon.la \
1621 $(DBUS_LIBS)
1622
1623 nodist_systemunit_DATA += \
1624 units/systemd-localed.service
1625
1626 rootlibexec_PROGRAMS += \
1627 systemd-localed
1628
1629 dist_dbuspolicy_DATA += \
1630 src/locale/org.freedesktop.locale1.conf
1631
1632 dist_dbussystemservice_DATA += \
1633 src/locale/org.freedesktop.locale1.service
1634
1635 polkitpolicy_in_files += \
1636 src/locale/org.freedesktop.locale1.policy.in
1637
1638 dbusinterface_DATA += \
1639 org.freedesktop.locale1.xml
1640
1641 org.freedesktop.locale1.xml: systemd-localed
1642 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1643 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1644 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1645
1646 localed-install-data-hook:
1647 ( cd $(DESTDIR)$(systemunitdir) && \
1648 rm -f dbus-org.freedesktop.locale1.service && \
1649 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1650
1651 INSTALL_DATA_HOOKS += \
1652 localed-install-data-hook
1653
1654 EXTRA_DIST += \
1655 units/systemd-localed.service.in
1656
1657 dist_pkgdata_DATA = \
1658 src/locale/kbd-model-map
1659
1660 dist_noinst_SCRIPT = \
1661 src/locale/generate-kbd-model-map
1662
1663 update-kbd-model-map:
1664 src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1665
1666 endif
1667
1668 # ------------------------------------------------------------------------------
1669 if ENABLE_TIMEDATED
1670 systemd_timedated_SOURCES = \
1671 src/timedate/timedated.c \
1672 src/dbus-common.c \
1673 src/polkit.c
1674
1675 systemd_timedated_CFLAGS = \
1676 $(AM_CFLAGS) \
1677 $(DBUS_CFLAGS)
1678
1679 systemd_timedated_LDADD = \
1680 libsystemd-basic.la \
1681 libsystemd-daemon.la \
1682 $(DBUS_LIBS)
1683
1684 rootlibexec_PROGRAMS += \
1685 systemd-timedated
1686
1687 dist_dbussystemservice_DATA += \
1688 src/timedate/org.freedesktop.timedate1.service
1689
1690 dist_dbuspolicy_DATA += \
1691 src/timedate/org.freedesktop.timedate1.conf
1692
1693 nodist_systemunit_DATA += \
1694 units/systemd-timedated.service
1695
1696 polkitpolicy_in_files += \
1697 src/timedate/org.freedesktop.timedate1.policy.in
1698
1699 org.freedesktop.timedate1.xml: systemd-timedated
1700 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1701 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1702 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1703
1704 dbusinterface_DATA += \
1705 org.freedesktop.timedate1.xml
1706
1707 timedated-install-data-hook:
1708 ( cd $(DESTDIR)$(systemunitdir) && \
1709 rm -f dbus-org.freedesktop.timedate1.service && \
1710 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1711
1712 INSTALL_DATA_HOOKS += \
1713 timedated-install-data-hook
1714
1715 EXTRA_DIST += \
1716 units/systemd-timedated.service.in
1717 endif
1718
1719 # ------------------------------------------------------------------------------
1720 if ENABLE_LOGIND
1721 systemd_logind_SOURCES = \
1722 src/login/logind.c \
1723 src/login/logind-dbus.c \
1724 src/login/logind-device.c \
1725 src/login/logind-seat.c \
1726 src/login/logind-seat-dbus.c \
1727 src/login/logind-session.c \
1728 src/login/logind-session-dbus.c \
1729 src/login/logind-user.c \
1730 src/login/logind-user-dbus.c \
1731 src/dbus-common.c \
1732 src/dbus-loop.c \
1733 src/cgroup-util.c \
1734 src/polkit.c
1735
1736 nodist_systemd_logind_SOURCES = \
1737 src/login/logind-gperf.c
1738
1739 if HAVE_ACL
1740 systemd_logind_SOURCES += \
1741 src/login/logind-acl.c \
1742 src/acl-util.c
1743 endif
1744
1745 systemd_logind_CFLAGS = \
1746 $(AM_CFLAGS) \
1747 $(DBUS_CFLAGS) \
1748 $(UDEV_CFLAGS) \
1749 $(ACL_CFLAGS)
1750
1751 systemd_logind_LDADD = \
1752 libsystemd-basic.la \
1753 libsystemd-daemon.la \
1754 $(DBUS_LIBS) \
1755 $(UDEV_LIBS) \
1756 $(ACL_LIBS)
1757
1758 systemd_user_sessions_SOURCES = \
1759 src/login/user-sessions.c \
1760 src/cgroup-util.c
1761
1762 systemd_user_sessions_LDADD = \
1763 libsystemd-basic.la
1764
1765 rootlibexec_PROGRAMS += \
1766 systemd-logind \
1767 systemd-user-sessions
1768
1769 systemd_loginctl_SOURCES = \
1770 src/login/loginctl.c \
1771 src/dbus-common.c \
1772 src/cgroup-show.c \
1773 src/cgroup-util.c \
1774 src/pager.c \
1775 src/sysfs-show.c
1776
1777 systemd_loginctl_CFLAGS = \
1778 $(AM_CFLAGS) \
1779 $(DBUS_CFLAGS) \
1780 $(UDEV_CFLAGS)
1781
1782 systemd_loginctl_LDADD = \
1783 libsystemd-basic.la \
1784 $(DBUS_LIBS) \
1785 $(UDEV_LIBS)
1786
1787 rootbin_PROGRAMS += \
1788 systemd-loginctl
1789
1790 test_login_SOURCES = \
1791 src/login/test-login.c
1792
1793 test_login_LDADD = \
1794 libsystemd-basic.la \
1795 libsystemd-login.la
1796
1797 noinst_PROGRAMS += \
1798 test-login
1799
1800 libsystemd_login_la_SOURCES = \
1801 src/login/sd-login.c \
1802 src/cgroup-util.c
1803
1804 libsystemd_login_la_CFLAGS = \
1805 $(AM_CFLAGS) \
1806 -fvisibility=hidden
1807
1808 libsystemd_login_la_LDFLAGS = \
1809 -shared \
1810 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1811 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1812
1813 libsystemd_login_la_LIBADD = \
1814 libsystemd-basic.la
1815
1816 if HAVE_PAM
1817 pam_systemd_la_SOURCES = \
1818 src/login/pam-module.c \
1819 src/dbus-common.c
1820
1821 pam_systemd_la_CFLAGS = \
1822 $(AM_CFLAGS) \
1823 $(PAM_CFLAGS) \
1824 $(DBUS_CFLAGS) \
1825 -fvisibility=hidden
1826
1827 pam_systemd_la_LDFLAGS = \
1828 -module \
1829 -export-dynamic \
1830 -avoid-version \
1831 -shared \
1832 -export-symbols-regex '^pam_sm_.*'
1833
1834 pam_systemd_la_LIBADD = \
1835 libsystemd-basic.la \
1836 libsystemd-daemon.la \
1837 $(PAM_LIBS) \
1838 $(DBUS_LIBS)
1839
1840 pamlib_LTLIBRARIES = \
1841 pam_systemd.la
1842 endif
1843
1844 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1845 libsystemd-login-install-hook:
1846 if test "$(libdir)" != "$(rootlibdir)"; then \
1847 mkdir -p $(DESTDIR)$(rootlibdir) && \
1848 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1849 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1850 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1851 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1852 fi
1853
1854 INSTALL_EXEC_HOOKS += \
1855 libsystemd-login-install-hook
1856
1857 libsystemd-login-uninstall-hook:
1858 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1859
1860 UNINSTALL_EXEC_HOOKS += \
1861 libsystemd-login-uninstall-hook
1862
1863 nodist_systemunit_DATA += \
1864 units/systemd-logind.service \
1865 units/systemd-user-sessions.service
1866
1867 dist_dbussystemservice_DATA += \
1868 src/login/org.freedesktop.login1.service
1869
1870 dist_dbuspolicy_DATA += \
1871 src/login/org.freedesktop.login1.conf
1872
1873 dist_pkgsysconf_DATA += \
1874 src/login/systemd-logind.conf
1875
1876 pkginclude_HEADERS += \
1877 src/login/sd-login.h
1878
1879 lib_LTLIBRARIES += \
1880 libsystemd-login.la
1881
1882 pkgconfiglib_DATA += \
1883 src/login/libsystemd-login.pc
1884
1885 polkitpolicy_in_files += \
1886 src/login/org.freedesktop.login1.policy.in
1887
1888 logind-install-data-hook:
1889 $(MKDIR_P) -m 0755 \
1890 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1891 ( cd $(DESTDIR)$(systemunitdir) && \
1892 rm -f dbus-org.freedesktop.login1.service && \
1893 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1894 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1895 rm -f systemd-logind.service systemd-user-sessions.service && \
1896 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1897 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1898
1899 INSTALL_DATA_HOOKS += \
1900 logind-install-data-hook
1901
1902 systemd_uaccess_SOURCES = \
1903 src/login/uaccess.c
1904
1905 if HAVE_ACL
1906 systemd_uaccess_SOURCES += \
1907 src/login/logind-acl.c \
1908 src/acl-util.c
1909 endif
1910
1911 systemd_uaccess_CFLAGS = \
1912 $(AM_CFLAGS) \
1913 $(UDEV_CFLAGS) \
1914 $(ACL_CFLAGS)
1915
1916 systemd_uaccess_LDADD = \
1917 libsystemd-basic.la \
1918 libsystemd-daemon.la \
1919 libsystemd-login.la \
1920 $(UDEV_LIBS) \
1921 $(ACL_LIBS)
1922
1923 rootlibexec_PROGRAMS += \
1924 systemd-uaccess
1925
1926 dist_udevrules_DATA += \
1927 src/70-uaccess.rules
1928
1929 MANPAGES += \
1930 man/systemd-logind.conf.5 \
1931 man/sd-login.7 \
1932 man/systemd-loginctl.1 \
1933 man/sd_login_monitor_new.3 \
1934 man/sd_pid_get_session.3 \
1935 man/sd_uid_get_state.3 \
1936 man/sd_session_is_active.3 \
1937 man/sd_seat_get_active.3 \
1938 man/sd_get_seats.3
1939
1940 MANPAGES_ALIAS += \
1941 man/sd_login_monitor_unref.3 \
1942 man/sd_login_monitor_flush.3 \
1943 man/sd_login_monitor_get_fd.3 \
1944 man/sd_session_get_uid.3 \
1945 man/sd_session_get_seat.3 \
1946 man/sd_pid_get_owner_uid.3 \
1947 man/sd_pid_get_unit.3 \
1948 man/sd_uid_is_on_seat.3 \
1949 man/sd_uid_get_sessions.3 \
1950 man/sd_uid_get_seats.3 \
1951 man/sd_seat_get_sessions.3 \
1952 man/sd_seat_can_multi_session.3 \
1953 man/sd_get_sessions.3 \
1954 man/sd_get_uids.3
1955
1956 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
1957 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
1958 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
1959 man/sd_session_get_uid.3: man/sd_session_is_active.3
1960 man/sd_session_get_seat.3: man/sd_session_is_active.3
1961 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
1962 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
1963 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
1964 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
1965 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
1966 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
1967 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
1968 man/sd_get_sessions.3: man/sd_get_seats.3
1969 man/sd_get_uids.3: man/sd_get_seats.3
1970
1971 EXTRA_DIST += \
1972 src/login/logind-gperf.gperf \
1973 units/systemd-logind.service.in \
1974 units/systemd-user-sessions.service.in \
1975 src/login/libsystemd-login.pc.in \
1976 src/login/libsystemd-login.sym \
1977 src/login/logind.h \
1978 src/login/logind-device.h \
1979 src/login/logind-seat.h \
1980 src/login/logind-session.h \
1981 src/login/logind-user.h \
1982 src/login/logind-acl.h
1983
1984 CLEANFILES += \
1985 src/login/logind-gperf.c
1986 endif
1987 # ------------------------------------------------------------------------------
1988
1989 SED_PROCESS = \
1990 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1991 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1992 -e 's,@rootbindir\@,$(rootbindir),g' \
1993 -e 's,@bindir\@,$(bindir),g' \
1994 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1995 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1996 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1997 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1998 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1999 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2000 -e 's,@userunitdir\@,$(userunitdir),g' \
2001 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2002 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2003 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2004 -e 's,@prefix\@,$(prefix),g' \
2005 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2006 -e 's,@libdir\@,$(libdir),g' \
2007 -e 's,@includedir\@,$(includedir),g' \
2008 < $< > $@ || rm $@
2009
2010 units/%: units/%.in Makefile
2011 $(SED_PROCESS)
2012
2013 man/%: man/%.in Makefile
2014 $(SED_PROCESS)
2015
2016 %.pc: %.pc.in Makefile
2017 $(SED_PROCESS)
2018
2019 src/%.policy.in: src/%.policy.in.in Makefile
2020 $(SED_PROCESS)
2021
2022 src/%.rules: src/%.rules.in Makefile
2023 $(SED_PROCESS)
2024
2025 src/%.c: src/%.gperf
2026 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2027 $(GPERF) < $< > $@
2028
2029 src/%: src/%.m4
2030 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2031 $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2032
2033 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2035 $(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ || rm $@
2036
2037 M4_PROCESS_SYSTEM = \
2038 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2039 $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2040
2041 M4_PROCESS_USER = \
2042 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2043 $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2044
2045 units/%: units/%.m4 Makefile
2046 $(M4_PROCESS_SYSTEM)
2047
2048 units/user/%: units/%.m4 Makefile
2049 $(M4_PROCESS_USER)
2050
2051 CLEANFILES += \
2052 $(nodist_systemunit_DATA) \
2053 $(nodist_userunit_DATA) \
2054 $(nodist_man_MANS) \
2055 ${XML_IN_FILES:.xml.in=.html} \
2056 $(pkgconfigdata_DATA) \
2057 $(pkgconfiglib_DATA) \
2058 $(nodist_polkitpolicy_DATA) \
2059 src/73-seat-late.rules \
2060 src/99-systemd.rules \
2061 src/load-fragment-gperf.gperf \
2062 src/load-fragment-gperf.c \
2063 src/load-fragment-gperf-nulstr.c
2064
2065 if HAVE_VALAC
2066 CLEANFILES += \
2067 ${systemadm_SOURCES:.vala=.c}
2068 endif
2069
2070 if HAVE_XSLTPROC
2071 XSLTPROC_FLAGS = \
2072 --nonet \
2073 --stringparam funcsynopsis.style ansi
2074
2075 XSLTPROC_PROCESS_MAN = \
2076 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2077 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2078
2079 XSLTPROC_PROCESS_MAN_IN = \
2080 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2081 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
2082 mv ${@:.in=} $@
2083
2084 XSLTPROC_PROCESS_HTML = \
2085 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2086 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2087
2088 XSLTPROC_PROCESS_HTML_IN = \
2089 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2090 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< && \
2091 mv ${@:.in=} $@
2092
2093 man/%.1: man/%.xml
2094 $(XSLTPROC_PROCESS_MAN)
2095
2096 man/%.1.in: man/%.xml.in
2097 $(XSLTPROC_PROCESS_MAN)
2098
2099 man/%.3: man/%.xml
2100 $(XSLTPROC_PROCESS_MAN)
2101
2102 man/%.3.in: man/%.xml.in
2103 $(XSLTPROC_PROCESS_MAN)
2104
2105 man/%.5: man/%.xml
2106 $(XSLTPROC_PROCESS_MAN)
2107
2108 man/%.5.in: man/%.xml.in
2109 $(XSLTPROC_PROCESS_MAN)
2110
2111 man/%.7: man/%.xml
2112 $(XSLTPROC_PROCESS_MAN)
2113
2114 man/%.7.in: man/%.xml.in
2115 $(XSLTPROC_PROCESS_MAN_IN)
2116
2117 man/%.8: man/%.xml
2118 $(XSLTPROC_PROCESS_MAN)
2119
2120 man/%.8.in: man/%.xml.in
2121 $(XSLTPROC_PROCESS_MAN_IN)
2122
2123 man/%.html: man/%.xml
2124 $(XSLTPROC_PROCESS_HTML)
2125
2126 man/%.html.in: man/%.xml.in
2127 $(XSLTPROC_PROCESS_HTML_IN)
2128
2129 CLEANFILES += \
2130 $(dist_man_MANS) \
2131 ${nodist_man_MANS:=.in} \
2132 ${XML_FILES:.xml=.html} \
2133 ${XML_IN_FILES:.xml.in=.html.in}
2134 endif
2135
2136 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2137
2138 org.freedesktop.systemd1.%.xml: systemd
2139 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2140 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2141 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2142
2143 CLEANFILES += \
2144 $(dbusinterface_DATA)
2145
2146 systemd-install-data-hook:
2147 $(MKDIR_P) -m 0755 \
2148 $(DESTDIR)$(tmpfilesdir) \
2149 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2150 $(DESTDIR)$(prefix)/lib/modules-load.d \
2151 $(DESTDIR)$(sysconfdir)/modules-load.d \
2152 $(DESTDIR)$(prefix)/lib/sysctl.d \
2153 $(DESTDIR)$(sysconfdir)/sysctl.d \
2154 $(DESTDIR)$(systemshutdowndir) \
2155 $(DESTDIR)$(systemgeneratordir) \
2156 $(DESTDIR)$(usergeneratordir)
2157 $(MKDIR_P) -m 0755 \
2158 $(DESTDIR)$(systemunitdir) \
2159 $(DESTDIR)$(userunitdir) \
2160 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2161 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2162 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2163 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2164 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2165 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2166 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2167 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2168 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2169 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2170 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2171 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2172 $(DESTDIR)$(pkgsysconfdir)/system \
2173 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2174 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2175 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2176 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2177 $(DESTDIR)$(pkgsysconfdir)/user \
2178 $(DESTDIR)$(dbussessionservicedir) \
2179 $(DESTDIR)$(sysconfdir)/xdg/systemd
2180 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2181 rm -f user && \
2182 $(LN_S) $(pkgsysconfdir)/user user )
2183 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2184 rm -f systemd-initctl.socket systemd-stdout-syslog-bridge.socket systemd-shutdownd.socket syslog.socket && \
2185 $(LN_S) ../systemd-stdout-syslog-bridge.socket systemd-stdout-syslog-bridge.socket && \
2186 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2187 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
2188 $(LN_S) ../syslog.socket syslog.socket )
2189 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2190 rm -f systemd-update-utmp-runlevel.service && \
2191 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2192 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2193 rm -f systemd-update-utmp-runlevel.service && \
2194 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2195 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2196 rm -f systemd-update-utmp-runlevel.service && \
2197 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2198 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2199 rm -f systemd-update-utmp-runlevel.service && \
2200 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2201 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2202 rm -f systemd-update-utmp-runlevel.service && \
2203 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2204 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2205 rm -f systemd-update-utmp-shutdown.service && \
2206 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2207 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2208 rm -f systemd-remount-api-vfs.service \
2209 fsck-root.service \
2210 remount-rootfs.service \
2211 var-run.mount \
2212 media.mount && \
2213 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2214 $(LN_S) ../fsck-root.service fsck-root.service && \
2215 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2216 $(LN_S) ../var-run.mount var-run.mount && \
2217 $(LN_S) ../media.mount media.mount )
2218 ( cd $(DESTDIR)$(userunitdir) && \
2219 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2220 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2221 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2222 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2223 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2224 $(LN_S) $(systemunitdir)/sound.target sound.target )
2225 ( cd $(DESTDIR)$(systemunitdir) && \
2226 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2227 $(LN_S) poweroff.target runlevel0.target && \
2228 $(LN_S) rescue.target runlevel1.target && \
2229 $(LN_S) multi-user.target runlevel2.target && \
2230 $(LN_S) multi-user.target runlevel3.target && \
2231 $(LN_S) multi-user.target runlevel4.target && \
2232 $(LN_S) graphical.target runlevel5.target && \
2233 $(LN_S) reboot.target runlevel6.target )
2234 ( cd $(DESTDIR)$(systemunitdir) && \
2235 rm -f default.target ctrl-alt-del.target autovt@.service && \
2236 $(LN_S) graphical.target default.target && \
2237 $(LN_S) reboot.target ctrl-alt-del.target && \
2238 $(LN_S) getty@.service autovt@.service )
2239 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2240 rm -f getty.target systemd-ask-password-wall.path && \
2241 $(LN_S) ../getty.target getty.target && \
2242 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2243 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2244 rm -f getty@tty1.service && \
2245 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2246 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2247 rm -f remote-fs.target && \
2248 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2249 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2250 rm -f dev-hugepages.mount \
2251 dev-mqueue.mount \
2252 sys-kernel-config.mount \
2253 sys-kernel-debug.mount \
2254 sys-kernel-security.mount \
2255 sys-fs-fuse-connections.mount \
2256 systemd-modules-load.service \
2257 systemd-tmpfiles-setup.service \
2258 systemd-sysctl.service \
2259 systemd-ask-password-console.path \
2260 systemd-kmsg-syslogd.service && \
2261 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2262 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2263 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2264 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2265 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2266 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2267 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2268 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2269 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2270 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
2271 $(LN_S) ../systemd-kmsg-syslogd.service )
2272 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2273 rm -f systemd-tmpfiles-clean.timer && \
2274 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2275 ( cd $(DESTDIR)$(dbussessionservicedir) && \
2276 rm -f org.freedesktop.systemd1.service && \
2277 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2278 if HAVE_PLYMOUTH
2279 $(MKDIR_P) -m 0755 \
2280 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2281 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2282 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2283 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2284 $(DESTDIR)$(systemunitdir)/halt.target.wants
2285 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2286 rm -f plymouth-start.service plymouth-read-write.service && \
2287 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2288 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2289 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2290 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2291 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2292 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2293 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2294 rm -f plymouth-reboot.service && \
2295 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2296 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2297 rm -f plymouth-kexec.service && \
2298 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2299 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2300 rm -f plymouth-poweroff.service && \
2301 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2302 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2303 rm -f plymouth-halt.service && \
2304 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2305 endif
2306 if TARGET_MEEGO
2307 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2308 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2309 rm -f network.target && \
2310 $(LN_S) $(systemunitdir)/network.target network.target )
2311 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2312 rm -f * )
2313 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2314 rm -f * )
2315 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2316 rm -f * )
2317 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2318 rm -f * )
2319 endif
2320
2321 if TARGET_FEDORA
2322 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2323 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2324 rm -f halt-local.service && \
2325 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2326 ( cd $(DESTDIR)$(systemunitdir) && \
2327 rm -f display-manager.service single.service && \
2328 $(LN_S) prefdm.service display-manager.service && \
2329 $(LN_S) rescue.service single.service )
2330 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2331 rm -f display-manager.service && \
2332 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2333 endif
2334
2335 if TARGET_MANDRIVA
2336 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2337 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2338 rm -f halt-local.service && \
2339 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2340 ( cd $(DESTDIR)$(systemunitdir) && \
2341 rm -f display-manager.service dm.service single.service && \
2342 $(LN_S) prefdm.service display-manager.service && \
2343 $(LN_S) prefdm.service dm.service && \
2344 $(LN_S) rescue.service single.service )
2345 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2346 rm -f display-manager.service && \
2347 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2348 endif
2349
2350 if TARGET_DEBIAN_OR_UBUNTU
2351 ( cd $(DESTDIR)$(systemunitdir) && \
2352 rm -f runlevel5.target && \
2353 $(LN_S) multi-user.target runlevel5.target )
2354 endif
2355
2356 if TARGET_SUSE
2357 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2358 ( cd $(DESTDIR)$(systemunitdir) && \
2359 rm -f local.service && \
2360 $(LN_S) rc-local.service local.service )
2361 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2362 rm -f halt-local.service && \
2363 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2364 endif
2365
2366 if TARGET_MAGEIA
2367 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2368 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2369 rm -f halt-local.service && \
2370 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2371 ( cd $(DESTDIR)$(systemunitdir) && \
2372 rm -f display-manager.service && \
2373 $(LN_S) prefdm.service display-manager.service && \
2374 $(LN_S) prefdm.service dm.service )
2375 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2376 rm -f display-manager.service && \
2377 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2378 endif
2379
2380 if HAVE_SYSV_COMPAT
2381 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2382 rm -f var-lock.mount && \
2383 $(LN_S) ../var-lock.mount var-lock.mount )
2384 endif
2385
2386 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2387
2388 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2389
2390 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2391
2392 DISTCHECK_CONFIGURE_FLAGS = \
2393 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2394 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2395 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2396 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2397 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2398 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2399 --with-rootdir=$$dc_install_base/$(rootdir)
2400
2401 upload: all distcheck
2402 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
2403 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
2404 scp man/*.html tango:public/systemd-man/
2405
2406 git-tag:
2407 git tag "v$(VERSION)" -m "systemd $(VERSION)"