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