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