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