]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
units: enable sysctl by default
[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
490aed58 28polkitpolicydir=$(datadir)/polkit-1/actions
036643a2 29
8c4a3079 30# Our own, non-special dirs
d1ab0ca0 31pkgsysconfdir=$(sysconfdir)/systemd
d1ab0ca0 32sessionunitdir=$(pkgdatadir)/session
8c4a3079
LP
33
34# And these are the special ones for /
35rootdir=@rootdir@
8c4a3079
LP
36rootbindir=$(rootdir)/bin
37rootlibexecdir=$(rootdir)/lib/systemd
38systemunitdir=$(rootdir)/lib/systemd/system
70fcff31 39
47be870b 40AM_CPPFLAGS = \
d3f09cf3 41 -include $(top_builddir)/config.h \
487393e9 42 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
036643a2 43 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
70fcff31 44 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
0571e011 45 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 46 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
487393e9 47 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
036643a2 48 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
70fcff31 49 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
8c4a3079 50 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
f401faf5 51 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
2cb1a60d 52 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
8c6db833 53 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
ca2cab5d 54 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
e99e38bb 55 -I $(top_srcdir)/src
47be870b 56
9841e8e3
GSB
57if TARGET_GENTOO
58AM_CPPFLAGS += \
59 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
60 -DKBD_SETFONT=\"/usr/bin/setfont\" \
61 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
62else
63AM_CPPFLAGS += \
64 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
65 -DKBD_SETFONT=\"/bin/setfont\" \
66 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
67endif
68
8c4a3079 69rootbin_PROGRAMS = \
134dc482 70 systemd \
4a2a8b5a 71 systemctl \
490aed58
LP
72 systemd-notify \
73 systemd-ask-password
a9b5b032 74
8c4a3079 75bin_PROGRAMS = \
fa776d8e 76 systemd-cgls
10e87ee7
LP
77
78if HAVE_GTK
79bin_PROGRAMS += \
490aed58
LP
80 systemadm \
81 systemd-ask-password-agent
a9b5b032 82endif
8e274523 83
8c4a3079 84rootlibexec_PROGRAMS = \
8e274523 85 systemd-logger \
0b7964b8 86 systemd-cgroups-agent \
4927fcae 87 systemd-initctl \
ca2cab5d 88 systemd-update-utmp \
f6144808 89 systemd-random-seed \
5192bd19 90 systemd-shutdownd \
449ddb2d 91 systemd-modules-load \
addab137 92 systemd-remount-api-vfs \
97c4a07d 93 systemd-kmsg-syslogd \
490aed58
LP
94 systemd-vconsole-setup \
95 systemd-reply-password
47be870b
LP
96
97noinst_PROGRAMS = \
98 test-engine \
15ae422b 99 test-job-type \
af5bc85d 100 test-ns \
8c47c732 101 test-loopback \
e5907703 102 test-hostname \
8c6db833 103 test-daemon \
c24eb49e
LP
104 test-cgroup \
105 test-env-replace
8c6db833
LP
106
107if HAVE_PAM
108pamlib_LTLIBRARIES = \
109 pam_systemd.la
110endif
47be870b 111
487393e9
LP
112dist_pkgsysconf_DATA = \
113 src/system.conf
114
d1ab0ca0 115dist_dbuspolicy_DATA = \
dfac97b2 116 src/org.freedesktop.systemd1.conf
e24067c3 117
d122948d
LP
118dist_dbussystemservice_DATA = \
119 src/org.freedesktop.systemd1.service
120
d1ab0ca0 121dist_udevrules_DATA = \
dfac97b2 122 src/99-systemd.rules
5cc5d790 123
d122948d 124dbusinterface_DATA = \
4288f619
LP
125 org.freedesktop.systemd1.Manager.xml \
126 org.freedesktop.systemd1.Job.xml \
127 org.freedesktop.systemd1.Unit.xml \
128 org.freedesktop.systemd1.Service.xml \
129 org.freedesktop.systemd1.Socket.xml \
871d7de4 130 org.freedesktop.systemd1.Timer.xml \
4288f619
LP
131 org.freedesktop.systemd1.Target.xml \
132 org.freedesktop.systemd1.Device.xml \
133 org.freedesktop.systemd1.Mount.xml \
134 org.freedesktop.systemd1.Automount.xml \
135 org.freedesktop.systemd1.Snapshot.xml \
01f78473
LP
136 org.freedesktop.systemd1.Swap.xml \
137 org.freedesktop.systemd1.Path.xml
4288f619 138
d1ab0ca0 139dist_systemunit_DATA = \
70fcff31 140 units/emergency.service \
f057408c 141 units/emergency.target \
f92a18f5 142 units/basic.target \
5e6afdd3
LP
143 units/getty.target \
144 units/halt.target \
70449379
LP
145 units/local-fs.target \
146 units/network.target \
147 units/nss-lookup.target \
683f468c 148 units/mail-transfer-agent.target \
a2ff477f 149 units/http-daemon.target \
5e6afdd3
LP
150 units/poweroff.target \
151 units/reboot.target \
5e6afdd3 152 units/rescue.target \
f0b02ca2 153 units/rpcbind.target \
70449379
LP
154 units/rtc-set.target \
155 units/shutdown.target \
4e67ddd6 156 units/umount.target \
70449379
LP
157 units/sigpwr.target \
158 units/sockets.target \
159 units/swap.target \
83bda358 160 units/dbus.target \
70fcff31 161 units/systemd-initctl.socket \
670802d4 162 units/systemd-logger.socket \
f6144808 163 units/systemd-shutdownd.socket \
addab137 164 units/systemd-kmsg-syslogd.socket \
670802d4
LP
165 units/dev-hugepages.automount \
166 units/dev-hugepages.mount \
167 units/dev-mqueue.automount \
168 units/dev-mqueue.mount \
169 units/proc-sys-fs-binfmt_misc.automount \
170 units/proc-sys-fs-binfmt_misc.mount \
171 units/sys-kernel-debug.automount \
172 units/sys-kernel-debug.mount \
6d526de2
LP
173 units/sys-kernel-security.automount \
174 units/sys-kernel-security.mount \
b54dd8b7 175 units/tmp.mount \
6d526de2 176 units/var-lock.mount \
3c268bdf 177 units/var-lock.service \
da78e1b4 178 units/var-run.mount \
3c268bdf 179 units/var-run.service \
5481ab2b 180 units/hwclock-load.service \
f556ea46
LP
181 units/hwclock-save.service \
182 units/sysctl.service \
90685f7d 183 units/remount-rootfs.service \
da78e1b4 184 units/printer.target \
ceda54d9 185 units/bluetooth.target \
b15124f1
KS
186 units/smartcard.target \
187 units/tmpwatch.service \
188 units/tmpwatch.timer
70fcff31 189
6f6083dc 190nodist_systemunit_DATA = \
f92a18f5 191 units/sysinit.target \
5e6afdd3 192 units/getty@.service \
93a45c56 193 units/serial-getty@.service \
5e6afdd3 194 units/graphical.target \
6f6083dc 195 units/remote-fs.target \
5e6afdd3 196 units/multi-user.target \
dfac97b2 197 units/systemd-initctl.service \
a7b6f8e5 198 units/systemd-logger.service \
f6144808 199 units/systemd-shutdownd.service \
addab137 200 units/systemd-kmsg-syslogd.service \
b2423f1f 201 units/systemd-modules-load.service \
97c4a07d 202 units/systemd-vconsole-setup.service \
449ddb2d 203 units/systemd-remount-api-vfs.service \
cd6d0a45
LP
204 units/systemd-update-utmp-runlevel.service \
205 units/systemd-update-utmp-shutdown.service \
ca2cab5d
LP
206 units/systemd-random-seed-save.service \
207 units/systemd-random-seed-load.service \
83bda358 208 units/syslog.target
d1ab0ca0 209
0d26c910
LP
210dist_sessionunit_DATA = \
211 units/session/default.target
212
6f6083dc 213nodist_sessionunit_DATA = \
a1b256b0
LP
214 units/session/remote-fs.target \
215 units/session/exit.service
fb1bd35a 216
e24067c3 217EXTRA_DIST = \
f92a18f5 218 units/sysinit.target.m4 \
5e6afdd3 219 units/getty@.service.m4 \
93a45c56 220 units/serial-getty@.service.m4 \
5e6afdd3
LP
221 units/graphical.target.m4 \
222 units/multi-user.target.m4 \
705dbf3a 223 units/remote-fs.target.m4 \
70fcff31 224 units/systemd-initctl.service.in \
70fcff31 225 units/systemd-logger.service.in \
f6144808 226 units/systemd-shutdownd.service.in \
addab137 227 units/systemd-kmsg-syslogd.service.in \
b2423f1f 228 units/systemd-modules-load.service.in \
97c4a07d 229 units/systemd-vconsole-setup.service.in \
449ddb2d 230 units/systemd-remount-api-vfs.service.in \
cd6d0a45
LP
231 units/systemd-update-utmp-runlevel.service.in \
232 units/systemd-update-utmp-shutdown.service.in \
ca2cab5d
LP
233 units/systemd-random-seed-save.service.in \
234 units/systemd-random-seed-load.service.in \
a7b6f8e5 235 units/syslog.target.in \
a1b256b0 236 units/session/exit.service.in \
64ca679e 237 systemd.pc.in
e24067c3 238
5e6afdd3
LP
239if TARGET_FEDORA
240dist_systemunit_DATA += \
241 units/fedora/halt.service \
242 units/fedora/killall.service \
243 units/fedora/poweroff.service \
244 units/fedora/prefdm.service \
245 units/fedora/rc-local.service \
246 units/fedora/reboot.service \
f057408c 247 units/fedora/sysinit.service \
1310609b
LP
248 units/fedora/single.service \
249 units/fedora/plymouth-quit.service \
0278dfeb
LP
250 units/fedora/plymouth-reboot.service \
251 units/fedora/plymouth-poweroff.service \
252 units/fedora/plymouth-halt.service
5e6afdd3
LP
253endif
254
ad206afc
MB
255if TARGET_DEBIAN
256dist_systemunit_DATA += \
257 units/debian/halt.service \
258 units/debian/killall.service \
259 units/debian/poweroff.service \
f10814d9 260 units/debian/reboot.service \
a5dc0a45
MB
261 units/debian/fsck.target \
262 units/debian/umountfs.service \
263 units/debian/umountnfs.service \
264 units/debian/umountroot.service
ad206afc
MB
265endif
266
65b0095b
KS
267if TARGET_SUSE
268dist_systemunit_DATA += \
269 units/suse/halt.service \
270 units/suse/poweroff.service \
922cc001
LP
271 units/suse/reboot.service \
272 units/suse/fsck.target
65b0095b
KS
273endif
274
ea2d9ed4
MAP
275if TARGET_GENTOO
276dist_systemunit_DATA += \
277 units/gentoo/halt.service \
278 units/gentoo/killall.service \
279 units/gentoo/poweroff.service \
280 units/gentoo/reboot.service \
281 units/gentoo/xdm.service
282endif
283
1ebdf2d8
TG
284if TARGET_ARCH
285dist_systemunit_DATA += \
286 units/arch/sysinit.service \
287 units/arch/rc-local.service \
288 units/arch/halt.service \
289 units/arch/poweroff.service \
290 units/arch/reboot.service
291endif
292
240a3a85
LP
293dist_doc_DATA = \
294 README \
795750ca
LP
295 LICENSE \
296 DISTRO_PORTING \
240a3a85
LP
297 src/sd-daemon.h \
298 src/sd-daemon.c
299
8c6db833
LP
300pkgconfigdata_DATA = \
301 systemd.pc
302
490aed58
LP
303dist_polkitpolicy_DATA = \
304 src/org.freedesktop.systemd1.policy
305
139be57d
LP
306noinst_LTLIBRARIES = \
307 libsystemd-basic.la \
308 libsystemd-core.la
309
139be57d 310libsystemd_basic_la_SOURCES = \
d3f09cf3 311 src/util.c \
e51bc1a2 312 src/label.c \
d3f09cf3
KS
313 src/hashmap.c \
314 src/set.c \
315 src/strv.c \
316 src/conf-parser.c \
317 src/socket-util.c \
318 src/log.c \
319 src/ratelimit.c
47be870b 320
4927fcae
LP
321libsystemd_basic_la_CFLAGS = \
322 $(AM_CFLAGS) \
323 $(SELINUX_CFLAGS)
324
325libsystemd_basic_la_LIBADD = \
326 $(SELINUX_LIBS)
327
139be57d 328libsystemd_core_la_SOURCES = \
e99e38bb 329 src/unit.c \
d3f09cf3
KS
330 src/job.c \
331 src/manager.c \
84e3543e 332 src/path-lookup.c \
d3f09cf3
KS
333 src/load-fragment.c \
334 src/service.c \
335 src/automount.c \
336 src/mount.c \
337 src/swap.c \
338 src/device.c \
339 src/target.c \
340 src/snapshot.c \
341 src/socket.c \
342 src/timer.c \
01f78473 343 src/path.c \
d3f09cf3
KS
344 src/load-dropin.c \
345 src/execute.c \
d06dacd0 346 src/exit-status.c \
d3f09cf3
KS
347 src/dbus.c \
348 src/dbus-manager.c \
349 src/dbus-unit.c \
350 src/dbus-job.c \
e99e38bb
LP
351 src/dbus-service.c \
352 src/dbus-socket.c \
871d7de4 353 src/dbus-timer.c \
e99e38bb
LP
354 src/dbus-target.c \
355 src/dbus-mount.c \
356 src/dbus-automount.c \
357 src/dbus-swap.c \
358 src/dbus-snapshot.c \
359 src/dbus-device.c \
360 src/dbus-execute.c \
01f78473 361 src/dbus-path.c \
e99e38bb
LP
362 src/cgroup.c \
363 src/mount-setup.c \
364 src/hostname-setup.c \
365 src/loopback-setup.c \
11c3a4ee 366 src/kmod-setup.c \
72bca11b 367 src/locale-setup.c \
e99e38bb
LP
368 src/specifier.c \
369 src/unit-name.c \
370 src/fdset.c \
0213c3f8 371 src/namespace.c \
8c6db833
LP
372 src/tcpwrap.c \
373 src/cgroup-util.c
47be870b 374
139be57d
LP
375libsystemd_core_la_CFLAGS = \
376 $(AM_CFLAGS) \
377 $(DBUS_CFLAGS) \
4927fcae
LP
378 $(UDEV_CFLAGS) \
379 $(LIBWRAP_CFLAGS) \
380 $(PAM_CFLAGS) \
381 $(AUDIT_CFLAGS)
139be57d
LP
382
383libsystemd_core_la_LIBADD = \
384 libsystemd-basic.la \
385 $(DBUS_LIBS) \
386 $(UDEV_LIBS) \
139be57d 387 $(LIBWRAP_LIBS) \
7a58bfa4 388 $(PAM_LIBS) \
4927fcae 389 $(AUDIT_LIBS)
139be57d 390
9a1ac7b9
LP
391# This is needed because automake is buggy in how it generates the
392# rules for C programs, but not Vala programs. We therefore can't
393# list the .h files as dependencies if we want make dist to work.
394
462b33e9 395EXTRA_DIST += \
139be57d
LP
396 ${libsystemd_basic_la_SOURCES:.c=.h} \
397 ${libsystemd_core_la_SOURCES:.c=.h} \
e99e38bb
LP
398 src/macro.h \
399 src/ioprio.h \
400 src/missing.h \
401 src/list.h \
402 src/securebits.h \
403 src/linux/auto_dev-ioctl.h \
404 src/initreq.h \
514f4ef5 405 src/sd-daemon.h \
9a1ac7b9 406 src/special.h \
398ef8ba 407 src/dbus-common.h \
ab35fb1b 408 src/bus-errors.h \
cd6d0a45 409 src/cgroup-show.h \
302e27c8 410 src/utmp-wtmp.h \
f6144808
LP
411 src/build.h \
412 src/shutdownd.h
6f6083dc
LP
413
414MANPAGES = \
160cd5c9 415 man/systemd.1 \
6f6083dc
LP
416 man/systemctl.1 \
417 man/systemadm.1 \
fa776d8e 418 man/systemd-cgls.1 \
c5abba08 419 man/systemd-notify.1 \
f9378423
LP
420 man/sd_notify.3 \
421 man/sd_booted.3 \
422 man/sd_listen_fds.3 \
423 man/sd_is_fifo.3 \
6f6083dc
LP
424 man/systemd.unit.5 \
425 man/systemd.service.5 \
1f812fea 426 man/systemd.socket.5 \
cdb788e4 427 man/systemd.mount.5 \
65232ea7 428 man/systemd.automount.5 \
e0cabd4b 429 man/systemd.swap.5 \
11fcc3ab 430 man/systemd.timer.5 \
b36b082c 431 man/systemd.path.5 \
da49e9ab 432 man/systemd.target.5 \
eec575d8 433 man/systemd.device.5 \
b2c20dd9 434 man/systemd.snapshot.5 \
dd1eb43b 435 man/systemd.exec.5 \
6f6083dc 436 man/daemon.7 \
359957ee
LP
437 man/sd-daemon.7 \
438 man/runlevel.8 \
160cd5c9
LP
439 man/telinit.8 \
440 man/halt.8 \
441 man/shutdown.8 \
f3e219a2
LP
442 man/pam_systemd.8 \
443 man/systemd.conf.5
6f6083dc
LP
444
445MANPAGES_ALIAS = \
446 man/reboot.8 \
447 man/poweroff.8 \
448 man/sd_is_socket.3 \
449 man/sd_is_socket_unix.3 \
450 man/sd_is_socket_inet.3 \
451 man/sd_notifyf.3 \
452 man/init.1
453
454man/reboot.8: man/halt.8
455man/poweroff.8: man/halt.8
456man/sd_is_socket.3: man/sd_is_fifo.3
457man/sd_is_socket_unix.3: man/sd_is_fifo.3
458man/sd_is_socket_inet.3: man/sd_is_fifo.3
459man/sd_notifyf.3: man/sd_notify.3
460man/init.1: man/systemd.1
461
462dist_man_MANS = \
463 $(MANPAGES) \
464 $(MANPAGES_ALIAS)
9f2c5942
LP
465
466nodist_man_MANS = \
9f235308 467 man/systemd.special.7
d1ab0ca0 468
6f6083dc
LP
469XML_FILES = \
470 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
471
472XML_IN_FILES = \
473 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
474
9f2c5942 475dist_noinst_DATA = \
6f6083dc 476 ${XML_FILES:.xml=.html}
d1ab0ca0 477
9f2c5942 478nodist_noinst_DATA = \
6f6083dc 479 ${XML_IN_FILES:.xml.in=.html}
d1ab0ca0
LP
480
481EXTRA_DIST += \
6f6083dc
LP
482 $(XML_FILES) \
483 $(XML_IN_FILES) \
484 ${nodist_man_MANS:=.in} \
485 ${XML_IN_FILES:.xml.in=.html.in}
d1ab0ca0 486
47be870b 487systemd_SOURCES = \
e99e38bb 488 src/main.c
47be870b 489
10e87ee7
LP
490systemd_CFLAGS = \
491 $(AM_CFLAGS) \
47be870b 492 $(DBUS_CFLAGS) \
35d2e7ec 493 $(UDEV_CFLAGS)
47be870b
LP
494
495systemd_LDADD = \
139be57d 496 libsystemd-core.la
47be870b
LP
497
498test_engine_SOURCES = \
e99e38bb 499 src/test-engine.c
47be870b 500
10e87ee7 501test_engine_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
502test_engine_LDADD = $(systemd_LDADD)
503
504test_job_type_SOURCES = \
e1d680ad 505 src/test-job-type.c
47be870b 506
10e87ee7 507test_job_type_CFLAGS = $(systemd_CFLAGS)
47be870b
LP
508test_job_type_LDADD = $(systemd_LDADD)
509
15ae422b 510test_ns_SOURCES = \
139be57d 511 src/test-ns.c
15ae422b 512
10e87ee7 513test_ns_CFLAGS = $(systemd_CFLAGS)
15ae422b
LP
514test_ns_LDADD = $(systemd_LDADD)
515
af5bc85d 516test_loopback_SOURCES = \
e99e38bb
LP
517 src/test-loopback.c \
518 src/loopback-setup.c
af5bc85d 519
139be57d
LP
520test_loopback_LDADD = \
521 libsystemd-basic.la
522
e5907703
LP
523test_hostname_SOURCES = \
524 src/test-hostname.c \
525 src/hostname-setup.c
526
527test_hostname_LDADD = \
528 libsystemd-basic.la
529
8c47c732 530test_daemon_SOURCES = \
8c47c732
LP
531 src/test-daemon.c \
532 src/sd-daemon.c
af5bc85d 533
139be57d
LP
534test_daemon_LDADD = \
535 libsystemd-basic.la
536
8c6db833
LP
537test_cgroup_SOURCES = \
538 src/test-cgroup.c \
539 src/cgroup-util.c
540
541test_cgroup_CFLAGS = \
35d2e7ec 542 $(AM_CFLAGS)
8c6db833
LP
543
544test_cgroup_LDADD = \
35d2e7ec 545 libsystemd-basic.la
8c6db833 546
c24eb49e
LP
547test_env_replace_SOURCES = \
548 src/test-env-replace.c
549
550test_env_replace_CFLAGS = \
551 $(AM_CFLAGS)
552
553test_env_replace_LDADD = \
554 libsystemd-basic.la
555
47be870b 556systemd_logger_SOURCES = \
e99e38bb 557 src/logger.c \
0213c3f8
LP
558 src/sd-daemon.c \
559 src/tcpwrap.c
560
561systemd_logger_LDADD = \
139be57d 562 libsystemd-basic.la \
0213c3f8 563 $(LIBWRAP_LIBS)
47be870b 564
0b7964b8 565systemd_initctl_SOURCES = \
e99e38bb 566 src/initctl.c \
a822056b
LP
567 src/sd-daemon.c \
568 src/dbus-common.c
0b7964b8 569
10e87ee7
LP
570systemd_initctl_CFLAGS = \
571 $(AM_CFLAGS) \
0b7964b8
LP
572 $(DBUS_CFLAGS)
573
574systemd_initctl_LDADD = \
139be57d 575 libsystemd-basic.la \
0b7964b8
LP
576 $(DBUS_LIBS)
577
4927fcae
LP
578systemd_update_utmp_SOURCES = \
579 src/update-utmp.c \
580 src/dbus-common.c \
581 src/utmp-wtmp.c
582
583systemd_update_utmp_CFLAGS = \
584 $(AM_CFLAGS) \
585 $(DBUS_CFLAGS) \
586 $(AUDIT_CFLAGS)
587
588systemd_update_utmp_LDADD = \
589 libsystemd-basic.la \
590 $(DBUS_LIBS) \
591 $(AUDIT_LIBS)
592
ca2cab5d
LP
593systemd_random_seed_SOURCES = \
594 src/random-seed.c
595
596systemd_random_seed_CFLAGS = \
597 $(AM_CFLAGS)
598
599systemd_random_seed_LDADD = \
600 libsystemd-basic.la
601
f6144808 602systemd_shutdownd_SOURCES = \
9be9828c 603 src/utmp-wtmp.c \
f6144808
LP
604 src/sd-daemon.c \
605 src/shutdownd.c
606
607systemd_shutdownd_CFLAGS = \
608 $(AM_CFLAGS)
609
610systemd_shutdownd_LDADD = \
611 libsystemd-basic.la
612
b2423f1f
LP
613systemd_modules_load_SOURCES = \
614 src/modules-load.c
615
616systemd_modules_load_CFLAGS = \
617 $(AM_CFLAGS)
618
619systemd_modules_load_LDADD = \
620 libsystemd-basic.la
621
97c4a07d
LP
622systemd_vconsole_setup_SOURCES = \
623 src/vconsole-setup.c
624
625systemd_vconsole_setup_CFLAGS = \
626 $(AM_CFLAGS)
627
628systemd_vconsole_setup_LDADD = \
629 libsystemd-basic.la
630
449ddb2d
LP
631systemd_remount_api_vfs_SOURCES = \
632 src/remount-api-vfs.c \
633 src/mount-setup.c
634
635systemd_remount_api_vfs_CFLAGS = \
636 $(AM_CFLAGS)
637
638systemd_remount_api_vfs_LDADD = \
639 libsystemd-basic.la
640
8e274523 641systemd_cgroups_agent_SOURCES = \
3c661fad
LP
642 src/cgroups-agent.c \
643 src/dbus-common.c
8e274523 644
10e87ee7
LP
645systemd_cgroups_agent_CFLAGS = \
646 $(AM_CFLAGS) \
8e274523
LP
647 $(DBUS_CFLAGS)
648
649systemd_cgroups_agent_LDADD = \
139be57d 650 libsystemd-basic.la \
8e274523
LP
651 $(DBUS_LIBS)
652
addab137
LP
653systemd_kmsg_syslogd_SOURCES = \
654 src/kmsg-syslogd.c \
655 src/sd-daemon.c \
656 src/fdset.c
657
658systemd_kmsg_syslogd_CFLAGS = \
659 $(AM_CFLAGS)
660
661systemd_kmsg_syslogd_LDADD = \
662 libsystemd-basic.la
663
7e4249b9
LP
664systemctl_SOURCES = \
665 src/systemctl.c \
9a1ac7b9 666 src/utmp-wtmp.c \
ab35fb1b 667 src/dbus-common.c \
ee5762e3
LP
668 src/path-lookup.c \
669 src/sd-daemon.c \
c6c18be3 670 src/cgroup-show.c \
d06dacd0
LP
671 src/cgroup-util.c \
672 src/exit-status.c
139be57d
LP
673
674systemctl_CFLAGS = \
675 $(AM_CFLAGS) \
35d2e7ec 676 $(DBUS_CFLAGS)
7e4249b9 677
139be57d
LP
678systemctl_LDADD = \
679 libsystemd-basic.la \
35d2e7ec 680 $(DBUS_LIBS)
7e4249b9 681
4a2a8b5a
LP
682systemd_notify_SOURCES = \
683 src/notify.c \
139be57d
LP
684 src/sd-daemon.c
685
686systemd_notify_LDADD = \
687 libsystemd-basic.la
4a2a8b5a 688
490aed58
LP
689systemd_ask_password_SOURCES = \
690 src/ask-password.c
691
692systemd_ask_password_LDADD = \
693 libsystemd-basic.la
694
695systemd_reply_password_SOURCES = \
696 src/reply-password.c
697
698systemd_reply_password_LDADD = \
699 libsystemd-basic.la
700
fa776d8e 701systemd_cgls_SOURCES = \
d04247cf 702 src/cgls.c \
c6c18be3
LP
703 src/cgroup-show.c \
704 src/cgroup-util.c
fa776d8e
LP
705
706systemd_cgls_CFLAGS = \
35d2e7ec 707 $(AM_CFLAGS)
c6c18be3
LP
708
709systemd_cgls_LDADD = \
35d2e7ec 710 libsystemd-basic.la
fa776d8e 711
47be870b 712systemadm_SOURCES = \
e99e38bb
LP
713 src/systemadm.vala \
714 src/systemd-interfaces.vala
47be870b 715
10e87ee7
LP
716systemadm_CFLAGS = \
717 $(AM_CFLAGS) \
718 $(DBUSGLIB_CFLAGS) \
719 $(GTK_CFLAGS) \
720 -Wno-unused-variable \
721 -Wno-unused-function \
722 -Wno-shadow \
723 -Wno-format-nonliteral
724
725systemadm_VALAFLAGS = \
726 --pkg=dbus-glib-1 \
727 --pkg=posix \
728 --pkg=gtk+-2.0 \
729 -g
730
139be57d
LP
731systemadm_LDADD = \
732 $(DBUSGLIB_LIBS) \
733 $(GTK_LIBS)
c1e1601e 734
490aed58
LP
735systemd_ask_password_agent_SOURCES = \
736 src/ask-password-agent.vala
737
738systemd_ask_password_agent_CFLAGS = \
739 $(AM_CFLAGS) \
740 $(DBUSGLIB_CFLAGS) \
741 $(GTK_CFLAGS) \
742 -Wno-unused-variable \
743 -Wno-unused-function \
744 -Wno-shadow \
745 -Wno-format-nonliteral
746
747systemd_ask_password_agent_VALAFLAGS = \
748 --pkg=dbus-glib-1 \
749 --pkg=posix \
750 --pkg=gtk+-2.0 \
751 --pkg=linux \
752 --pkg=gio-unix-2.0 \
efb3237e 753 --pkg=libnotify \
490aed58
LP
754 -g
755
756systemd_ask_password_agent_LDADD = \
757 $(DBUSGLIB_LIBS) \
758 $(GTK_LIBS)
759
8c6db833
LP
760pam_systemd_la_SOURCES = \
761 src/pam-module.c \
762 src/cgroup-util.c \
763 src/sd-daemon.c
764
765pam_systemd_la_CFLAGS = \
35d2e7ec 766 $(AM_CFLAGS)
8c6db833
LP
767 -fvisibility=hidden
768
769pam_systemd_la_LDFLAGS = \
770 -module \
771 -export-dynamic \
772 -avoid-version \
773 -shared \
774 -export-symbols-regex '^pam_sm_.*'
775
776pam_systemd_la_LIBADD = \
777 libsystemd-basic.la \
35d2e7ec 778 $(PAM_LIBS)
8c6db833 779
5e6afdd3 780SED_PROCESS = \
a00e4879 781 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1136a371 782 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
5e6afdd3 783 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
1136a371 784 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
8c6db833
LP
785 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
786 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
787 -e 's,@systemunitdir\@,$(systemunitdir),g' \
788 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
789 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
790 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
791 -e 's,@prefix\@,$(prefix),g' \
2d02719c 792 < $< > $@
70fcff31 793
9f2c5942 794units/%: units/%.in Makefile
5e6afdd3
LP
795 $(SED_PROCESS)
796
2a3d6294 797man/%: man/%.in Makefile
5e6afdd3
LP
798 $(SED_PROCESS)
799
8c6db833
LP
800%.pc: %.pc.in Makefile
801 $(SED_PROCESS)
802
fb1bd35a 803M4_PROCESS_SYSTEM = \
a00e4879 804 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
9f2c5942 805 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
fb1bd35a
LP
806
807M4_PROCESS_SESSION = \
a00e4879 808 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
9f2c5942 809 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
5e6afdd3 810
9f2c5942 811units/%: units/%.m4 Makefile
fb1bd35a 812 $(M4_PROCESS_SYSTEM)
5e6afdd3 813
9f2c5942 814units/session/%: units/%.m4 Makefile
fb1bd35a 815 $(M4_PROCESS_SESSION)
a7b6f8e5 816
c1e1601e 817CLEANFILES = \
6f6083dc
LP
818 $(nodist_systemunit_DATA) \
819 $(nodist_sessionunit_DATA) \
820 $(nodist_man_MANS) \
821 ${XML_IN_FILES:.xml.in=.html} \
822 $(pkgconfigdata_DATA)
4697132b 823
42e39f0b
LP
824if HAVE_VALAC
825CLEANFILES += \
6f6083dc 826 ${systemadm_SOURCES:.vala=.c}
42e39f0b
LP
827endif
828
c3bd7322 829if HAVE_XSLTPROC
c6365917
LP
830XSLTPROC_FLAGS = \
831 --nonet \
832 --param funcsynopsis.style "'ansi'"
833
9f2c5942 834XSLTPROC_PROCESS_MAN = \
a00e4879 835 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
c6365917 836 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
d1ab0ca0 837
9f2c5942 838XSLTPROC_PROCESS_MAN_IN = \
a00e4879 839 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
c6365917 840 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
9f2c5942
LP
841 mv ${@:.in=} $@
842
843XSLTPROC_PROCESS_HTML = \
a00e4879 844 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
c6365917 845 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
d1ab0ca0 846
9f2c5942 847XSLTPROC_PROCESS_HTML_IN = \
a00e4879 848 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
c6365917 849 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
9f2c5942
LP
850 mv ${@:.in=} $@
851
6f6083dc 852man/%.1: man/%.xml
f9378423
LP
853 $(XSLTPROC_PROCESS_MAN)
854
6f6083dc 855man/%.1.in: man/%.xml.in
f9378423
LP
856 $(XSLTPROC_PROCESS_MAN)
857
6f6083dc 858man/%.3: man/%.xml
359957ee
LP
859 $(XSLTPROC_PROCESS_MAN)
860
6f6083dc 861man/%.3.in: man/%.xml.in
359957ee
LP
862 $(XSLTPROC_PROCESS_MAN)
863
9f2c5942
LP
864man/%.5: man/%.xml
865 $(XSLTPROC_PROCESS_MAN)
866
867man/%.5.in: man/%.xml.in
868 $(XSLTPROC_PROCESS_MAN)
869
870man/%.7: man/%.xml
871 $(XSLTPROC_PROCESS_MAN)
872
873man/%.7.in: man/%.xml.in
874 $(XSLTPROC_PROCESS_MAN_IN)
875
f9378423
LP
876man/%.8: man/%.xml
877 $(XSLTPROC_PROCESS_MAN)
878
879man/%.8.in: man/%.xml.in
880 $(XSLTPROC_PROCESS_MAN_IN)
881
9f2c5942
LP
882man/%.html: man/%.xml
883 $(XSLTPROC_PROCESS_HTML)
884
885man/%.html.in: man/%.xml.in
886 $(XSLTPROC_PROCESS_HTML_IN)
887
d1ab0ca0
LP
888CLEANFILES += \
889 $(dist_man_MANS) \
6f6083dc
LP
890 ${nodist_man_MANS:=.in} \
891 ${XML_FILES:.xml=.html} \
892 ${XML_IN_FILES:.xml.in=.html.in}
c3bd7322 893endif
d1ab0ca0 894
4288f619 895org.freedesktop.systemd1.%.xml: systemd
4627d396 896 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
4288f619 897
6f6083dc
LP
898CLEANFILES += \
899 $(dbusinterface_DATA)
4288f619 900
4697132b 901install-data-hook:
64c1b5bf 902 $(MKDIR_P) -m 0755 \
43aa226d
LP
903 $(DESTDIR)$(systemunitdir) \
904 $(DESTDIR)$(sessionunitdir) \
5e6afdd3 905 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
f92a18f5 906 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
cd6d0a45
LP
907 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
908 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
909 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
910 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
911 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
912 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
64c1b5bf 913 $(DESTDIR)$(pkgsysconfdir)/system \
5e6afdd3
LP
914 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
915 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
916 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
64c1b5bf 917 $(DESTDIR)$(pkgsysconfdir)/session \
e82e442b 918 $(DESTDIR)$(sysconfdir)/xdg/systemd
e9da3678
LP
919 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
920 rm -f session && \
5e6afdd3
LP
921 $(LN_S) $(pkgsysconfdir)/session session )
922 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
a145090c 923 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
5e6afdd3 924 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
a145090c
LP
925 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
926 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
cd6d0a45
LP
927 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
928 rm -f systemd-update-utmp-runlevel.service && \
929 $(LN_S) ../systemd-update-utmp-runlevel.service )
930 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
931 rm -f systemd-update-utmp-runlevel.service && \
932 $(LN_S) ../systemd-update-utmp-runlevel.service )
933 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
934 rm -f systemd-update-utmp-runlevel.service && \
935 $(LN_S) ../systemd-update-utmp-runlevel.service )
936 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
937 rm -f systemd-update-utmp-runlevel.service && \
938 $(LN_S) ../systemd-update-utmp-runlevel.service )
939 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
940 rm -f systemd-update-utmp-runlevel.service && \
941 $(LN_S) ../systemd-update-utmp-runlevel.service )
942 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
d3f09cf3 943 rm -f systemd-update-utmp-shutdown.service \
7376cffd 944 hwclock-save.service \
d3f09cf3
KS
945 systemd-random-seed-save.service && \
946 $(LN_S) ../systemd-update-utmp-shutdown.service && \
7376cffd 947 $(LN_S) ../hwclock-save.service && \
d3f09cf3 948 $(LN_S) ../systemd-random-seed-save.service )
70449379 949 ( cd $(DESTDIR)$(sessionunitdir) && \
da78e1b4 950 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
8c4a3079
LP
951 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
952 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
953 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
da78e1b4
LP
954 $(LN_S) $(systemunitdir)/swap.target swap.target && \
955 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
956 $(LN_S) $(systemunitdir)/printer.target printer.target)
5e6afdd3 957 ( cd $(DESTDIR)$(systemunitdir) && \
c88f64bd 958 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
5e6afdd3
LP
959 $(LN_S) poweroff.target runlevel0.target && \
960 $(LN_S) rescue.target runlevel1.target && \
c88f64bd
LP
961 $(LN_S) multi-user.target runlevel2.target && \
962 $(LN_S) multi-user.target runlevel3.target && \
963 $(LN_S) multi-user.target runlevel4.target && \
964 $(LN_S) graphical.target runlevel5.target && \
5e6afdd3
LP
965 $(LN_S) reboot.target runlevel6.target )
966 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
967 rm -f default.target ctrl-alt-del.target kbrequest.target && \
968 $(LN_S) $(systemunitdir)/graphical.target default.target && \
969 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
c88f64bd 970 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target )
5e6afdd3 971 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
b2bb3dbe 972 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
5e6afdd3
LP
973 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
974 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
975 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
976 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
977 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
b2bb3dbe 978 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
5e6afdd3 979 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
f92a18f5
LP
980 rm -f getty.target remote-fs.target && \
981 $(LN_S) $(systemunitdir)/getty.target getty.target && \
982 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
983 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
6d526de2
LP
984 rm -f dev-hugepages.automount \
985 dev-mqueue.automount \
986 proc-sys-fs-binfmt_misc.automount \
987 sys-kernel-debug.automount \
f0a73e24 988 sys-kernel-security.automount \
d3f09cf3
KS
989 systemd-vconsole-setup.service \
990 systemd-modules-load.service \
991 systemd-random-seed-load.service \
7376cffd 992 hwclock-load.service \
f9ccc724 993 sysctl.service \
f0a73e24
LP
994 tmpwatch.timer \
995 tmpwatch.service && \
670802d4
LP
996 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
997 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
998 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
6d526de2 999 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
f0a73e24 1000 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
d3f09cf3
KS
1001 $(LN_S) ../systemd-vconsole-setup.service && \
1002 $(LN_S) ../systemd-modules-load.service && \
1003 $(LN_S) ../systemd-random-seed-load.service && \
7376cffd 1004 $(LN_S) ../hwclock-load.service && \
f9ccc724 1005 $(LN_S) ../sysctl.service && \
f0a73e24
LP
1006 $(LN_S) ../tmpwatch.timer && \
1007 $(LN_S) ../tmpwatch.service )
d122948d
LP
1008 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1009 rm -f org.freedesktop.systemd1.service && \
1010 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
5e6afdd3 1011if TARGET_FEDORA
a3723b97 1012 $(MKDIR_P) -m 0755 \
f057408c 1013 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
3cc144eb
LP
1014 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1015 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1016 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1017 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1018 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1e287fe3
LP
1019 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1020 rm -f display-manager.service && \
1021 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
5e6afdd3 1022 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
af65a091 1023 rm -f prefdm.service && \
83698d60 1024 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
5e6afdd3 1025 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
3cc144eb
LP
1026 rm -f rc-local.service && \
1027 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
f057408c
LP
1028 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1029 rm -f single.service && \
1030 $(LN_S) $(systemunitdir)/single.service single.service )
3cc144eb
LP
1031 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1032 rm -f plymouth-quit.service && \
1033 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1034 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
0278dfeb 1035 rm -f plymouth-reboot.service && \
3cc144eb
LP
1036 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1037 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
0278dfeb 1038 rm -f plymouth-poweroff.service && \
3cc144eb
LP
1039 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1040 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
0278dfeb 1041 rm -f plymouth-halt.service && \
3cc144eb 1042 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
5e6afdd3
LP
1043 ( cd $(DESTDIR)$(systemunitdir) && \
1044 rm -f local.service && \
1045 $(LN_S) rc-local.service local.service )
a3723b97 1046 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1afaf573 1047 $(LN_S) halt reboot > /dev/null 2>&1 || true )
5e6afdd3 1048endif
f306f4c4
MAP
1049if TARGET_GENTOO
1050 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1051 rm -f display-manager.service && \
1052 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1053 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
83698d60
LP
1054 rm -f xdm.service && \
1055 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
f306f4c4 1056endif
a5dc0a45
MB
1057if TARGET_DEBIAN
1058 $(MKDIR_P) -m 0755 \
1059 $(DESTDIR)$(systemunitdir)/umount.target.wants
1060 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1061 rm -f umountfs.service umountnfs.service umountroot.service && \
1062 $(LN_S) ../umountfs.service umountfs.service && \
1063 $(LN_S) ../umountnfs.service umountnfs.service && \
1064 $(LN_S) ../umountroot.service umountroot.service )
e082d6c8
MB
1065 ( cd $(DESTDIR)$(systemunitdir) && \
1066 rm -f runlevel5.target && \
1067 $(LN_S) multi-user.target runlevel5.target )
a5dc0a45 1068endif
922cc001 1069if !TARGET_SUSE
f10814d9 1070if !TARGET_DEBIAN
922cc001
LP
1071 ( cd $(DESTDIR)$(systemunitdir) && \
1072 rm -f fsck.target && \
1073 $(LN_S) sysinit.target fsck.target )
1074endif
f10814d9 1075endif
5e6afdd3 1076
d1ab0ca0 1077DISTCHECK_CONFIGURE_FLAGS = \
d2d12cd1
LP
1078 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1079 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1080 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1081 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
8c4a3079 1082 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
8c6db833 1083 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
8c4a3079 1084 --with-rootdir=$$dc_install_base/$(rootdir)
a45f61d7
LP
1085
1086upload: all distcheck
53eff0c7 1087 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
a45f61d7
LP
1088 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1089 scp man/*.html tango:public/systemd-man/
1090
1091git-tag:
1092 git tag "v$(VERSION)" -m "systemd $(VERSION)"