]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
notify: add systemd-notify --booted
[thirdparty/systemd.git] / Makefile.am
CommitLineData
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
18ACLOCAL_AMFLAGS = -I m4
19
8c4a3079 20# Dirs of external packages
d122948d
LP
21dbuspolicydir=@dbuspolicydir@
22dbussessionservicedir=@dbussessionservicedir@
23dbussystemservicedir=@dbussystemservicedir@
24dbusinterfacedir=@dbusinterfacedir@
d1ab0ca0 25udevrulesdir=@udevrulesdir@
036643a2 26
8c4a3079 27# Our own, non-special dirs
d1ab0ca0 28pkgsysconfdir=$(sysconfdir)/systemd
d1ab0ca0 29sessionunitdir=$(pkgdatadir)/session
8c4a3079
LP
30
31# And these are the special ones for /
32rootdir=@rootdir@
8c4a3079
LP
33rootbindir=$(rootdir)/bin
34rootlibexecdir=$(rootdir)/lib/systemd
35systemunitdir=$(rootdir)/lib/systemd/system
70fcff31 36
47be870b
LP
37AM_CPPFLAGS = \
38 -include $(top_builddir)/config.h \
036643a2 39 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
70fcff31 40 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
0571e011 41 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 42 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
036643a2 43 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
70fcff31 44 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
8c4a3079 45 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
f401faf5 46 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
2cb1a60d 47 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
e99e38bb 48 -I $(top_srcdir)/src
47be870b 49
8c4a3079 50rootbin_PROGRAMS = \
134dc482 51 systemd \
4a2a8b5a
LP
52 systemctl \
53 systemd-notify
a9b5b032 54
8c4a3079 55bin_PROGRAMS = \
10e87ee7
LP
56 systemd-install
57
58if HAVE_GTK
59bin_PROGRAMS += \
8e274523 60 systemadm
a9b5b032 61endif
8e274523 62
8c4a3079 63rootlibexec_PROGRAMS = \
8e274523 64 systemd-logger \
0b7964b8
LP
65 systemd-cgroups-agent \
66 systemd-initctl
47be870b
LP
67
68noinst_PROGRAMS = \
69 test-engine \
15ae422b 70 test-job-type \
af5bc85d 71 test-ns \
8c47c732
LP
72 test-loopback \
73 test-daemon
47be870b 74
d1ab0ca0 75dist_dbuspolicy_DATA = \
dfac97b2 76 src/org.freedesktop.systemd1.conf
e24067c3 77
d122948d
LP
78dist_dbussystemservice_DATA = \
79 src/org.freedesktop.systemd1.service
80
d1ab0ca0 81dist_udevrules_DATA = \
dfac97b2 82 src/99-systemd.rules
5cc5d790 83
d122948d 84dbusinterface_DATA = \
4288f619
LP
85 org.freedesktop.systemd1.Manager.xml \
86 org.freedesktop.systemd1.Job.xml \
87 org.freedesktop.systemd1.Unit.xml \
88 org.freedesktop.systemd1.Service.xml \
89 org.freedesktop.systemd1.Socket.xml \
871d7de4 90 org.freedesktop.systemd1.Timer.xml \
4288f619
LP
91 org.freedesktop.systemd1.Target.xml \
92 org.freedesktop.systemd1.Device.xml \
93 org.freedesktop.systemd1.Mount.xml \
94 org.freedesktop.systemd1.Automount.xml \
95 org.freedesktop.systemd1.Snapshot.xml \
01f78473
LP
96 org.freedesktop.systemd1.Swap.xml \
97 org.freedesktop.systemd1.Path.xml
4288f619 98
d1ab0ca0 99dist_systemunit_DATA = \
70fcff31 100 units/emergency.service \
f92a18f5 101 units/basic.target \
5e6afdd3
LP
102 units/getty.target \
103 units/halt.target \
70449379
LP
104 units/local-fs.target \
105 units/network.target \
106 units/nss-lookup.target \
683f468c 107 units/mail-transfer-agent.target \
5e6afdd3
LP
108 units/poweroff.target \
109 units/reboot.target \
70449379 110 units/remote-fs.target \
5e6afdd3 111 units/rescue.target \
f0b02ca2 112 units/rpcbind.target \
70449379
LP
113 units/rtc-set.target \
114 units/shutdown.target \
115 units/sigpwr.target \
116 units/sockets.target \
117 units/swap.target \
70fcff31 118 units/systemd-initctl.socket \
670802d4
LP
119 units/systemd-logger.socket \
120 units/dev-hugepages.automount \
121 units/dev-hugepages.mount \
122 units/dev-mqueue.automount \
123 units/dev-mqueue.mount \
124 units/proc-sys-fs-binfmt_misc.automount \
125 units/proc-sys-fs-binfmt_misc.mount \
126 units/sys-kernel-debug.automount \
127 units/sys-kernel-debug.mount \
6d526de2
LP
128 units/sys-kernel-security.automount \
129 units/sys-kernel-security.mount \
130 units/var-lock.mount \
670802d4 131 units/var-run.mount
70fcff31 132
d1ab0ca0 133systemunit_DATA = \
f92a18f5 134 units/sysinit.target \
5e6afdd3
LP
135 units/getty@.service \
136 units/graphical.target \
137 units/multi-user.target \
dfac97b2 138 units/systemd-initctl.service \
a7b6f8e5
LP
139 units/systemd-logger.service \
140 units/syslog.target
d1ab0ca0 141
0d26c910
LP
142dist_sessionunit_DATA = \
143 units/session/default.target
144
fb1bd35a 145sessionunit_DATA = \
a1b256b0
LP
146 units/session/remote-fs.target \
147 units/session/exit.service
fb1bd35a 148
e24067c3 149EXTRA_DIST = \
f92a18f5 150 units/sysinit.target.m4 \
5e6afdd3
LP
151 units/getty@.service.m4 \
152 units/graphical.target.m4 \
153 units/multi-user.target.m4 \
705dbf3a 154 units/remote-fs.target.m4 \
70fcff31 155 units/systemd-initctl.service.in \
70fcff31 156 units/systemd-logger.service.in \
a7b6f8e5 157 units/syslog.target.in \
a1b256b0 158 units/session/exit.service.in \
31cee6f6 159 LICENSE \
eb10a764
LP
160 README \
161 DISTRO_PORTING
e24067c3 162
5e6afdd3
LP
163if TARGET_FEDORA
164dist_systemunit_DATA += \
165 units/fedora/halt.service \
166 units/fedora/killall.service \
167 units/fedora/poweroff.service \
168 units/fedora/prefdm.service \
169 units/fedora/rc-local.service \
170 units/fedora/reboot.service \
171 units/fedora/sysinit.service
172endif
173
65b0095b
KS
174if TARGET_SUSE
175dist_systemunit_DATA += \
176 units/suse/halt.service \
177 units/suse/poweroff.service \
178 units/suse/reboot.service
179endif
180
ea2d9ed4
MAP
181if TARGET_GENTOO
182dist_systemunit_DATA += \
183 units/gentoo/halt.service \
184 units/gentoo/killall.service \
185 units/gentoo/poweroff.service \
186 units/gentoo/reboot.service \
187 units/gentoo/xdm.service
188endif
189
1ebdf2d8
TG
190if TARGET_ARCH
191dist_systemunit_DATA += \
192 units/arch/sysinit.service \
193 units/arch/rc-local.service \
194 units/arch/halt.service \
195 units/arch/poweroff.service \
196 units/arch/reboot.service
197endif
198
240a3a85
LP
199dist_doc_DATA = \
200 README \
201 src/sd-daemon.h \
202 src/sd-daemon.c
203
139be57d
LP
204noinst_LTLIBRARIES = \
205 libsystemd-basic.la \
206 libsystemd-core.la
207
75db651a
TFH
208# This is needed because automake is buggy in how it generates the
209# rules for C programs, but not Vala programs. We therefore can't
210# list the .h files as dependencies if we want make dist to work.
139be57d
LP
211
212libsystemd_basic_la_SOURCES = \
e99e38bb
LP
213 src/util.c \
214 src/hashmap.c \
215 src/set.c \
216 src/strv.c \
217 src/conf-parser.c \
218 src/socket-util.c \
219 src/log.c \
220 src/ratelimit.c
47be870b 221
139be57d 222libsystemd_core_la_SOURCES = \
e99e38bb
LP
223 src/unit.c \
224 src/job.c \
225 src/manager.c \
84e3543e 226 src/path-lookup.c \
e99e38bb
LP
227 src/load-fragment.c \
228 src/service.c \
229 src/automount.c \
230 src/mount.c \
231 src/swap.c \
232 src/device.c \
233 src/target.c \
234 src/snapshot.c \
235 src/socket.c \
236 src/timer.c \
01f78473 237 src/path.c \
e99e38bb
LP
238 src/load-dropin.c \
239 src/execute.c \
240 src/dbus.c \
241 src/dbus-manager.c \
242 src/dbus-unit.c \
243 src/dbus-job.c \
244 src/dbus-service.c \
245 src/dbus-socket.c \
871d7de4 246 src/dbus-timer.c \
e99e38bb
LP
247 src/dbus-target.c \
248 src/dbus-mount.c \
249 src/dbus-automount.c \
250 src/dbus-swap.c \
251 src/dbus-snapshot.c \
252 src/dbus-device.c \
253 src/dbus-execute.c \
01f78473 254 src/dbus-path.c \
e99e38bb
LP
255 src/cgroup.c \
256 src/mount-setup.c \
257 src/hostname-setup.c \
258 src/loopback-setup.c \
11c3a4ee 259 src/kmod-setup.c \
e99e38bb
LP
260 src/utmp-wtmp.c \
261 src/specifier.c \
262 src/unit-name.c \
263 src/fdset.c \
0213c3f8
LP
264 src/namespace.c \
265 src/tcpwrap.c
47be870b 266
139be57d
LP
267libsystemd_core_la_CFLAGS = \
268 $(AM_CFLAGS) \
269 $(DBUS_CFLAGS) \
270 $(UDEV_CFLAGS) \
271 $(CGROUP_CFLAGS)
272
273libsystemd_core_la_LIBADD = \
274 libsystemd-basic.la \
275 $(DBUS_LIBS) \
276 $(UDEV_LIBS) \
277 $(CGROUP_LIBS) \
278 $(LIBWRAP_LIBS) \
279 $(PAM_LIBS)
280
462b33e9 281EXTRA_DIST += \
139be57d
LP
282 ${libsystemd_basic_la_SOURCES:.c=.h} \
283 ${libsystemd_core_la_SOURCES:.c=.h} \
e99e38bb
LP
284 src/macro.h \
285 src/ioprio.h \
286 src/missing.h \
287 src/list.h \
288 src/securebits.h \
289 src/linux/auto_dev-ioctl.h \
290 src/initreq.h \
514f4ef5
LP
291 src/sd-daemon.h \
292 src/special.h
462b33e9 293
d1ab0ca0 294dist_man_MANS = \
dfac97b2 295 man/systemd.unit.5 \
9f2c5942
LP
296 man/systemd.service.5
297
298nodist_man_MANS = \
9f235308 299 man/systemd.special.7
d1ab0ca0 300
9f2c5942 301dist_noinst_DATA = \
dfac97b2 302 man/systemd.unit.html \
9f2c5942 303 man/systemd.service.html
d1ab0ca0 304
9f2c5942
LP
305nodist_noinst_DATA = \
306 man/systemd.special.html
d1ab0ca0
LP
307
308EXTRA_DIST += \
309 man/systemd.unit.xml \
9f235308 310 man/systemd.service.xml \
9f2c5942
LP
311 man/systemd.special.xml.in \
312 man/systemd.special.7.in \
313 man/systemd.special.html.in
d1ab0ca0 314
47be870b 315systemd_SOURCES = \
e99e38bb 316 src/main.c
47be870b 317
10e87ee7
LP
318systemd_CFLAGS = \
319 $(AM_CFLAGS) \
47be870b 320 $(DBUS_CFLAGS) \
8e274523
LP
321 $(UDEV_CFLAGS) \
322 $(CGROUP_CFLAGS)
47be870b
LP
323
324systemd_LDADD = \
139be57d 325 libsystemd-core.la
47be870b
LP
326
327test_engine_SOURCES = \
e99e38bb 328 src/test-engine.c
47be870b 329
10e87ee7 330test_engine_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
331test_engine_LDADD = $(systemd_LDADD)
332
333test_job_type_SOURCES = \
e1d680ad 334 src/test-job-type.c
47be870b 335
10e87ee7 336test_job_type_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
337test_job_type_LDADD = $(systemd_LDADD)
338
15ae422b 339test_ns_SOURCES = \
139be57d 340 src/test-ns.c
15ae422b 341
10e87ee7 342test_ns_CFLAGS = $(systemd_CFLAGS)
15ae422b
LP
343test_ns_LDADD = $(systemd_LDADD)
344
af5bc85d 345test_loopback_SOURCES = \
e99e38bb
LP
346 src/test-loopback.c \
347 src/loopback-setup.c
af5bc85d 348
139be57d
LP
349test_loopback_LDADD = \
350 libsystemd-basic.la
351
8c47c732 352test_daemon_SOURCES = \
8c47c732
LP
353 src/test-daemon.c \
354 src/sd-daemon.c
af5bc85d 355
139be57d
LP
356test_daemon_LDADD = \
357 libsystemd-basic.la
358
47be870b 359systemd_logger_SOURCES = \
e99e38bb 360 src/logger.c \
0213c3f8
LP
361 src/sd-daemon.c \
362 src/tcpwrap.c
363
364systemd_logger_LDADD = \
139be57d 365 libsystemd-basic.la \
0213c3f8 366 $(LIBWRAP_LIBS)
47be870b 367
0b7964b8 368systemd_initctl_SOURCES = \
e99e38bb
LP
369 src/initctl.c \
370 src/sd-daemon.c
0b7964b8 371
10e87ee7
LP
372systemd_initctl_CFLAGS = \
373 $(AM_CFLAGS) \
0b7964b8
LP
374 $(DBUS_CFLAGS)
375
376systemd_initctl_LDADD = \
139be57d 377 libsystemd-basic.la \
0b7964b8
LP
378 $(DBUS_LIBS)
379
8e274523 380systemd_cgroups_agent_SOURCES = \
e99e38bb 381 src/cgroups-agent.c
8e274523 382
10e87ee7
LP
383systemd_cgroups_agent_CFLAGS = \
384 $(AM_CFLAGS) \
8e274523
LP
385 $(DBUS_CFLAGS)
386
387systemd_cgroups_agent_LDADD = \
139be57d 388 libsystemd-basic.la \
8e274523
LP
389 $(DBUS_LIBS)
390
7e4249b9
LP
391systemctl_SOURCES = \
392 src/systemctl.c \
139be57d
LP
393 src/utmp-wtmp.c
394
395systemctl_CFLAGS = \
396 $(AM_CFLAGS) \
397 $(DBUS_CFLAGS)
7e4249b9 398
139be57d
LP
399systemctl_LDADD = \
400 libsystemd-basic.la \
401 $(DBUS_LIBS)
7e4249b9 402
4a2a8b5a
LP
403systemd_notify_SOURCES = \
404 src/notify.c \
139be57d
LP
405 src/sd-daemon.c
406
407systemd_notify_LDADD = \
408 libsystemd-basic.la
4a2a8b5a 409
10e87ee7
LP
410systemd_install_SOURCES = \
411 src/install.c \
139be57d
LP
412 src/path-lookup.c
413
414systemd_install_LDADD = \
415 libsystemd-basic.la
e99e38bb 416
10e87ee7 417# We don't really link here against D-Bus, however we indirectly include D-Bus header files
139be57d
LP
418systemd_install_CFLAGS = \
419 $(AM_CFLAGS) \
420 $(DBUS_CFLAGS)
47be870b 421
47be870b 422systemadm_SOURCES = \
e99e38bb
LP
423 src/systemadm.vala \
424 src/systemd-interfaces.vala
47be870b 425
10e87ee7
LP
426systemadm_CFLAGS = \
427 $(AM_CFLAGS) \
428 $(DBUSGLIB_CFLAGS) \
429 $(GTK_CFLAGS) \
430 -Wno-unused-variable \
431 -Wno-unused-function \
432 -Wno-shadow \
433 -Wno-format-nonliteral
434
435systemadm_VALAFLAGS = \
436 --pkg=dbus-glib-1 \
437 --pkg=posix \
438 --pkg=gtk+-2.0 \
439 -g
440
139be57d
LP
441systemadm_LDADD = \
442 $(DBUSGLIB_LIBS) \
443 $(GTK_LIBS)
c1e1601e 444
5e6afdd3 445SED_PROCESS = \
a00e4879 446 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1136a371 447 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
5e6afdd3 448 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
a1b256b0 449 -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \
1136a371 450 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2d02719c 451 < $< > $@
70fcff31 452
9f2c5942 453units/%: units/%.in Makefile
5e6afdd3
LP
454 $(SED_PROCESS)
455
2a3d6294 456man/%: man/%.in Makefile
5e6afdd3
LP
457 $(SED_PROCESS)
458
fb1bd35a 459M4_PROCESS_SYSTEM = \
a00e4879 460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
9f2c5942 461 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
fb1bd35a
LP
462
463M4_PROCESS_SESSION = \
a00e4879 464 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
9f2c5942 465 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
5e6afdd3 466
9f2c5942 467units/%: units/%.m4 Makefile
fb1bd35a 468 $(M4_PROCESS_SYSTEM)
5e6afdd3 469
9f2c5942 470units/session/%: units/%.m4 Makefile
fb1bd35a 471 $(M4_PROCESS_SESSION)
a7b6f8e5 472
c1e1601e 473CLEANFILES = \
dfac97b2 474 units/systemd-initctl.service \
a7b6f8e5 475 units/systemd-logger.service \
5e6afdd3 476 units/syslog.target \
f92a18f5 477 units/sysinit.target \
5e6afdd3
LP
478 units/getty@.service \
479 units/graphical.target \
705dbf3a
LP
480 units/multi-user.target \
481 units/remote-fs.target \
9f2c5942 482 units/session/remote-fs.target \
a1b256b0 483 units/session/exit.service \
9f2c5942
LP
484 man/systemd.special.7 \
485 man/systemd.special.html
4697132b 486
42e39f0b
LP
487if HAVE_VALAC
488CLEANFILES += \
489 src/systemd-interfaces.c \
42e39f0b
LP
490 src/systemadm.c
491endif
492
c3bd7322 493if HAVE_XSLTPROC
9f2c5942 494XSLTPROC_PROCESS_MAN = \
a00e4879 495 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
634826b5 496 $(XSLTPROC) -o $@ --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
d1ab0ca0 497
9f2c5942 498XSLTPROC_PROCESS_MAN_IN = \
a00e4879 499 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
634826b5 500 $(XSLTPROC) -o ${@:.in=} --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
9f2c5942
LP
501 mv ${@:.in=} $@
502
503XSLTPROC_PROCESS_HTML = \
a00e4879 504 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
634826b5 505 $(XSLTPROC) -o $@ --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
d1ab0ca0 506
9f2c5942 507XSLTPROC_PROCESS_HTML_IN = \
a00e4879 508 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
634826b5 509 $(XSLTPROC) -o ${@:.in=} --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
9f2c5942
LP
510 mv ${@:.in=} $@
511
512man/%.5: man/%.xml
513 $(XSLTPROC_PROCESS_MAN)
514
515man/%.5.in: man/%.xml.in
516 $(XSLTPROC_PROCESS_MAN)
517
518man/%.7: man/%.xml
519 $(XSLTPROC_PROCESS_MAN)
520
521man/%.7.in: man/%.xml.in
522 $(XSLTPROC_PROCESS_MAN_IN)
523
524man/%.html: man/%.xml
525 $(XSLTPROC_PROCESS_HTML)
526
527man/%.html.in: man/%.xml.in
528 $(XSLTPROC_PROCESS_HTML_IN)
529
d1ab0ca0
LP
530CLEANFILES += \
531 $(dist_man_MANS) \
9f2c5942
LP
532 man/systemd.special.7.in \
533 man/systemd.unit.html \
534 man/systemd.service.html \
535 man/systemd.special.html.in
c3bd7322 536endif
d1ab0ca0 537
4288f619
LP
538org.freedesktop.systemd1.%.xml: systemd
539 $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@
540
d122948d 541CLEANFILES += $(dbusinterface_DATA)
4288f619 542
4697132b 543install-data-hook:
64c1b5bf 544 $(MKDIR_P) -m 0755 \
43aa226d
LP
545 $(DESTDIR)$(systemunitdir) \
546 $(DESTDIR)$(sessionunitdir) \
5e6afdd3 547 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
f92a18f5 548 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
64c1b5bf 549 $(DESTDIR)$(pkgsysconfdir)/system \
5e6afdd3
LP
550 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
551 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
552 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
64c1b5bf 553 $(DESTDIR)$(pkgsysconfdir)/session \
e82e442b 554 $(DESTDIR)$(sysconfdir)/xdg/systemd
53f7d807
LP
555 $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup/systemd || \
556 echo "Don't forget to create /cgroup/systemd! Couldn't create it for you, continuing anyway."
e9da3678
LP
557 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
558 rm -f session && \
5e6afdd3
LP
559 $(LN_S) $(pkgsysconfdir)/session session )
560 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
70449379 561 rm -f systemd-initctl.socket systemd-logger.socket && \
5e6afdd3
LP
562 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
563 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket )
70449379 564 ( cd $(DESTDIR)$(sessionunitdir) && \
fb1bd35a 565 rm -f shutdown.target sockets.target local-fs.target swap.target && \
8c4a3079
LP
566 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
567 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
568 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
569 $(LN_S) $(systemunitdir)/swap.target swap.target )
5e6afdd3
LP
570 ( cd $(DESTDIR)$(systemunitdir) && \
571 rm -f runlevel0.target runlevel1.target runlevel6.target && \
572 $(LN_S) poweroff.target runlevel0.target && \
573 $(LN_S) rescue.target runlevel1.target && \
574 $(LN_S) reboot.target runlevel6.target )
575 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
576 rm -f default.target ctrl-alt-del.target kbrequest.target && \
577 $(LN_S) $(systemunitdir)/graphical.target default.target && \
578 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
579 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target && \
580 rm -f runlevel2.target runlevel3.target runlevel4.target runlevel5.target && \
581 $(LN_S) $(systemunitdir)/multi-user.target runlevel2.target && \
582 $(LN_S) $(systemunitdir)/multi-user.target runlevel3.target && \
583 $(LN_S) $(systemunitdir)/multi-user.target runlevel4.target && \
584 $(LN_S) $(systemunitdir)/graphical.target runlevel5.target )
585 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
586 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
587 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
588 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
589 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
590 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
591 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
592 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
593 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
f92a18f5
LP
594 rm -f getty.target remote-fs.target && \
595 $(LN_S) $(systemunitdir)/getty.target getty.target && \
596 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
597 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
6d526de2
LP
598 rm -f dev-hugepages.automount \
599 dev-mqueue.automount \
600 proc-sys-fs-binfmt_misc.automount \
601 sys-kernel-debug.automount \
6d526de2 602 sys-kernel-security.automount && \
670802d4
LP
603 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
604 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
605 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
6d526de2 606 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
8c4a3079 607 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
d122948d
LP
608 ( cd $(DESTDIR)$(dbussessionservicedir) && \
609 rm -f org.freedesktop.systemd1.service && \
610 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
5e6afdd3 611if TARGET_FEDORA
1e287fe3
LP
612 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
613 rm -f display-manager.service && \
614 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
5e6afdd3 615 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1e287fe3
LP
616 rm -f display-manager.service && \
617 $(LN_S) ../display-manager.service display-manager.service )
5e6afdd3
LP
618 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
619 rm -f rc-local.service && \
620 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
621 ( cd $(DESTDIR)$(systemunitdir) && \
622 rm -f local.service && \
623 $(LN_S) rc-local.service local.service )
1afaf573
LP
624 ( cd $(DESTDIR)/etc/init.d && \
625 $(LN_S) halt reboot > /dev/null 2>&1 || true )
5e6afdd3 626endif
f306f4c4
MAP
627if TARGET_GENTOO
628 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
629 rm -f display-manager.service && \
630 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
631 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
632 rm -f display-manager.service && \
633 $(LN_S) ../display-manager.service display-manager.service )
634endif
5e6afdd3 635
d1ab0ca0 636DISTCHECK_CONFIGURE_FLAGS = \
d2d12cd1
LP
637 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
638 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
639 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
640 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
8c4a3079
LP
641 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
642 --with-rootdir=$$dc_install_base/$(rootdir)