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