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