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