]>
Commit | Line | Data |
---|---|---|
47be870b LP |
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 | ||
8c4a3079 | 20 | # Dirs of external packages |
d122948d LP |
21 | dbuspolicydir=@dbuspolicydir@ |
22 | dbussessionservicedir=@dbussessionservicedir@ | |
23 | dbussystemservicedir=@dbussystemservicedir@ | |
24 | dbusinterfacedir=@dbusinterfacedir@ | |
d1ab0ca0 | 25 | udevrulesdir=@udevrulesdir@ |
8c6db833 LP |
26 | pamlibdir=@pamlibdir@ |
27 | pkgconfigdatadir=$(datadir)/pkgconfig | |
490aed58 | 28 | polkitpolicydir=$(datadir)/polkit-1/actions |
036643a2 | 29 | |
8c4a3079 | 30 | # Our own, non-special dirs |
d1ab0ca0 | 31 | pkgsysconfdir=$(sysconfdir)/systemd |
d1ab0ca0 | 32 | sessionunitdir=$(pkgdatadir)/session |
8c4a3079 LP |
33 | |
34 | # And these are the special ones for / | |
35 | rootdir=@rootdir@ | |
8c4a3079 LP |
36 | rootbindir=$(rootdir)/bin |
37 | rootlibexecdir=$(rootdir)/lib/systemd | |
38 | systemunitdir=$(rootdir)/lib/systemd/system | |
70fcff31 | 39 | |
47be870b | 40 | AM_CPPFLAGS = \ |
d3f09cf3 | 41 | -include $(top_builddir)/config.h \ |
487393e9 | 42 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ |
036643a2 | 43 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 44 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 45 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 46 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
487393e9 | 47 | -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \ |
036643a2 | 48 | -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \ |
70fcff31 | 49 | -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \ |
8c4a3079 | 50 | -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
f401faf5 | 51 | -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ |
2cb1a60d | 52 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
8c6db833 | 53 | -DRUNTIME_DIR=\"$(localstatedir)/run\" \ |
ca2cab5d | 54 | -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ |
e99e38bb | 55 | -I $(top_srcdir)/src |
47be870b | 56 | |
9841e8e3 GSB |
57 | if TARGET_GENTOO |
58 | AM_CPPFLAGS += \ | |
59 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
60 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
61 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
62 | else | |
63 | AM_CPPFLAGS += \ | |
64 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
65 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
66 | -DDEFAULT_FONT=\"latarcyrheb-sun16\" | |
67 | endif | |
68 | ||
8c4a3079 | 69 | rootbin_PROGRAMS = \ |
134dc482 | 70 | systemd \ |
4a2a8b5a | 71 | systemctl \ |
490aed58 LP |
72 | systemd-notify \ |
73 | systemd-ask-password | |
a9b5b032 | 74 | |
8c4a3079 | 75 | bin_PROGRAMS = \ |
fa776d8e | 76 | systemd-cgls |
10e87ee7 LP |
77 | |
78 | if HAVE_GTK | |
79 | bin_PROGRAMS += \ | |
490aed58 LP |
80 | systemadm \ |
81 | systemd-ask-password-agent | |
a9b5b032 | 82 | endif |
8e274523 | 83 | |
8c4a3079 | 84 | rootlibexec_PROGRAMS = \ |
8e274523 | 85 | systemd-logger \ |
0b7964b8 | 86 | systemd-cgroups-agent \ |
4927fcae | 87 | systemd-initctl \ |
ca2cab5d | 88 | systemd-update-utmp \ |
f6144808 | 89 | systemd-random-seed \ |
5192bd19 | 90 | systemd-shutdownd \ |
449ddb2d | 91 | systemd-modules-load \ |
addab137 | 92 | systemd-remount-api-vfs \ |
97c4a07d | 93 | systemd-kmsg-syslogd \ |
490aed58 LP |
94 | systemd-vconsole-setup \ |
95 | systemd-reply-password | |
47be870b LP |
96 | |
97 | noinst_PROGRAMS = \ | |
98 | test-engine \ | |
15ae422b | 99 | test-job-type \ |
af5bc85d | 100 | test-ns \ |
8c47c732 | 101 | test-loopback \ |
e5907703 | 102 | test-hostname \ |
8c6db833 | 103 | test-daemon \ |
c24eb49e LP |
104 | test-cgroup \ |
105 | test-env-replace | |
8c6db833 LP |
106 | |
107 | if HAVE_PAM | |
108 | pamlib_LTLIBRARIES = \ | |
109 | pam_systemd.la | |
110 | endif | |
47be870b | 111 | |
487393e9 LP |
112 | dist_pkgsysconf_DATA = \ |
113 | src/system.conf | |
114 | ||
d1ab0ca0 | 115 | dist_dbuspolicy_DATA = \ |
dfac97b2 | 116 | src/org.freedesktop.systemd1.conf |
e24067c3 | 117 | |
d122948d LP |
118 | dist_dbussystemservice_DATA = \ |
119 | src/org.freedesktop.systemd1.service | |
120 | ||
d1ab0ca0 | 121 | dist_udevrules_DATA = \ |
dfac97b2 | 122 | src/99-systemd.rules |
5cc5d790 | 123 | |
d122948d | 124 | dbusinterface_DATA = \ |
4288f619 LP |
125 | org.freedesktop.systemd1.Manager.xml \ |
126 | org.freedesktop.systemd1.Job.xml \ | |
127 | org.freedesktop.systemd1.Unit.xml \ | |
128 | org.freedesktop.systemd1.Service.xml \ | |
129 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 130 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
131 | org.freedesktop.systemd1.Target.xml \ |
132 | org.freedesktop.systemd1.Device.xml \ | |
133 | org.freedesktop.systemd1.Mount.xml \ | |
134 | org.freedesktop.systemd1.Automount.xml \ | |
135 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 LP |
136 | org.freedesktop.systemd1.Swap.xml \ |
137 | org.freedesktop.systemd1.Path.xml | |
4288f619 | 138 | |
d1ab0ca0 | 139 | dist_systemunit_DATA = \ |
70fcff31 | 140 | units/emergency.service \ |
f057408c | 141 | units/emergency.target \ |
f92a18f5 | 142 | units/basic.target \ |
5e6afdd3 LP |
143 | units/getty.target \ |
144 | units/halt.target \ | |
70449379 LP |
145 | units/local-fs.target \ |
146 | units/network.target \ | |
147 | units/nss-lookup.target \ | |
683f468c | 148 | units/mail-transfer-agent.target \ |
a2ff477f | 149 | units/http-daemon.target \ |
5e6afdd3 LP |
150 | units/poweroff.target \ |
151 | units/reboot.target \ | |
5e6afdd3 | 152 | units/rescue.target \ |
f0b02ca2 | 153 | units/rpcbind.target \ |
70449379 LP |
154 | units/rtc-set.target \ |
155 | units/shutdown.target \ | |
4e67ddd6 | 156 | units/umount.target \ |
70449379 LP |
157 | units/sigpwr.target \ |
158 | units/sockets.target \ | |
159 | units/swap.target \ | |
83bda358 | 160 | units/dbus.target \ |
70fcff31 | 161 | units/systemd-initctl.socket \ |
670802d4 | 162 | units/systemd-logger.socket \ |
f6144808 | 163 | units/systemd-shutdownd.socket \ |
addab137 | 164 | units/systemd-kmsg-syslogd.socket \ |
670802d4 LP |
165 | units/dev-hugepages.automount \ |
166 | units/dev-hugepages.mount \ | |
167 | units/dev-mqueue.automount \ | |
168 | units/dev-mqueue.mount \ | |
169 | units/proc-sys-fs-binfmt_misc.automount \ | |
170 | units/proc-sys-fs-binfmt_misc.mount \ | |
171 | units/sys-kernel-debug.automount \ | |
172 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
173 | units/sys-kernel-security.automount \ |
174 | units/sys-kernel-security.mount \ | |
b54dd8b7 | 175 | units/tmp.mount \ |
6d526de2 | 176 | units/var-lock.mount \ |
3c268bdf | 177 | units/var-lock.service \ |
da78e1b4 | 178 | units/var-run.mount \ |
3c268bdf | 179 | units/var-run.service \ |
5481ab2b | 180 | units/hwclock-load.service \ |
f556ea46 LP |
181 | units/hwclock-save.service \ |
182 | units/sysctl.service \ | |
90685f7d | 183 | units/remount-rootfs.service \ |
da78e1b4 | 184 | units/printer.target \ |
ceda54d9 | 185 | units/bluetooth.target \ |
b15124f1 KS |
186 | units/smartcard.target \ |
187 | units/tmpwatch.service \ | |
188 | units/tmpwatch.timer | |
70fcff31 | 189 | |
6f6083dc | 190 | nodist_systemunit_DATA = \ |
f92a18f5 | 191 | units/sysinit.target \ |
5e6afdd3 | 192 | units/getty@.service \ |
93a45c56 | 193 | units/serial-getty@.service \ |
5e6afdd3 | 194 | units/graphical.target \ |
6f6083dc | 195 | units/remote-fs.target \ |
5e6afdd3 | 196 | units/multi-user.target \ |
dfac97b2 | 197 | units/systemd-initctl.service \ |
a7b6f8e5 | 198 | units/systemd-logger.service \ |
f6144808 | 199 | units/systemd-shutdownd.service \ |
addab137 | 200 | units/systemd-kmsg-syslogd.service \ |
b2423f1f | 201 | units/systemd-modules-load.service \ |
97c4a07d | 202 | units/systemd-vconsole-setup.service \ |
449ddb2d | 203 | units/systemd-remount-api-vfs.service \ |
cd6d0a45 LP |
204 | units/systemd-update-utmp-runlevel.service \ |
205 | units/systemd-update-utmp-shutdown.service \ | |
ca2cab5d LP |
206 | units/systemd-random-seed-save.service \ |
207 | units/systemd-random-seed-load.service \ | |
83bda358 | 208 | units/syslog.target |
d1ab0ca0 | 209 | |
0d26c910 LP |
210 | dist_sessionunit_DATA = \ |
211 | units/session/default.target | |
212 | ||
6f6083dc | 213 | nodist_sessionunit_DATA = \ |
a1b256b0 LP |
214 | units/session/remote-fs.target \ |
215 | units/session/exit.service | |
fb1bd35a | 216 | |
e24067c3 | 217 | EXTRA_DIST = \ |
f92a18f5 | 218 | units/sysinit.target.m4 \ |
5e6afdd3 | 219 | units/getty@.service.m4 \ |
93a45c56 | 220 | units/serial-getty@.service.m4 \ |
5e6afdd3 LP |
221 | units/graphical.target.m4 \ |
222 | units/multi-user.target.m4 \ | |
705dbf3a | 223 | units/remote-fs.target.m4 \ |
70fcff31 | 224 | units/systemd-initctl.service.in \ |
70fcff31 | 225 | units/systemd-logger.service.in \ |
f6144808 | 226 | units/systemd-shutdownd.service.in \ |
addab137 | 227 | units/systemd-kmsg-syslogd.service.in \ |
b2423f1f | 228 | units/systemd-modules-load.service.in \ |
97c4a07d | 229 | units/systemd-vconsole-setup.service.in \ |
449ddb2d | 230 | units/systemd-remount-api-vfs.service.in \ |
cd6d0a45 LP |
231 | units/systemd-update-utmp-runlevel.service.in \ |
232 | units/systemd-update-utmp-shutdown.service.in \ | |
ca2cab5d LP |
233 | units/systemd-random-seed-save.service.in \ |
234 | units/systemd-random-seed-load.service.in \ | |
a7b6f8e5 | 235 | units/syslog.target.in \ |
a1b256b0 | 236 | units/session/exit.service.in \ |
64ca679e | 237 | systemd.pc.in |
e24067c3 | 238 | |
5e6afdd3 LP |
239 | if TARGET_FEDORA |
240 | dist_systemunit_DATA += \ | |
241 | units/fedora/halt.service \ | |
242 | units/fedora/killall.service \ | |
243 | units/fedora/poweroff.service \ | |
244 | units/fedora/prefdm.service \ | |
245 | units/fedora/rc-local.service \ | |
246 | units/fedora/reboot.service \ | |
f057408c | 247 | units/fedora/sysinit.service \ |
1310609b LP |
248 | units/fedora/single.service \ |
249 | units/fedora/plymouth-quit.service \ | |
0278dfeb LP |
250 | units/fedora/plymouth-reboot.service \ |
251 | units/fedora/plymouth-poweroff.service \ | |
252 | units/fedora/plymouth-halt.service | |
5e6afdd3 LP |
253 | endif |
254 | ||
ad206afc MB |
255 | if TARGET_DEBIAN |
256 | dist_systemunit_DATA += \ | |
257 | units/debian/halt.service \ | |
258 | units/debian/killall.service \ | |
259 | units/debian/poweroff.service \ | |
f10814d9 | 260 | units/debian/reboot.service \ |
a5dc0a45 MB |
261 | units/debian/fsck.target \ |
262 | units/debian/umountfs.service \ | |
263 | units/debian/umountnfs.service \ | |
264 | units/debian/umountroot.service | |
ad206afc MB |
265 | endif |
266 | ||
65b0095b KS |
267 | if TARGET_SUSE |
268 | dist_systemunit_DATA += \ | |
269 | units/suse/halt.service \ | |
270 | units/suse/poweroff.service \ | |
922cc001 LP |
271 | units/suse/reboot.service \ |
272 | units/suse/fsck.target | |
65b0095b KS |
273 | endif |
274 | ||
ea2d9ed4 MAP |
275 | if TARGET_GENTOO |
276 | dist_systemunit_DATA += \ | |
277 | units/gentoo/halt.service \ | |
278 | units/gentoo/killall.service \ | |
279 | units/gentoo/poweroff.service \ | |
280 | units/gentoo/reboot.service \ | |
281 | units/gentoo/xdm.service | |
282 | endif | |
283 | ||
1ebdf2d8 TG |
284 | if TARGET_ARCH |
285 | dist_systemunit_DATA += \ | |
286 | units/arch/sysinit.service \ | |
287 | units/arch/rc-local.service \ | |
288 | units/arch/halt.service \ | |
289 | units/arch/poweroff.service \ | |
290 | units/arch/reboot.service | |
291 | endif | |
292 | ||
240a3a85 LP |
293 | dist_doc_DATA = \ |
294 | README \ | |
795750ca LP |
295 | LICENSE \ |
296 | DISTRO_PORTING \ | |
240a3a85 LP |
297 | src/sd-daemon.h \ |
298 | src/sd-daemon.c | |
299 | ||
8c6db833 LP |
300 | pkgconfigdata_DATA = \ |
301 | systemd.pc | |
302 | ||
490aed58 LP |
303 | dist_polkitpolicy_DATA = \ |
304 | src/org.freedesktop.systemd1.policy | |
305 | ||
139be57d LP |
306 | noinst_LTLIBRARIES = \ |
307 | libsystemd-basic.la \ | |
308 | libsystemd-core.la | |
309 | ||
139be57d | 310 | libsystemd_basic_la_SOURCES = \ |
d3f09cf3 | 311 | src/util.c \ |
e51bc1a2 | 312 | src/label.c \ |
d3f09cf3 KS |
313 | src/hashmap.c \ |
314 | src/set.c \ | |
315 | src/strv.c \ | |
316 | src/conf-parser.c \ | |
317 | src/socket-util.c \ | |
318 | src/log.c \ | |
319 | src/ratelimit.c | |
47be870b | 320 | |
4927fcae LP |
321 | libsystemd_basic_la_CFLAGS = \ |
322 | $(AM_CFLAGS) \ | |
323 | $(SELINUX_CFLAGS) | |
324 | ||
325 | libsystemd_basic_la_LIBADD = \ | |
326 | $(SELINUX_LIBS) | |
327 | ||
139be57d | 328 | libsystemd_core_la_SOURCES = \ |
e99e38bb | 329 | src/unit.c \ |
d3f09cf3 KS |
330 | src/job.c \ |
331 | src/manager.c \ | |
84e3543e | 332 | src/path-lookup.c \ |
d3f09cf3 KS |
333 | src/load-fragment.c \ |
334 | src/service.c \ | |
335 | src/automount.c \ | |
336 | src/mount.c \ | |
337 | src/swap.c \ | |
338 | src/device.c \ | |
339 | src/target.c \ | |
340 | src/snapshot.c \ | |
341 | src/socket.c \ | |
342 | src/timer.c \ | |
01f78473 | 343 | src/path.c \ |
d3f09cf3 KS |
344 | src/load-dropin.c \ |
345 | src/execute.c \ | |
d06dacd0 | 346 | src/exit-status.c \ |
d3f09cf3 KS |
347 | src/dbus.c \ |
348 | src/dbus-manager.c \ | |
349 | src/dbus-unit.c \ | |
350 | src/dbus-job.c \ | |
e99e38bb LP |
351 | src/dbus-service.c \ |
352 | src/dbus-socket.c \ | |
871d7de4 | 353 | src/dbus-timer.c \ |
e99e38bb LP |
354 | src/dbus-target.c \ |
355 | src/dbus-mount.c \ | |
356 | src/dbus-automount.c \ | |
357 | src/dbus-swap.c \ | |
358 | src/dbus-snapshot.c \ | |
359 | src/dbus-device.c \ | |
360 | src/dbus-execute.c \ | |
01f78473 | 361 | src/dbus-path.c \ |
e99e38bb LP |
362 | src/cgroup.c \ |
363 | src/mount-setup.c \ | |
364 | src/hostname-setup.c \ | |
365 | src/loopback-setup.c \ | |
11c3a4ee | 366 | src/kmod-setup.c \ |
72bca11b | 367 | src/locale-setup.c \ |
e99e38bb LP |
368 | src/specifier.c \ |
369 | src/unit-name.c \ | |
370 | src/fdset.c \ | |
0213c3f8 | 371 | src/namespace.c \ |
8c6db833 LP |
372 | src/tcpwrap.c \ |
373 | src/cgroup-util.c | |
47be870b | 374 | |
139be57d LP |
375 | libsystemd_core_la_CFLAGS = \ |
376 | $(AM_CFLAGS) \ | |
377 | $(DBUS_CFLAGS) \ | |
4927fcae LP |
378 | $(UDEV_CFLAGS) \ |
379 | $(LIBWRAP_CFLAGS) \ | |
380 | $(PAM_CFLAGS) \ | |
381 | $(AUDIT_CFLAGS) | |
139be57d LP |
382 | |
383 | libsystemd_core_la_LIBADD = \ | |
384 | libsystemd-basic.la \ | |
385 | $(DBUS_LIBS) \ | |
386 | $(UDEV_LIBS) \ | |
139be57d | 387 | $(LIBWRAP_LIBS) \ |
7a58bfa4 | 388 | $(PAM_LIBS) \ |
4927fcae | 389 | $(AUDIT_LIBS) |
139be57d | 390 | |
9a1ac7b9 LP |
391 | # This is needed because automake is buggy in how it generates the |
392 | # rules for C programs, but not Vala programs. We therefore can't | |
393 | # list the .h files as dependencies if we want make dist to work. | |
394 | ||
462b33e9 | 395 | EXTRA_DIST += \ |
139be57d LP |
396 | ${libsystemd_basic_la_SOURCES:.c=.h} \ |
397 | ${libsystemd_core_la_SOURCES:.c=.h} \ | |
e99e38bb LP |
398 | src/macro.h \ |
399 | src/ioprio.h \ | |
400 | src/missing.h \ | |
401 | src/list.h \ | |
402 | src/securebits.h \ | |
403 | src/linux/auto_dev-ioctl.h \ | |
404 | src/initreq.h \ | |
514f4ef5 | 405 | src/sd-daemon.h \ |
9a1ac7b9 | 406 | src/special.h \ |
398ef8ba | 407 | src/dbus-common.h \ |
ab35fb1b | 408 | src/bus-errors.h \ |
cd6d0a45 | 409 | src/cgroup-show.h \ |
302e27c8 | 410 | src/utmp-wtmp.h \ |
f6144808 LP |
411 | src/build.h \ |
412 | src/shutdownd.h | |
6f6083dc LP |
413 | |
414 | MANPAGES = \ | |
160cd5c9 | 415 | man/systemd.1 \ |
6f6083dc LP |
416 | man/systemctl.1 \ |
417 | man/systemadm.1 \ | |
fa776d8e | 418 | man/systemd-cgls.1 \ |
c5abba08 | 419 | man/systemd-notify.1 \ |
f9378423 LP |
420 | man/sd_notify.3 \ |
421 | man/sd_booted.3 \ | |
422 | man/sd_listen_fds.3 \ | |
423 | man/sd_is_fifo.3 \ | |
6f6083dc LP |
424 | man/systemd.unit.5 \ |
425 | man/systemd.service.5 \ | |
1f812fea | 426 | man/systemd.socket.5 \ |
cdb788e4 | 427 | man/systemd.mount.5 \ |
65232ea7 | 428 | man/systemd.automount.5 \ |
e0cabd4b | 429 | man/systemd.swap.5 \ |
11fcc3ab | 430 | man/systemd.timer.5 \ |
b36b082c | 431 | man/systemd.path.5 \ |
da49e9ab | 432 | man/systemd.target.5 \ |
eec575d8 | 433 | man/systemd.device.5 \ |
b2c20dd9 | 434 | man/systemd.snapshot.5 \ |
dd1eb43b | 435 | man/systemd.exec.5 \ |
6f6083dc | 436 | man/daemon.7 \ |
359957ee LP |
437 | man/sd-daemon.7 \ |
438 | man/runlevel.8 \ | |
160cd5c9 LP |
439 | man/telinit.8 \ |
440 | man/halt.8 \ | |
441 | man/shutdown.8 \ | |
f3e219a2 LP |
442 | man/pam_systemd.8 \ |
443 | man/systemd.conf.5 | |
6f6083dc LP |
444 | |
445 | MANPAGES_ALIAS = \ | |
446 | man/reboot.8 \ | |
447 | man/poweroff.8 \ | |
448 | man/sd_is_socket.3 \ | |
449 | man/sd_is_socket_unix.3 \ | |
450 | man/sd_is_socket_inet.3 \ | |
451 | man/sd_notifyf.3 \ | |
452 | man/init.1 | |
453 | ||
454 | man/reboot.8: man/halt.8 | |
455 | man/poweroff.8: man/halt.8 | |
456 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
457 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
458 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
459 | man/sd_notifyf.3: man/sd_notify.3 | |
460 | man/init.1: man/systemd.1 | |
461 | ||
462 | dist_man_MANS = \ | |
463 | $(MANPAGES) \ | |
464 | $(MANPAGES_ALIAS) | |
9f2c5942 LP |
465 | |
466 | nodist_man_MANS = \ | |
9f235308 | 467 | man/systemd.special.7 |
d1ab0ca0 | 468 | |
6f6083dc LP |
469 | XML_FILES = \ |
470 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
471 | ||
472 | XML_IN_FILES = \ | |
473 | ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}} | |
474 | ||
9f2c5942 | 475 | dist_noinst_DATA = \ |
6f6083dc | 476 | ${XML_FILES:.xml=.html} |
d1ab0ca0 | 477 | |
9f2c5942 | 478 | nodist_noinst_DATA = \ |
6f6083dc | 479 | ${XML_IN_FILES:.xml.in=.html} |
d1ab0ca0 LP |
480 | |
481 | EXTRA_DIST += \ | |
6f6083dc LP |
482 | $(XML_FILES) \ |
483 | $(XML_IN_FILES) \ | |
484 | ${nodist_man_MANS:=.in} \ | |
485 | ${XML_IN_FILES:.xml.in=.html.in} | |
d1ab0ca0 | 486 | |
47be870b | 487 | systemd_SOURCES = \ |
e99e38bb | 488 | src/main.c |
47be870b | 489 | |
10e87ee7 LP |
490 | systemd_CFLAGS = \ |
491 | $(AM_CFLAGS) \ | |
47be870b | 492 | $(DBUS_CFLAGS) \ |
35d2e7ec | 493 | $(UDEV_CFLAGS) |
47be870b LP |
494 | |
495 | systemd_LDADD = \ | |
139be57d | 496 | libsystemd-core.la |
47be870b LP |
497 | |
498 | test_engine_SOURCES = \ | |
e99e38bb | 499 | src/test-engine.c |
47be870b | 500 | |
10e87ee7 | 501 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
502 | test_engine_LDADD = $(systemd_LDADD) |
503 | ||
504 | test_job_type_SOURCES = \ | |
e1d680ad | 505 | src/test-job-type.c |
47be870b | 506 | |
10e87ee7 | 507 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
508 | test_job_type_LDADD = $(systemd_LDADD) |
509 | ||
15ae422b | 510 | test_ns_SOURCES = \ |
139be57d | 511 | src/test-ns.c |
15ae422b | 512 | |
10e87ee7 | 513 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
514 | test_ns_LDADD = $(systemd_LDADD) |
515 | ||
af5bc85d | 516 | test_loopback_SOURCES = \ |
e99e38bb LP |
517 | src/test-loopback.c \ |
518 | src/loopback-setup.c | |
af5bc85d | 519 | |
139be57d LP |
520 | test_loopback_LDADD = \ |
521 | libsystemd-basic.la | |
522 | ||
e5907703 LP |
523 | test_hostname_SOURCES = \ |
524 | src/test-hostname.c \ | |
525 | src/hostname-setup.c | |
526 | ||
527 | test_hostname_LDADD = \ | |
528 | libsystemd-basic.la | |
529 | ||
8c47c732 | 530 | test_daemon_SOURCES = \ |
8c47c732 LP |
531 | src/test-daemon.c \ |
532 | src/sd-daemon.c | |
af5bc85d | 533 | |
139be57d LP |
534 | test_daemon_LDADD = \ |
535 | libsystemd-basic.la | |
536 | ||
8c6db833 LP |
537 | test_cgroup_SOURCES = \ |
538 | src/test-cgroup.c \ | |
539 | src/cgroup-util.c | |
540 | ||
541 | test_cgroup_CFLAGS = \ | |
35d2e7ec | 542 | $(AM_CFLAGS) |
8c6db833 LP |
543 | |
544 | test_cgroup_LDADD = \ | |
35d2e7ec | 545 | libsystemd-basic.la |
8c6db833 | 546 | |
c24eb49e LP |
547 | test_env_replace_SOURCES = \ |
548 | src/test-env-replace.c | |
549 | ||
550 | test_env_replace_CFLAGS = \ | |
551 | $(AM_CFLAGS) | |
552 | ||
553 | test_env_replace_LDADD = \ | |
554 | libsystemd-basic.la | |
555 | ||
47be870b | 556 | systemd_logger_SOURCES = \ |
e99e38bb | 557 | src/logger.c \ |
0213c3f8 LP |
558 | src/sd-daemon.c \ |
559 | src/tcpwrap.c | |
560 | ||
561 | systemd_logger_LDADD = \ | |
139be57d | 562 | libsystemd-basic.la \ |
0213c3f8 | 563 | $(LIBWRAP_LIBS) |
47be870b | 564 | |
0b7964b8 | 565 | systemd_initctl_SOURCES = \ |
e99e38bb | 566 | src/initctl.c \ |
a822056b LP |
567 | src/sd-daemon.c \ |
568 | src/dbus-common.c | |
0b7964b8 | 569 | |
10e87ee7 LP |
570 | systemd_initctl_CFLAGS = \ |
571 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
572 | $(DBUS_CFLAGS) |
573 | ||
574 | systemd_initctl_LDADD = \ | |
139be57d | 575 | libsystemd-basic.la \ |
0b7964b8 LP |
576 | $(DBUS_LIBS) |
577 | ||
4927fcae LP |
578 | systemd_update_utmp_SOURCES = \ |
579 | src/update-utmp.c \ | |
580 | src/dbus-common.c \ | |
581 | src/utmp-wtmp.c | |
582 | ||
583 | systemd_update_utmp_CFLAGS = \ | |
584 | $(AM_CFLAGS) \ | |
585 | $(DBUS_CFLAGS) \ | |
586 | $(AUDIT_CFLAGS) | |
587 | ||
588 | systemd_update_utmp_LDADD = \ | |
589 | libsystemd-basic.la \ | |
590 | $(DBUS_LIBS) \ | |
591 | $(AUDIT_LIBS) | |
592 | ||
ca2cab5d LP |
593 | systemd_random_seed_SOURCES = \ |
594 | src/random-seed.c | |
595 | ||
596 | systemd_random_seed_CFLAGS = \ | |
597 | $(AM_CFLAGS) | |
598 | ||
599 | systemd_random_seed_LDADD = \ | |
600 | libsystemd-basic.la | |
601 | ||
f6144808 | 602 | systemd_shutdownd_SOURCES = \ |
9be9828c | 603 | src/utmp-wtmp.c \ |
f6144808 LP |
604 | src/sd-daemon.c \ |
605 | src/shutdownd.c | |
606 | ||
607 | systemd_shutdownd_CFLAGS = \ | |
608 | $(AM_CFLAGS) | |
609 | ||
610 | systemd_shutdownd_LDADD = \ | |
611 | libsystemd-basic.la | |
612 | ||
b2423f1f LP |
613 | systemd_modules_load_SOURCES = \ |
614 | src/modules-load.c | |
615 | ||
616 | systemd_modules_load_CFLAGS = \ | |
617 | $(AM_CFLAGS) | |
618 | ||
619 | systemd_modules_load_LDADD = \ | |
620 | libsystemd-basic.la | |
621 | ||
97c4a07d LP |
622 | systemd_vconsole_setup_SOURCES = \ |
623 | src/vconsole-setup.c | |
624 | ||
625 | systemd_vconsole_setup_CFLAGS = \ | |
626 | $(AM_CFLAGS) | |
627 | ||
628 | systemd_vconsole_setup_LDADD = \ | |
629 | libsystemd-basic.la | |
630 | ||
449ddb2d LP |
631 | systemd_remount_api_vfs_SOURCES = \ |
632 | src/remount-api-vfs.c \ | |
633 | src/mount-setup.c | |
634 | ||
635 | systemd_remount_api_vfs_CFLAGS = \ | |
636 | $(AM_CFLAGS) | |
637 | ||
638 | systemd_remount_api_vfs_LDADD = \ | |
639 | libsystemd-basic.la | |
640 | ||
8e274523 | 641 | systemd_cgroups_agent_SOURCES = \ |
3c661fad LP |
642 | src/cgroups-agent.c \ |
643 | src/dbus-common.c | |
8e274523 | 644 | |
10e87ee7 LP |
645 | systemd_cgroups_agent_CFLAGS = \ |
646 | $(AM_CFLAGS) \ | |
8e274523 LP |
647 | $(DBUS_CFLAGS) |
648 | ||
649 | systemd_cgroups_agent_LDADD = \ | |
139be57d | 650 | libsystemd-basic.la \ |
8e274523 LP |
651 | $(DBUS_LIBS) |
652 | ||
addab137 LP |
653 | systemd_kmsg_syslogd_SOURCES = \ |
654 | src/kmsg-syslogd.c \ | |
655 | src/sd-daemon.c \ | |
656 | src/fdset.c | |
657 | ||
658 | systemd_kmsg_syslogd_CFLAGS = \ | |
659 | $(AM_CFLAGS) | |
660 | ||
661 | systemd_kmsg_syslogd_LDADD = \ | |
662 | libsystemd-basic.la | |
663 | ||
7e4249b9 LP |
664 | systemctl_SOURCES = \ |
665 | src/systemctl.c \ | |
9a1ac7b9 | 666 | src/utmp-wtmp.c \ |
ab35fb1b | 667 | src/dbus-common.c \ |
ee5762e3 LP |
668 | src/path-lookup.c \ |
669 | src/sd-daemon.c \ | |
c6c18be3 | 670 | src/cgroup-show.c \ |
d06dacd0 LP |
671 | src/cgroup-util.c \ |
672 | src/exit-status.c | |
139be57d LP |
673 | |
674 | systemctl_CFLAGS = \ | |
675 | $(AM_CFLAGS) \ | |
35d2e7ec | 676 | $(DBUS_CFLAGS) |
7e4249b9 | 677 | |
139be57d LP |
678 | systemctl_LDADD = \ |
679 | libsystemd-basic.la \ | |
35d2e7ec | 680 | $(DBUS_LIBS) |
7e4249b9 | 681 | |
4a2a8b5a LP |
682 | systemd_notify_SOURCES = \ |
683 | src/notify.c \ | |
139be57d LP |
684 | src/sd-daemon.c |
685 | ||
686 | systemd_notify_LDADD = \ | |
687 | libsystemd-basic.la | |
4a2a8b5a | 688 | |
490aed58 LP |
689 | systemd_ask_password_SOURCES = \ |
690 | src/ask-password.c | |
691 | ||
692 | systemd_ask_password_LDADD = \ | |
693 | libsystemd-basic.la | |
694 | ||
695 | systemd_reply_password_SOURCES = \ | |
696 | src/reply-password.c | |
697 | ||
698 | systemd_reply_password_LDADD = \ | |
699 | libsystemd-basic.la | |
700 | ||
fa776d8e | 701 | systemd_cgls_SOURCES = \ |
d04247cf | 702 | src/cgls.c \ |
c6c18be3 LP |
703 | src/cgroup-show.c \ |
704 | src/cgroup-util.c | |
fa776d8e LP |
705 | |
706 | systemd_cgls_CFLAGS = \ | |
35d2e7ec | 707 | $(AM_CFLAGS) |
c6c18be3 LP |
708 | |
709 | systemd_cgls_LDADD = \ | |
35d2e7ec | 710 | libsystemd-basic.la |
fa776d8e | 711 | |
47be870b | 712 | systemadm_SOURCES = \ |
e99e38bb LP |
713 | src/systemadm.vala \ |
714 | src/systemd-interfaces.vala | |
47be870b | 715 | |
10e87ee7 LP |
716 | systemadm_CFLAGS = \ |
717 | $(AM_CFLAGS) \ | |
718 | $(DBUSGLIB_CFLAGS) \ | |
719 | $(GTK_CFLAGS) \ | |
720 | -Wno-unused-variable \ | |
721 | -Wno-unused-function \ | |
722 | -Wno-shadow \ | |
723 | -Wno-format-nonliteral | |
724 | ||
725 | systemadm_VALAFLAGS = \ | |
726 | --pkg=dbus-glib-1 \ | |
727 | --pkg=posix \ | |
728 | --pkg=gtk+-2.0 \ | |
729 | -g | |
730 | ||
139be57d LP |
731 | systemadm_LDADD = \ |
732 | $(DBUSGLIB_LIBS) \ | |
733 | $(GTK_LIBS) | |
c1e1601e | 734 | |
490aed58 LP |
735 | systemd_ask_password_agent_SOURCES = \ |
736 | src/ask-password-agent.vala | |
737 | ||
738 | systemd_ask_password_agent_CFLAGS = \ | |
739 | $(AM_CFLAGS) \ | |
740 | $(DBUSGLIB_CFLAGS) \ | |
741 | $(GTK_CFLAGS) \ | |
742 | -Wno-unused-variable \ | |
743 | -Wno-unused-function \ | |
744 | -Wno-shadow \ | |
745 | -Wno-format-nonliteral | |
746 | ||
747 | systemd_ask_password_agent_VALAFLAGS = \ | |
748 | --pkg=dbus-glib-1 \ | |
749 | --pkg=posix \ | |
750 | --pkg=gtk+-2.0 \ | |
751 | --pkg=linux \ | |
752 | --pkg=gio-unix-2.0 \ | |
efb3237e | 753 | --pkg=libnotify \ |
490aed58 LP |
754 | -g |
755 | ||
756 | systemd_ask_password_agent_LDADD = \ | |
757 | $(DBUSGLIB_LIBS) \ | |
758 | $(GTK_LIBS) | |
759 | ||
8c6db833 LP |
760 | pam_systemd_la_SOURCES = \ |
761 | src/pam-module.c \ | |
762 | src/cgroup-util.c \ | |
763 | src/sd-daemon.c | |
764 | ||
765 | pam_systemd_la_CFLAGS = \ | |
35d2e7ec | 766 | $(AM_CFLAGS) |
8c6db833 LP |
767 | -fvisibility=hidden |
768 | ||
769 | pam_systemd_la_LDFLAGS = \ | |
770 | -module \ | |
771 | -export-dynamic \ | |
772 | -avoid-version \ | |
773 | -shared \ | |
774 | -export-symbols-regex '^pam_sm_.*' | |
775 | ||
776 | pam_systemd_la_LIBADD = \ | |
777 | libsystemd-basic.la \ | |
35d2e7ec | 778 | $(PAM_LIBS) |
8c6db833 | 779 | |
5e6afdd3 | 780 | SED_PROCESS = \ |
a00e4879 | 781 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
1136a371 | 782 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5e6afdd3 | 783 | -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ |
1136a371 | 784 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
8c6db833 LP |
785 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ |
786 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
787 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ | |
788 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ | |
789 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
790 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
791 | -e 's,@prefix\@,$(prefix),g' \ | |
2d02719c | 792 | < $< > $@ |
70fcff31 | 793 | |
9f2c5942 | 794 | units/%: units/%.in Makefile |
5e6afdd3 LP |
795 | $(SED_PROCESS) |
796 | ||
2a3d6294 | 797 | man/%: man/%.in Makefile |
5e6afdd3 LP |
798 | $(SED_PROCESS) |
799 | ||
8c6db833 LP |
800 | %.pc: %.pc.in Makefile |
801 | $(SED_PROCESS) | |
802 | ||
fb1bd35a | 803 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 804 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 805 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ |
fb1bd35a LP |
806 | |
807 | M4_PROCESS_SESSION = \ | |
a00e4879 | 808 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 809 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ |
5e6afdd3 | 810 | |
9f2c5942 | 811 | units/%: units/%.m4 Makefile |
fb1bd35a | 812 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 813 | |
9f2c5942 | 814 | units/session/%: units/%.m4 Makefile |
fb1bd35a | 815 | $(M4_PROCESS_SESSION) |
a7b6f8e5 | 816 | |
c1e1601e | 817 | CLEANFILES = \ |
6f6083dc LP |
818 | $(nodist_systemunit_DATA) \ |
819 | $(nodist_sessionunit_DATA) \ | |
820 | $(nodist_man_MANS) \ | |
821 | ${XML_IN_FILES:.xml.in=.html} \ | |
822 | $(pkgconfigdata_DATA) | |
4697132b | 823 | |
42e39f0b LP |
824 | if HAVE_VALAC |
825 | CLEANFILES += \ | |
6f6083dc | 826 | ${systemadm_SOURCES:.vala=.c} |
42e39f0b LP |
827 | endif |
828 | ||
c3bd7322 | 829 | if HAVE_XSLTPROC |
c6365917 LP |
830 | XSLTPROC_FLAGS = \ |
831 | --nonet \ | |
832 | --param funcsynopsis.style "'ansi'" | |
833 | ||
9f2c5942 | 834 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 835 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 836 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
d1ab0ca0 | 837 | |
9f2c5942 | 838 | XSLTPROC_PROCESS_MAN_IN = \ |
a00e4879 | 839 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 840 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ |
9f2c5942 LP |
841 | mv ${@:.in=} $@ |
842 | ||
843 | XSLTPROC_PROCESS_HTML = \ | |
a00e4879 | 844 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 845 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< |
d1ab0ca0 | 846 | |
9f2c5942 | 847 | XSLTPROC_PROCESS_HTML_IN = \ |
a00e4879 | 848 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 849 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \ |
9f2c5942 LP |
850 | mv ${@:.in=} $@ |
851 | ||
6f6083dc | 852 | man/%.1: man/%.xml |
f9378423 LP |
853 | $(XSLTPROC_PROCESS_MAN) |
854 | ||
6f6083dc | 855 | man/%.1.in: man/%.xml.in |
f9378423 LP |
856 | $(XSLTPROC_PROCESS_MAN) |
857 | ||
6f6083dc | 858 | man/%.3: man/%.xml |
359957ee LP |
859 | $(XSLTPROC_PROCESS_MAN) |
860 | ||
6f6083dc | 861 | man/%.3.in: man/%.xml.in |
359957ee LP |
862 | $(XSLTPROC_PROCESS_MAN) |
863 | ||
9f2c5942 LP |
864 | man/%.5: man/%.xml |
865 | $(XSLTPROC_PROCESS_MAN) | |
866 | ||
867 | man/%.5.in: man/%.xml.in | |
868 | $(XSLTPROC_PROCESS_MAN) | |
869 | ||
870 | man/%.7: man/%.xml | |
871 | $(XSLTPROC_PROCESS_MAN) | |
872 | ||
873 | man/%.7.in: man/%.xml.in | |
874 | $(XSLTPROC_PROCESS_MAN_IN) | |
875 | ||
f9378423 LP |
876 | man/%.8: man/%.xml |
877 | $(XSLTPROC_PROCESS_MAN) | |
878 | ||
879 | man/%.8.in: man/%.xml.in | |
880 | $(XSLTPROC_PROCESS_MAN_IN) | |
881 | ||
9f2c5942 LP |
882 | man/%.html: man/%.xml |
883 | $(XSLTPROC_PROCESS_HTML) | |
884 | ||
885 | man/%.html.in: man/%.xml.in | |
886 | $(XSLTPROC_PROCESS_HTML_IN) | |
887 | ||
d1ab0ca0 LP |
888 | CLEANFILES += \ |
889 | $(dist_man_MANS) \ | |
6f6083dc LP |
890 | ${nodist_man_MANS:=.in} \ |
891 | ${XML_FILES:.xml=.html} \ | |
892 | ${XML_IN_FILES:.xml.in=.html.in} | |
c3bd7322 | 893 | endif |
d1ab0ca0 | 894 | |
4288f619 | 895 | org.freedesktop.systemd1.%.xml: systemd |
4627d396 | 896 | $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@ |
4288f619 | 897 | |
6f6083dc LP |
898 | CLEANFILES += \ |
899 | $(dbusinterface_DATA) | |
4288f619 | 900 | |
4697132b | 901 | install-data-hook: |
64c1b5bf | 902 | $(MKDIR_P) -m 0755 \ |
43aa226d LP |
903 | $(DESTDIR)$(systemunitdir) \ |
904 | $(DESTDIR)$(sessionunitdir) \ | |
5e6afdd3 | 905 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
f92a18f5 | 906 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants \ |
cd6d0a45 | 907 | $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ |
65ae3821 | 908 | $(DESTDIR)$(systemunitdir)/local-fs.target.wants \ |
cd6d0a45 LP |
909 | $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \ |
910 | $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \ | |
911 | $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \ | |
912 | $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \ | |
913 | $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \ | |
45cf9716 | 914 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ |
64c1b5bf | 915 | $(DESTDIR)$(pkgsysconfdir)/system \ |
5e6afdd3 LP |
916 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
917 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ | |
918 | $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \ | |
64c1b5bf | 919 | $(DESTDIR)$(pkgsysconfdir)/session \ |
e82e442b | 920 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
e9da3678 LP |
921 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
922 | rm -f session && \ | |
5e6afdd3 LP |
923 | $(LN_S) $(pkgsysconfdir)/session session ) |
924 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ | |
a145090c | 925 | rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \ |
5e6afdd3 | 926 | $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ |
a145090c LP |
927 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \ |
928 | $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket ) | |
cd6d0a45 LP |
929 | ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \ |
930 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 931 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
932 | ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \ |
933 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 934 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
935 | ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \ |
936 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 937 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
938 | ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \ |
939 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 940 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
941 | ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \ |
942 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 943 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 | 944 | ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ |
d3f09cf3 | 945 | rm -f systemd-update-utmp-shutdown.service \ |
7376cffd | 946 | hwclock-save.service \ |
d3f09cf3 | 947 | systemd-random-seed-save.service && \ |
45cf9716 KS |
948 | $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \ |
949 | $(LN_S) ../hwclock-save.service hwclock-save.service && \ | |
950 | $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service ) | |
65ae3821 KS |
951 | ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \ |
952 | rm -f systemd-update-utmp-shutdown.service \ | |
953 | var-run.service \ | |
954 | var-lock.service && \ | |
45cf9716 KS |
955 | $(LN_S) ../var-run.service var-run.service && \ |
956 | $(LN_S) ../var-lock.service var-lock.service ) | |
70449379 | 957 | ( cd $(DESTDIR)$(sessionunitdir) && \ |
da78e1b4 | 958 | rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \ |
8c4a3079 LP |
959 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
960 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
961 | $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ | |
da78e1b4 LP |
962 | $(LN_S) $(systemunitdir)/swap.target swap.target && \ |
963 | $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ | |
964 | $(LN_S) $(systemunitdir)/printer.target printer.target) | |
5e6afdd3 | 965 | ( cd $(DESTDIR)$(systemunitdir) && \ |
c88f64bd | 966 | rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \ |
5e6afdd3 LP |
967 | $(LN_S) poweroff.target runlevel0.target && \ |
968 | $(LN_S) rescue.target runlevel1.target && \ | |
c88f64bd LP |
969 | $(LN_S) multi-user.target runlevel2.target && \ |
970 | $(LN_S) multi-user.target runlevel3.target && \ | |
971 | $(LN_S) multi-user.target runlevel4.target && \ | |
972 | $(LN_S) graphical.target runlevel5.target && \ | |
5e6afdd3 | 973 | $(LN_S) reboot.target runlevel6.target ) |
45cf9716 KS |
974 | ( cd $(DESTDIR)$(systemunitdir) && \ |
975 | rm -f default.target ctrl-alt-del.target && \ | |
976 | $(LN_S) graphical.target default.target && \ | |
977 | $(LN_S) reboot.target ctrl-alt-del.target ) | |
5e6afdd3 | 978 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ |
b2bb3dbe | 979 | rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ |
5e6afdd3 LP |
980 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ |
981 | $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ | |
982 | $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ | |
983 | $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ | |
984 | $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ | |
b2bb3dbe | 985 | $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) |
5e6afdd3 | 986 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
f92a18f5 LP |
987 | rm -f getty.target remote-fs.target && \ |
988 | $(LN_S) $(systemunitdir)/getty.target getty.target && \ | |
989 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) | |
990 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ | |
6d526de2 LP |
991 | rm -f dev-hugepages.automount \ |
992 | dev-mqueue.automount \ | |
993 | proc-sys-fs-binfmt_misc.automount \ | |
994 | sys-kernel-debug.automount \ | |
f0a73e24 | 995 | sys-kernel-security.automount \ |
d3f09cf3 KS |
996 | systemd-vconsole-setup.service \ |
997 | systemd-modules-load.service \ | |
998 | systemd-random-seed-load.service \ | |
f9ccc724 | 999 | sysctl.service \ |
f0a73e24 LP |
1000 | tmpwatch.timer \ |
1001 | tmpwatch.service && \ | |
670802d4 LP |
1002 | $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \ |
1003 | $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \ | |
1004 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \ | |
6d526de2 | 1005 | $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \ |
f0a73e24 | 1006 | $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \ |
45cf9716 KS |
1007 | $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \ |
1008 | $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \ | |
1009 | $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \ | |
1010 | $(LN_S) ../sysctl.service sysctl.service && \ | |
1011 | $(LN_S) ../tmpwatch.timer tmpwatch.timer && \ | |
1012 | $(LN_S) ../tmpwatch.service tmpwatch.service ) | |
d122948d LP |
1013 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
1014 | rm -f org.freedesktop.systemd1.service && \ | |
1015 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
5e6afdd3 | 1016 | if TARGET_FEDORA |
a3723b97 | 1017 | $(MKDIR_P) -m 0755 \ |
f057408c | 1018 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ |
3cc144eb LP |
1019 | $(DESTDIR)$(systemunitdir)/reboot.target.wants \ |
1020 | $(DESTDIR)$(systemunitdir)/poweroff.target.wants \ | |
1021 | $(DESTDIR)$(systemunitdir)/halt.target.wants \ | |
1022 | $(DESTDIR)$(systemunitdir)/rescue.target.wants \ | |
1023 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants | |
1e287fe3 LP |
1024 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
1025 | rm -f display-manager.service && \ | |
1026 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 1027 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
af65a091 | 1028 | rm -f prefdm.service && \ |
83698d60 | 1029 | $(LN_S) $(systemunitdir)/prefdm.service prefdm.service ) |
5e6afdd3 | 1030 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
3cc144eb LP |
1031 | rm -f rc-local.service && \ |
1032 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
f057408c LP |
1033 | ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \ |
1034 | rm -f single.service && \ | |
1035 | $(LN_S) $(systemunitdir)/single.service single.service ) | |
3cc144eb LP |
1036 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
1037 | rm -f plymouth-quit.service && \ | |
1038 | $(LN_S) ../plymouth-quit.service plymouth-quit.service ) | |
1039 | ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \ | |
0278dfeb | 1040 | rm -f plymouth-reboot.service && \ |
3cc144eb LP |
1041 | $(LN_S) ../plymouth-reboot.service plymouth-reboot.service ) |
1042 | ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \ | |
0278dfeb | 1043 | rm -f plymouth-poweroff.service && \ |
3cc144eb LP |
1044 | $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service ) |
1045 | ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \ | |
0278dfeb | 1046 | rm -f plymouth-halt.service && \ |
3cc144eb | 1047 | $(LN_S) ../plymouth-halt.service plymouth-halt.service ) |
5e6afdd3 LP |
1048 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1049 | rm -f local.service && \ | |
1050 | $(LN_S) rc-local.service local.service ) | |
a3723b97 | 1051 | ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \ |
1afaf573 | 1052 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) |
5e6afdd3 | 1053 | endif |
f306f4c4 MAP |
1054 | if TARGET_GENTOO |
1055 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
1056 | rm -f display-manager.service && \ | |
1057 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
1058 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
83698d60 LP |
1059 | rm -f xdm.service && \ |
1060 | $(LN_S) $(systemunitdir)/xdm.service xdm.service ) | |
f306f4c4 | 1061 | endif |
a5dc0a45 MB |
1062 | if TARGET_DEBIAN |
1063 | $(MKDIR_P) -m 0755 \ | |
1064 | $(DESTDIR)$(systemunitdir)/umount.target.wants | |
1065 | ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \ | |
1066 | rm -f umountfs.service umountnfs.service umountroot.service && \ | |
1067 | $(LN_S) ../umountfs.service umountfs.service && \ | |
1068 | $(LN_S) ../umountnfs.service umountnfs.service && \ | |
1069 | $(LN_S) ../umountroot.service umountroot.service ) | |
e082d6c8 MB |
1070 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1071 | rm -f runlevel5.target && \ | |
1072 | $(LN_S) multi-user.target runlevel5.target ) | |
a5dc0a45 | 1073 | endif |
922cc001 | 1074 | if !TARGET_SUSE |
f10814d9 | 1075 | if !TARGET_DEBIAN |
922cc001 LP |
1076 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1077 | rm -f fsck.target && \ | |
1078 | $(LN_S) sysinit.target fsck.target ) | |
1079 | endif | |
f10814d9 | 1080 | endif |
5e6afdd3 | 1081 | |
d1ab0ca0 | 1082 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
1083 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
1084 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
1085 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
1086 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 | 1087 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
8c6db833 | 1088 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
8c4a3079 | 1089 | --with-rootdir=$$dc_install_base/$(rootdir) |
a45f61d7 LP |
1090 | |
1091 | upload: all distcheck | |
53eff0c7 | 1092 | cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/ |
a45f61d7 LP |
1093 | scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/ |
1094 | scp man/*.html tango:public/systemd-man/ | |
1095 | ||
1096 | git-tag: | |
1097 | git tag "v$(VERSION)" -m "systemd $(VERSION)" |