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