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