chiark / gitweb /
445cc1e37e35d7c11186809bc8d2769ff7544929
[elogind.git] / Makefile.am
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
20 SUBDIRS = po
21
22 LIBSYSTEMD_LOGIN_CURRENT=0
23 LIBSYSTEMD_LOGIN_REVISION=0
24 LIBSYSTEMD_LOGIN_AGE=0
25
26 # Dirs of external packages
27 dbuspolicydir=@dbuspolicydir@
28 dbussessionservicedir=@dbussessionservicedir@
29 dbussystemservicedir=@dbussystemservicedir@
30 dbusinterfacedir=@dbusinterfacedir@
31 udevrulesdir=@udevrulesdir@
32 pamlibdir=@pamlibdir@
33 pkgconfigdatadir=$(datadir)/pkgconfig
34 polkitpolicydir=$(datadir)/polkit-1/actions
35 bashcompletiondir=$(sysconfdir)/bash_completion.d
36
37 # Our own, non-special dirs
38 pkgsysconfdir=$(sysconfdir)/systemd
39 userunitdir=$(prefix)/lib/systemd/user
40 tmpfilesdir=$(prefix)/lib/tmpfiles.d
41 usergeneratordir=$(pkglibexecdir)/user-generators
42 pkgincludedir=$(includedir)/systemd
43
44 # And these are the special ones for /
45 rootdir=@rootdir@
46 rootbindir=$(rootdir)/bin
47 rootlibexecdir=$(rootdir)/lib/systemd
48 systemgeneratordir=$(rootlibexecdir)/system-generators
49 systemshutdowndir=$(rootlibexecdir)/system-shutdown
50 systemunitdir=$(rootdir)/lib/systemd/system
51
52 AM_CPPFLAGS = \
53         -include $(top_builddir)/config.h \
54         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
55         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
56         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
57         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
58         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
59         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
60         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
61         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
62         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
63         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
64         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
65         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
66         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
67         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
68         -DRUNTIME_DIR=\"/run\" \
69         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
70         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
71         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
72         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
73         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
74         -I $(top_srcdir)/src
75
76 if TARGET_GENTOO
77 AM_CPPFLAGS += \
78         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
79         -DKBD_SETFONT=\"/usr/bin/setfont\" \
80         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
81 else
82 if TARGET_ARCH
83 AM_CPPFLAGS += \
84         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
85         -DKBD_SETFONT=\"/usr/bin/setfont\" \
86         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
87 else
88 if TARGET_FRUGALWARE
89 AM_CPPFLAGS += \
90         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
91         -DKBD_SETFONT=\"/usr/bin/setfont\" \
92         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
93 else
94 if TARGET_MANDRIVA
95 AM_CPPFLAGS += \
96         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
97         -DKBD_SETFONT=\"/bin/setfont\" \
98         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
99 else
100 if TARGET_MEEGO
101 AM_CPPFLAGS += \
102         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
103         -DKBD_SETFONT=\"/bin/setfont\" \
104         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
105 else
106 if TARGET_ANGSTROM
107 AM_CPPFLAGS += \
108         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
109         -DKBD_SETFONT=\"/usr/bin/setfont\" \
110         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
111 else
112 AM_CPPFLAGS += \
113         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
114         -DKBD_SETFONT=\"/bin/setfont\" \
115         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
116 endif
117 endif
118 endif
119 endif
120 endif
121 endif
122
123 rootbin_PROGRAMS = \
124         systemd \
125         systemctl \
126         systemd-loginctl \
127         systemd-notify \
128         systemd-ask-password \
129         systemd-tty-ask-password-agent \
130         systemd-tmpfiles \
131         systemd-machine-id-setup
132
133 bin_PROGRAMS = \
134         systemd-cgls \
135         systemd-stdio-bridge \
136         systemd-nspawn
137
138 dist_bin_SCRIPTS = \
139         src/systemd-analyze
140
141 if HAVE_GTK
142 bin_PROGRAMS += \
143         systemadm \
144         systemd-gnome-ask-password-agent
145 endif
146
147 rootlibexec_PROGRAMS = \
148         systemd-logger \
149         systemd-cgroups-agent \
150         systemd-initctl \
151         systemd-update-utmp \
152         systemd-random-seed \
153         systemd-shutdownd \
154         systemd-shutdown \
155         systemd-modules-load \
156         systemd-remount-api-vfs \
157         systemd-kmsg-syslogd \
158         systemd-vconsole-setup \
159         systemd-reply-password \
160         systemd-readahead-collect \
161         systemd-readahead-replay \
162         systemd-user-sessions \
163         systemd-fsck \
164         systemd-quotacheck \
165         systemd-timestamp \
166         systemd-ac-power \
167         systemd-detect-virt \
168         systemd-sysctl \
169         systemd-hostnamed \
170         systemd-localed \
171         systemd-timedated \
172         systemd-logind \
173         systemd-uaccess
174
175 if ENABLE_BINFMT
176 rootlibexec_PROGRAMS += \
177         systemd-binfmt
178 endif
179
180 systemgenerator_PROGRAMS = \
181         systemd-getty-generator
182
183 if HAVE_LIBCRYPTSETUP
184 rootlibexec_PROGRAMS += \
185         systemd-cryptsetup
186
187 systemgenerator_PROGRAMS += \
188         systemd-cryptsetup-generator
189 endif
190
191 lib_LTLIBRARIES = \
192         libsystemd-login.la
193
194 pkginclude_HEADERS = \
195         src/sd-login.h
196
197 noinst_PROGRAMS = \
198         test-engine \
199         test-job-type \
200         test-ns \
201         test-loopback \
202         test-hostname \
203         test-daemon \
204         test-cgroup \
205         test-env-replace \
206         test-strv \
207         test-login
208
209 if HAVE_PAM
210 pamlib_LTLIBRARIES = \
211         pam_systemd.la
212 endif
213
214 dist_pkgsysconf_DATA = \
215         src/system.conf \
216         src/user.conf \
217         src/systemd-logind.conf
218
219 dist_dbuspolicy_DATA = \
220         src/org.freedesktop.systemd1.conf \
221         src/org.freedesktop.hostname1.conf \
222         src/org.freedesktop.locale1.conf \
223         src/org.freedesktop.timedate1.conf \
224         src/org.freedesktop.login1.conf
225
226 dist_dbussystemservice_DATA = \
227         src/org.freedesktop.systemd1.service \
228         src/org.freedesktop.hostname1.service \
229         src/org.freedesktop.locale1.service \
230         src/org.freedesktop.timedate1.service \
231         src/org.freedesktop.login1.service
232
233 dist_udevrules_DATA = \
234         src/70-uaccess.rules \
235         src/71-seat.rules \
236         src/99-systemd.rules
237
238 nodist_udevrules_DATA = \
239         src/73-seat-late.rules
240
241 dbusinterface_DATA = \
242         org.freedesktop.systemd1.Manager.xml \
243         org.freedesktop.systemd1.Job.xml \
244         org.freedesktop.systemd1.Unit.xml \
245         org.freedesktop.systemd1.Service.xml \
246         org.freedesktop.systemd1.Socket.xml \
247         org.freedesktop.systemd1.Timer.xml \
248         org.freedesktop.systemd1.Target.xml \
249         org.freedesktop.systemd1.Device.xml \
250         org.freedesktop.systemd1.Mount.xml \
251         org.freedesktop.systemd1.Automount.xml \
252         org.freedesktop.systemd1.Snapshot.xml \
253         org.freedesktop.systemd1.Swap.xml \
254         org.freedesktop.systemd1.Path.xml \
255         org.freedesktop.hostname1.xml \
256         org.freedesktop.locale1.xml \
257         org.freedesktop.timedate1.xml
258
259 dist_bashcompletion_DATA = \
260         src/systemctl-bash-completion.sh
261
262 dist_tmpfiles_DATA = \
263         tmpfiles.d/systemd.conf \
264         tmpfiles.d/x11.conf
265
266 if HAVE_SYSV_COMPAT
267 dist_tmpfiles_DATA += \
268         tmpfiles.d/legacy.conf
269 endif
270
271 dist_systemunit_DATA = \
272         units/graphical.target \
273         units/multi-user.target \
274         units/emergency.service \
275         units/emergency.target \
276         units/sysinit.target \
277         units/basic.target \
278         units/getty.target \
279         units/halt.target \
280         units/kexec.target \
281         units/local-fs.target \
282         units/remote-fs.target \
283         units/cryptsetup.target \
284         units/network.target \
285         units/nss-lookup.target \
286         units/mail-transfer-agent.target \
287         units/http-daemon.target \
288         units/poweroff.target \
289         units/reboot.target \
290         units/rescue.target \
291         units/rpcbind.target \
292         units/time-sync.target \
293         units/shutdown.target \
294         units/final.target \
295         units/umount.target \
296         units/sigpwr.target \
297         units/sockets.target \
298         units/swap.target \
299         units/systemd-initctl.socket \
300         units/systemd-logger.socket \
301         units/systemd-shutdownd.socket \
302         units/syslog.socket \
303         units/dev-hugepages.automount \
304         units/dev-hugepages.mount \
305         units/dev-mqueue.automount \
306         units/dev-mqueue.mount \
307         units/sys-kernel-debug.automount \
308         units/sys-kernel-debug.mount \
309         units/sys-kernel-security.automount \
310         units/sys-kernel-security.mount \
311         units/var-run.mount \
312         units/media.mount \
313         units/remount-rootfs.service \
314         units/printer.target \
315         units/sound.target \
316         units/bluetooth.target \
317         units/smartcard.target \
318         units/systemd-readahead-done.timer \
319         units/systemd-tmpfiles-clean.timer \
320         units/quotaon.service \
321         units/systemd-ask-password-wall.path \
322         units/systemd-ask-password-console.path \
323         units/syslog.target
324
325 if HAVE_SYSV_COMPAT
326 dist_systemunit_DATA += \
327         units/var-lock.mount
328 endif
329
330 if ENABLE_BINFMT
331 dist_systemunit_DATA += \
332         units/proc-sys-fs-binfmt_misc.automount \
333         units/proc-sys-fs-binfmt_misc.mount
334 endif
335
336 nodist_systemunit_DATA = \
337         units/getty@.service \
338         units/serial-getty@.service \
339         units/console-shell.service \
340         units/systemd-initctl.service \
341         units/systemd-logger.service \
342         units/systemd-shutdownd.service \
343         units/systemd-hostnamed.service \
344         units/systemd-localed.service \
345         units/systemd-timedated.service \
346         units/systemd-logind.service \
347         units/systemd-kmsg-syslogd.service \
348         units/systemd-modules-load.service \
349         units/systemd-vconsole-setup.service \
350         units/systemd-remount-api-vfs.service \
351         units/systemd-update-utmp-runlevel.service \
352         units/systemd-update-utmp-shutdown.service \
353         units/systemd-random-seed-save.service \
354         units/systemd-random-seed-load.service \
355         units/systemd-readahead-collect.service \
356         units/systemd-readahead-replay.service \
357         units/systemd-readahead-done.service \
358         units/systemd-tmpfiles-setup.service \
359         units/systemd-tmpfiles-clean.service \
360         units/systemd-user-sessions.service \
361         units/systemd-ask-password-wall.service \
362         units/systemd-ask-password-console.service \
363         units/systemd-sysctl.service \
364         units/halt.service \
365         units/poweroff.service \
366         units/reboot.service \
367         units/kexec.service \
368         units/fsck@.service \
369         units/fsck-root.service \
370         units/quotacheck.service \
371         units/rescue.service \
372         units/user@.service
373
374 if ENABLE_BINFMT
375 nodist_systemunit_DATA += \
376         units/systemd-binfmt.service
377 endif
378
379 dist_userunit_DATA = \
380         units/user/default.target \
381         units/user/exit.target
382
383 nodist_userunit_DATA = \
384         units/user/exit.service
385
386 EXTRA_DIST = \
387         units/getty@.service.m4 \
388         units/serial-getty@.service.m4 \
389         units/console-shell.service.m4 \
390         units/rescue.service.m4 \
391         units/systemd-initctl.service.in \
392         units/systemd-logger.service.in \
393         units/systemd-shutdownd.service.in \
394         units/systemd-hostnamed.service.in \
395         units/systemd-localed.service.in \
396         units/systemd-timedated.service.in \
397         units/systemd-logind.service.in \
398         units/systemd-kmsg-syslogd.service.in \
399         units/systemd-modules-load.service.in \
400         units/systemd-vconsole-setup.service.in \
401         units/systemd-remount-api-vfs.service.in \
402         units/systemd-update-utmp-runlevel.service.in \
403         units/systemd-update-utmp-shutdown.service.in \
404         units/systemd-random-seed-save.service.in \
405         units/systemd-random-seed-load.service.in \
406         units/systemd-readahead-collect.service.in \
407         units/systemd-readahead-replay.service.in \
408         units/systemd-readahead-done.service.in \
409         units/systemd-tmpfiles-setup.service.in \
410         units/systemd-tmpfiles-clean.service.in \
411         units/systemd-user-sessions.service.in \
412         units/systemd-ask-password-wall.service.in \
413         units/systemd-ask-password-console.service.in \
414         units/systemd-sysctl.service.in \
415         units/halt.service.in \
416         units/poweroff.service.in \
417         units/reboot.service.in \
418         units/kexec.service.in \
419         units/user/exit.service.in \
420         units/fsck@.service.in \
421         units/fsck-root.service.in \
422         units/quotacheck.service.in \
423         units/user@.service.in \
424         systemd.pc.in \
425         libsystemd-login.pc.in \
426         introspect.awk \
427         src/73-seat-late.rules.in
428
429 if ENABLE_BINFMT
430 EXTRA_DIST += \
431         units/systemd-binfmt.service.in
432 endif
433
434 if TARGET_FEDORA
435 dist_systemunit_DATA += \
436         units/fedora/prefdm.service \
437         units/fedora/rc-local.service \
438         units/fedora/halt-local.service
439 endif
440
441 if TARGET_MANDRIVA
442 dist_systemunit_DATA += \
443         units/mandriva/prefdm.service \
444         units/fedora/rc-local.service \
445         units/fedora/halt-local.service
446 endif
447
448 if TARGET_FRUGALWARE
449 dist_systemunit_DATA += \
450         units/frugalware/display-manager.service
451 endif
452
453 if TARGET_SUSE
454 dist_systemunit_DATA += \
455         units/suse/rc-local.service \
456         units/suse/halt-local.service
457 endif
458
459 if HAVE_PLYMOUTH
460 dist_systemunit_DATA += \
461         units/plymouth-start.service \
462         units/plymouth-read-write.service \
463         units/plymouth-quit.service \
464         units/plymouth-quit-wait.service \
465         units/plymouth-reboot.service \
466         units/plymouth-kexec.service \
467         units/plymouth-poweroff.service \
468         units/plymouth-halt.service \
469         units/systemd-ask-password-plymouth.path
470
471 nodist_systemunit_DATA += \
472         units/systemd-ask-password-plymouth.service
473
474 EXTRA_DIST += \
475         units/systemd-ask-password-plymouth.service.in
476 endif
477
478 dist_doc_DATA = \
479         README \
480         LICENSE \
481         DISTRO_PORTING \
482         src/sd-daemon.h \
483         src/sd-daemon.c \
484         src/sd-readahead.h \
485         src/sd-readahead.c
486
487 pkgconfigdata_DATA = \
488         systemd.pc \
489         libsystemd-login.pc
490
491 # Passed through intltool only
492 polkitpolicy_in_files = \
493         src/org.freedesktop.hostname1.policy.in \
494         src/org.freedesktop.locale1.policy.in \
495         src/org.freedesktop.timedate1.policy.in \
496         src/org.freedesktop.login1.policy.in
497
498 # First passed through sed, followed by intltool
499 polkitpolicy_in_in_files = \
500         src/org.freedesktop.systemd1.policy.in.in
501
502 nodist_polkitpolicy_DATA = \
503         $(polkitpolicy_in_files:.policy.in=.policy) \
504         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
505
506 EXTRA_DIST += \
507         $(polkitpolicy_in_files) \
508         $(polkitpolicy_in_in_files)
509
510 @INTLTOOL_POLICY_RULE@
511
512 noinst_LTLIBRARIES = \
513         libsystemd-basic.la \
514         libsystemd-core.la \
515         libsystemd-daemon.la
516
517 libsystemd_basic_la_SOURCES = \
518         src/util.c \
519         src/label.c \
520         src/hashmap.c \
521         src/set.c \
522         src/strv.c \
523         src/conf-parser.c \
524         src/socket-util.c \
525         src/log.c \
526         src/ratelimit.c \
527         src/exit-status.c
528
529 libsystemd_basic_la_CFLAGS = \
530         $(AM_CFLAGS) \
531         $(SELINUX_CFLAGS)
532
533 libsystemd_basic_la_LIBADD = \
534         $(SELINUX_LIBS)
535
536 libsystemd_core_la_SOURCES = \
537         src/unit.c \
538         src/job.c \
539         src/manager.c \
540         src/path-lookup.c \
541         src/load-fragment.c \
542         src/service.c \
543         src/automount.c \
544         src/mount.c \
545         src/swap.c \
546         src/device.c \
547         src/target.c \
548         src/snapshot.c \
549         src/socket.c \
550         src/timer.c \
551         src/path.c \
552         src/load-dropin.c \
553         src/execute.c \
554         src/utmp-wtmp.c \
555         src/dbus.c \
556         src/dbus-manager.c \
557         src/dbus-unit.c \
558         src/dbus-job.c \
559         src/dbus-service.c \
560         src/dbus-socket.c \
561         src/dbus-timer.c \
562         src/dbus-target.c \
563         src/dbus-mount.c \
564         src/dbus-automount.c \
565         src/dbus-swap.c \
566         src/dbus-snapshot.c \
567         src/dbus-device.c \
568         src/dbus-execute.c \
569         src/dbus-path.c \
570         src/cgroup.c \
571         src/mount-setup.c \
572         src/hostname-setup.c \
573         src/selinux-setup.c \
574         src/loopback-setup.c \
575         src/kmod-setup.c \
576         src/locale-setup.c \
577         src/machine-id-setup.c \
578         src/specifier.c \
579         src/unit-name.c \
580         src/fdset.c \
581         src/namespace.c \
582         src/tcpwrap.c \
583         src/cgroup-util.c \
584         src/condition.c \
585         src/dbus-common.c \
586         src/sd-daemon.c
587
588 libsystemd_core_la_CFLAGS = \
589         $(AM_CFLAGS) \
590         $(DBUS_CFLAGS) \
591         $(UDEV_CFLAGS) \
592         $(LIBWRAP_CFLAGS) \
593         $(PAM_CFLAGS) \
594         $(AUDIT_CFLAGS)
595
596 libsystemd_core_la_LIBADD = \
597         libsystemd-basic.la \
598         $(DBUS_LIBS) \
599         $(UDEV_LIBS) \
600         $(LIBWRAP_LIBS) \
601         $(PAM_LIBS) \
602         $(AUDIT_LIBS)
603
604 libsystemd_daemon_la_SOURCES = \
605         src/sd-daemon.c
606
607 # This is needed because automake is buggy in how it generates the
608 # rules for C programs, but not Vala programs.  We therefore can't
609 # list the .h files as dependencies if we want make dist to work.
610
611 EXTRA_DIST += \
612         ${libsystemd_basic_la_SOURCES:.c=.h} \
613         ${libsystemd_core_la_SOURCES:.c=.h} \
614         ${libsystemd_daemon_la_SOURCES:.c=.h} \
615         src/macro.h \
616         src/def.h \
617         src/ioprio.h \
618         src/missing.h \
619         src/list.h \
620         src/securebits.h \
621         src/linux/auto_dev-ioctl.h \
622         src/linux/fanotify.h \
623         src/initreq.h \
624         src/sd-readahead.h \
625         src/special.h \
626         src/dbus-common.h \
627         src/bus-errors.h \
628         src/cgroup-show.h \
629         src/build.h \
630         src/shutdownd.h \
631         src/umount.h \
632         src/readahead-common.h \
633         src/ask-password-api.h \
634         src/pager.h \
635         src/sysfs-show.h \
636         src/polkit.h \
637         src/logind.h \
638         src/logind-device.h \
639         src/logind-seat.h \
640         src/logind-session.h \
641         src/logind-user.h \
642         src/logind-acl.h \
643         src/dbus-loop.h
644
645 MANPAGES = \
646         man/systemd.1 \
647         man/systemctl.1 \
648         man/systemadm.1 \
649         man/systemd-cgls.1 \
650         man/systemd-nspawn.1 \
651         man/systemd-tmpfiles.8 \
652         man/systemd-notify.1 \
653         man/sd_notify.3 \
654         man/sd_readahead.3 \
655         man/sd_booted.3 \
656         man/sd_listen_fds.3 \
657         man/sd_is_fifo.3 \
658         man/systemd.unit.5 \
659         man/systemd.service.5 \
660         man/systemd.socket.5 \
661         man/systemd.mount.5 \
662         man/systemd.automount.5 \
663         man/systemd.swap.5 \
664         man/systemd.timer.5 \
665         man/systemd.path.5 \
666         man/systemd.target.5 \
667         man/systemd.device.5 \
668         man/systemd.snapshot.5 \
669         man/systemd.exec.5 \
670         man/daemon.7 \
671         man/sd-daemon.7 \
672         man/sd-readahead.7 \
673         man/runlevel.8 \
674         man/telinit.8 \
675         man/halt.8 \
676         man/shutdown.8 \
677         man/pam_systemd.8 \
678         man/systemd.conf.5 \
679         man/systemd-logind.conf.5 \
680         man/tmpfiles.d.5 \
681         man/hostname.5 \
682         man/machine-id.5 \
683         man/vconsole.conf.5 \
684         man/locale.conf.5 \
685         man/os-release.5 \
686         man/machine-info.5 \
687         man/modules-load.d.5 \
688         man/sysctl.d.5 \
689         man/systemd-ask-password.1 \
690         man/systemd-loginctl.1
691
692 if ENABLE_BINFMT
693 MANPAGES += \
694         man/binfmt.d.5
695 endif
696
697 MANPAGES_ALIAS = \
698         man/reboot.8 \
699         man/poweroff.8 \
700         man/sd_is_socket.3 \
701         man/sd_is_socket_unix.3 \
702         man/sd_is_socket_inet.3 \
703         man/sd_notifyf.3 \
704         man/init.1
705
706 man/reboot.8: man/halt.8
707 man/poweroff.8: man/halt.8
708 man/sd_is_socket.3: man/sd_is_fifo.3
709 man/sd_is_socket_unix.3: man/sd_is_fifo.3
710 man/sd_is_socket_inet.3: man/sd_is_fifo.3
711 man/sd_notifyf.3: man/sd_notify.3
712 man/init.1: man/systemd.1
713
714 dist_man_MANS = \
715         $(MANPAGES) \
716         $(MANPAGES_ALIAS)
717
718 nodist_man_MANS = \
719         man/systemd.special.7
720
721 XML_FILES = \
722         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
723
724 XML_IN_FILES = \
725         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
726
727 dist_noinst_DATA = \
728         ${XML_FILES:.xml=.html}
729
730 nodist_noinst_DATA = \
731         ${XML_IN_FILES:.xml.in=.html}
732
733 EXTRA_DIST += \
734         $(XML_FILES) \
735         $(XML_IN_FILES) \
736         ${nodist_man_MANS:=.in} \
737         ${XML_IN_FILES:.xml.in=.html.in}
738
739 systemd_SOURCES = \
740         src/main.c
741
742 systemd_CFLAGS = \
743         $(AM_CFLAGS) \
744         $(DBUS_CFLAGS) \
745         $(UDEV_CFLAGS)
746
747 systemd_LDADD = \
748         libsystemd-core.la
749
750 test_engine_SOURCES = \
751         src/test-engine.c
752
753 test_engine_CFLAGS = $(systemd_CFLAGS)
754 test_engine_LDADD = $(systemd_LDADD)
755
756 test_job_type_SOURCES = \
757         src/test-job-type.c
758
759 test_job_type_CFLAGS = $(systemd_CFLAGS)
760 test_job_type_LDADD = $(systemd_LDADD)
761
762 test_ns_SOURCES = \
763         src/test-ns.c
764
765 test_ns_CFLAGS = $(systemd_CFLAGS)
766 test_ns_LDADD = $(systemd_LDADD)
767
768 test_loopback_SOURCES = \
769         src/test-loopback.c \
770         src/loopback-setup.c
771
772 test_loopback_LDADD = \
773         libsystemd-basic.la
774
775 test_hostname_SOURCES = \
776         src/test-hostname.c \
777         src/hostname-setup.c
778
779 test_hostname_LDADD = \
780         libsystemd-basic.la
781
782 test_daemon_SOURCES = \
783         src/test-daemon.c
784
785 test_daemon_LDADD = \
786         libsystemd-basic.la \
787         libsystemd-daemon.la
788
789 test_cgroup_SOURCES = \
790         src/test-cgroup.c \
791         src/cgroup-util.c
792
793 test_cgroup_CFLAGS = \
794         $(AM_CFLAGS)
795
796 test_cgroup_LDADD = \
797         libsystemd-basic.la
798
799 test_env_replace_SOURCES = \
800         src/test-env-replace.c
801
802 test_env_replace_CFLAGS = \
803         $(AM_CFLAGS)
804
805 test_env_replace_LDADD = \
806         libsystemd-basic.la
807
808 test_strv_SOURCES = \
809         src/test-strv.c \
810         src/specifier.c
811
812 test_strv_CFLAGS = \
813         $(AM_CFLAGS)
814
815 test_strv_LDADD = \
816         libsystemd-basic.la
817
818 test_login_SOURCES = \
819         src/test-login.c
820
821 test_login_CFLAGS = \
822         $(AM_CFLAGS)
823
824 test_login_LDADD = \
825         libsystemd-basic.la \
826         libsystemd-login.la
827
828 systemd_logger_SOURCES = \
829         src/logger.c \
830         src/tcpwrap.c
831
832 systemd_logger_LDADD = \
833         libsystemd-basic.la \
834         libsystemd-daemon.la \
835         $(LIBWRAP_LIBS)
836
837 systemd_initctl_SOURCES = \
838         src/initctl.c \
839         src/dbus-common.c
840
841 systemd_initctl_CFLAGS = \
842         $(AM_CFLAGS) \
843         $(DBUS_CFLAGS)
844
845 systemd_initctl_LDADD = \
846         libsystemd-basic.la \
847         libsystemd-daemon.la \
848         $(DBUS_LIBS)
849
850 systemd_update_utmp_SOURCES = \
851         src/update-utmp.c \
852         src/dbus-common.c \
853         src/utmp-wtmp.c
854
855 systemd_update_utmp_CFLAGS = \
856         $(AM_CFLAGS) \
857         $(DBUS_CFLAGS) \
858         $(AUDIT_CFLAGS)
859
860 systemd_update_utmp_LDADD = \
861         libsystemd-basic.la \
862         $(DBUS_LIBS) \
863         $(AUDIT_LIBS)
864
865 systemd_random_seed_SOURCES = \
866         src/random-seed.c
867
868 systemd_random_seed_CFLAGS = \
869         $(AM_CFLAGS)
870
871 systemd_random_seed_LDADD = \
872         libsystemd-basic.la
873
874 systemd_shutdownd_SOURCES = \
875         src/utmp-wtmp.c \
876         src/shutdownd.c
877
878 systemd_shutdownd_CFLAGS = \
879         $(AM_CFLAGS)
880
881 systemd_shutdownd_LDADD = \
882         libsystemd-basic.la \
883         libsystemd-daemon.la
884
885 systemd_hostnamed_SOURCES = \
886         src/hostnamed.c \
887         src/dbus-common.c \
888         src/polkit.c
889
890 systemd_hostnamed_CFLAGS = \
891         $(AM_CFLAGS) \
892         $(DBUS_CFLAGS)
893
894 systemd_hostnamed_LDADD = \
895         libsystemd-basic.la \
896         libsystemd-daemon.la \
897         $(DBUS_LIBS)
898
899 systemd_localed_SOURCES = \
900         src/localed.c \
901         src/dbus-common.c \
902         src/polkit.c
903
904 systemd_localed_CFLAGS = \
905         $(AM_CFLAGS) \
906         $(DBUS_CFLAGS)
907
908 systemd_localed_LDADD = \
909         libsystemd-basic.la \
910         libsystemd-daemon.la \
911         $(DBUS_LIBS)
912
913 systemd_timedated_SOURCES = \
914         src/timedated.c \
915         src/dbus-common.c \
916         src/polkit.c
917
918 systemd_timedated_CFLAGS = \
919         $(AM_CFLAGS) \
920         $(DBUS_CFLAGS)
921
922 systemd_timedated_LDADD = \
923         libsystemd-basic.la \
924         libsystemd-daemon.la \
925         $(DBUS_LIBS)
926
927 systemd_logind_SOURCES = \
928         src/logind.c \
929         src/logind-dbus.c \
930         src/logind-device.c \
931         src/logind-seat.c \
932         src/logind-seat-dbus.c \
933         src/logind-session.c \
934         src/logind-session-dbus.c \
935         src/logind-user.c \
936         src/logind-user-dbus.c \
937         src/dbus-common.c \
938         src/dbus-loop.c \
939         src/cgroup-util.c \
940         src/polkit.c
941
942 systemd_logind_CFLAGS = \
943         $(AM_CFLAGS) \
944         $(DBUS_CFLAGS) \
945         $(UDEV_CFLAGS) \
946         $(ACL_CFLAGS)
947
948 systemd_logind_LDADD = \
949         libsystemd-basic.la \
950         libsystemd-daemon.la \
951         $(DBUS_LIBS) \
952         $(UDEV_LIBS) \
953         $(ACL_LIBS)
954
955 systemd_uaccess_SOURCES = \
956         src/uaccess.c
957
958 if HAVE_ACL
959 systemd_logind_SOURCES += \
960         src/logind-acl.c
961
962 systemd_uaccess_SOURCES += \
963         src/logind-acl.c
964 endif
965
966 systemd_uaccess_CFLAGS = \
967         $(AM_CFLAGS) \
968         $(UDEV_CFLAGS) \
969         $(ACL_CFLAGS)
970
971 systemd_uaccess_LDADD = \
972         libsystemd-basic.la \
973         libsystemd-daemon.la \
974         $(UDEV_LIBS) \
975         $(ACL_LIBS)
976
977 systemd_shutdown_SOURCES = \
978         src/mount-setup.c \
979         src/umount.c \
980         src/shutdown.c
981
982 systemd_shutdown_CFLAGS = \
983         $(AM_CFLAGS) \
984         $(UDEV_CFLAGS)
985
986 systemd_shutdown_LDADD = \
987         libsystemd-basic.la \
988         $(UDEV_LIBS)
989
990 systemd_modules_load_SOURCES = \
991         src/modules-load.c
992
993 systemd_modules_load_CFLAGS = \
994         $(AM_CFLAGS)
995
996 systemd_modules_load_LDADD = \
997         libsystemd-basic.la
998
999 systemd_tmpfiles_SOURCES = \
1000         src/tmpfiles.c
1001
1002 systemd_tmpfiles_CFLAGS = \
1003         $(AM_CFLAGS)
1004
1005 systemd_tmpfiles_LDADD = \
1006         libsystemd-basic.la
1007
1008 systemd_machine_id_setup_SOURCES = \
1009         src/machine-id-setup.c \
1010         src/machine-id-main.c
1011
1012 systemd_machine_id_setup_CFLAGS = \
1013         $(AM_CFLAGS)
1014
1015 systemd_machine_id_setup_LDADD = \
1016         libsystemd-basic.la
1017
1018 systemd_sysctl_SOURCES = \
1019         src/sysctl.c
1020
1021 systemd_sysctl_CFLAGS = \
1022         $(AM_CFLAGS)
1023
1024 systemd_sysctl_LDADD = \
1025         libsystemd-basic.la
1026
1027 systemd_binfmt_SOURCES = \
1028         src/binfmt.c
1029
1030 systemd_binfmt_CFLAGS = \
1031         $(AM_CFLAGS)
1032
1033 systemd_binfmt_LDADD = \
1034         libsystemd-basic.la
1035
1036 systemd_fsck_SOURCES = \
1037         src/fsck.c \
1038         src/dbus-common.c
1039
1040 systemd_fsck_CFLAGS = \
1041         $(AM_CFLAGS) \
1042         $(UDEV_CFLAGS) \
1043         $(DBUS_CFLAGS)
1044
1045 systemd_fsck_LDADD = \
1046         libsystemd-basic.la \
1047         $(UDEV_LIBS) \
1048         $(DBUS_LIBS)
1049
1050 systemd_quotacheck_SOURCES = \
1051         src/quotacheck.c
1052
1053 systemd_quotacheck_CFLAGS = \
1054         $(AM_CFLAGS)
1055
1056 systemd_quotacheck_LDADD = \
1057         libsystemd-basic.la
1058
1059 systemd_timestamp_SOURCES = \
1060         src/timestamp.c
1061
1062 systemd_timestamp_CFLAGS = \
1063         $(AM_CFLAGS)
1064
1065 systemd_timestamp_LDADD = \
1066         libsystemd-basic.la
1067
1068 systemd_ac_power_SOURCES = \
1069         src/ac-power.c
1070
1071 systemd_ac_power_CFLAGS = \
1072         $(AM_CFLAGS) \
1073         $(UDEV_CFLAGS)
1074
1075 systemd_ac_power_LDADD = \
1076         libsystemd-basic.la \
1077         $(UDEV_LIBS)
1078
1079 systemd_detect_virt_SOURCES = \
1080         src/detect-virt.c
1081
1082 systemd_detect_virt_CFLAGS = \
1083         $(AM_CFLAGS)
1084
1085 systemd_detect_virt_LDADD = \
1086         libsystemd-basic.la
1087
1088 systemd_cryptsetup_SOURCES = \
1089         src/cryptsetup.c \
1090         src/ask-password-api.c
1091
1092 systemd_cryptsetup_CFLAGS = \
1093         $(LIBCRYPTSETUP_CFLAGS) \
1094         $(UDEV_CFLAGS) \
1095         $(AM_CFLAGS)
1096
1097 systemd_cryptsetup_LDADD = \
1098         $(LIBCRYPTSETUP_LIBS) \
1099         $(UDEV_LIBS) \
1100         libsystemd-basic.la
1101
1102 systemd_cryptsetup_generator_SOURCES = \
1103         src/cryptsetup-generator.c \
1104         src/unit-name.c
1105
1106 systemd_cryptsetup_generator_CFLAGS = \
1107         $(AM_CFLAGS)
1108
1109 systemd_cryptsetup_generator_LDADD = \
1110         libsystemd-basic.la
1111
1112 systemd_getty_generator_SOURCES = \
1113         src/getty-generator.c \
1114         src/unit-name.c
1115
1116 systemd_getty_generator_CFLAGS = \
1117         $(AM_CFLAGS)
1118
1119 systemd_getty_generator_LDADD = \
1120         libsystemd-basic.la
1121
1122 systemd_user_sessions_SOURCES = \
1123         src/user-sessions.c \
1124         src/cgroup-util.c
1125
1126 systemd_user_sessions_CFLAGS = \
1127         $(AM_CFLAGS)
1128
1129 systemd_user_sessions_LDADD = \
1130         libsystemd-basic.la
1131
1132 systemd_vconsole_setup_SOURCES = \
1133         src/vconsole-setup.c
1134
1135 systemd_vconsole_setup_CFLAGS = \
1136         $(AM_CFLAGS)
1137
1138 systemd_vconsole_setup_LDADD = \
1139         libsystemd-basic.la
1140
1141 systemd_remount_api_vfs_SOURCES = \
1142         src/remount-api-vfs.c \
1143         src/mount-setup.c \
1144         src/exit-status.c
1145
1146 systemd_remount_api_vfs_CFLAGS = \
1147         $(AM_CFLAGS)
1148
1149 systemd_remount_api_vfs_LDADD = \
1150         libsystemd-basic.la
1151
1152 systemd_cgroups_agent_SOURCES = \
1153         src/cgroups-agent.c \
1154         src/dbus-common.c
1155
1156 systemd_cgroups_agent_CFLAGS = \
1157         $(AM_CFLAGS) \
1158         $(DBUS_CFLAGS)
1159
1160 systemd_cgroups_agent_LDADD = \
1161         libsystemd-basic.la \
1162         $(DBUS_LIBS)
1163
1164 systemd_kmsg_syslogd_SOURCES = \
1165         src/kmsg-syslogd.c \
1166         src/fdset.c
1167
1168 systemd_kmsg_syslogd_CFLAGS = \
1169         $(AM_CFLAGS)
1170
1171 systemd_kmsg_syslogd_LDADD = \
1172         libsystemd-basic.la \
1173         libsystemd-daemon.la
1174
1175 systemctl_SOURCES = \
1176         src/systemctl.c \
1177         src/utmp-wtmp.c \
1178         src/dbus-common.c \
1179         src/path-lookup.c \
1180         src/cgroup-show.c \
1181         src/cgroup-util.c \
1182         src/exit-status.c \
1183         src/unit-name.c \
1184         src/pager.c
1185
1186 systemctl_CFLAGS = \
1187         $(AM_CFLAGS) \
1188         $(DBUS_CFLAGS)
1189
1190 systemctl_LDADD = \
1191         libsystemd-basic.la \
1192         libsystemd-daemon.la \
1193         $(DBUS_LIBS)
1194
1195 systemd_loginctl_SOURCES = \
1196         src/loginctl.c \
1197         src/dbus-common.c \
1198         src/cgroup-show.c \
1199         src/cgroup-util.c \
1200         src/pager.c \
1201         src/sysfs-show.c
1202
1203 systemd_loginctl_CFLAGS = \
1204         $(AM_CFLAGS) \
1205         $(DBUS_CFLAGS) \
1206         $(UDEV_CFLAGS)
1207
1208 systemd_loginctl_LDADD = \
1209         libsystemd-basic.la \
1210         $(DBUS_LIBS) \
1211         $(UDEV_LIBS)
1212
1213 systemd_notify_SOURCES = \
1214         src/notify.c \
1215         src/sd-readahead.c
1216
1217 systemd_notify_LDADD = \
1218         libsystemd-basic.la \
1219         libsystemd-daemon.la
1220
1221 systemd_ask_password_SOURCES = \
1222         src/ask-password.c \
1223         src/ask-password-api.c
1224
1225 systemd_ask_password_LDADD = \
1226         libsystemd-basic.la
1227
1228 systemd_reply_password_SOURCES = \
1229         src/reply-password.c
1230
1231 systemd_reply_password_LDADD = \
1232         libsystemd-basic.la
1233
1234 systemd_readahead_collect_SOURCES = \
1235         src/readahead-collect.c \
1236         src/readahead-common.c
1237
1238 systemd_readahead_collect_CFLAGS = \
1239         $(UDEV_CFLAGS)
1240
1241 systemd_readahead_collect_LDADD = \
1242         libsystemd-basic.la \
1243         libsystemd-daemon.la \
1244         $(UDEV_LIBS)
1245
1246 systemd_readahead_replay_SOURCES = \
1247         src/readahead-replay.c \
1248         src/readahead-common.c
1249
1250 systemd_readahead_replay_CFLAGS = \
1251         $(UDEV_CFLAGS)
1252
1253 systemd_readahead_replay_LDADD = \
1254         libsystemd-basic.la \
1255         libsystemd-daemon.la \
1256         $(UDEV_LIBS)
1257
1258 systemd_cgls_SOURCES = \
1259         src/cgls.c \
1260         src/cgroup-show.c \
1261         src/cgroup-util.c \
1262         src/pager.c
1263
1264 systemd_cgls_CFLAGS = \
1265         $(AM_CFLAGS)
1266
1267 systemd_cgls_LDADD = \
1268         libsystemd-basic.la
1269
1270 systemd_nspawn_SOURCES = \
1271         src/nspawn.c \
1272         src/cgroup-util.c
1273
1274 systemd_nspawn_CFLAGS = \
1275         $(AM_CFLAGS)
1276
1277 systemd_nspawn_LDADD = \
1278         libsystemd-basic.la \
1279         libsystemd-daemon.la
1280
1281 systemd_stdio_bridge_SOURCES = \
1282         src/bridge.c
1283
1284 systemd_stdio_bridge_LDADD = \
1285         libsystemd-basic.la
1286
1287 systemadm_SOURCES = \
1288         src/systemadm.vala \
1289         src/systemd-interfaces.vala
1290
1291 systemadm_CFLAGS = \
1292         $(AM_CFLAGS) \
1293         $(GTK_CFLAGS) \
1294         -Wno-unused-variable \
1295         -Wno-unused-function \
1296         -Wno-shadow \
1297         -Wno-format-nonliteral
1298
1299 systemadm_VALAFLAGS = \
1300         --pkg=posix \
1301         --pkg=gtk+-2.0 \
1302         -g
1303
1304 systemadm_LDADD = \
1305         $(GTK_LIBS)
1306
1307 systemd_gnome_ask_password_agent_SOURCES = \
1308         src/gnome-ask-password-agent.vala
1309
1310 systemd_gnome_ask_password_agent_CFLAGS = \
1311         $(AM_CFLAGS) \
1312         $(LIBNOTIFY_CFLAGS) \
1313         $(GTK_CFLAGS) \
1314         -Wno-unused-variable \
1315         -Wno-unused-function \
1316         -Wno-shadow \
1317         -Wno-format-nonliteral
1318
1319 systemd_gnome_ask_password_agent_VALAFLAGS = \
1320         --pkg=posix \
1321         --pkg=gtk+-2.0 \
1322         --pkg=linux \
1323         --pkg=gio-unix-2.0 \
1324         --pkg=libnotify
1325 if LIBNOTIFY07
1326 systemd_gnome_ask_password_agent_VALAFLAGS += \
1327         -D LIBNOTIFY07
1328 endif
1329 systemd_gnome_ask_password_agent_VALAFLAGS += \
1330         -g
1331
1332 systemd_gnome_ask_password_agent_LDADD = \
1333         $(LIBNOTIFY_LIBS) \
1334         $(GTK_LIBS)
1335
1336 systemd_tty_ask_password_agent_SOURCES = \
1337         src/tty-ask-password-agent.c \
1338         src/ask-password-api.c \
1339         src/utmp-wtmp.c
1340
1341 systemd_tty_ask_password_agent_LDADD = \
1342         libsystemd-basic.la
1343
1344 pam_systemd_la_SOURCES = \
1345         src/pam-module.c \
1346         src/dbus-common.c
1347
1348 pam_systemd_la_CFLAGS = \
1349         $(AM_CFLAGS) \
1350         $(PAM_CFLAGS) \
1351         $(DBUS_CFLAGS) \
1352         -fvisibility=hidden
1353
1354 pam_systemd_la_LDFLAGS = \
1355         -module \
1356         -export-dynamic \
1357         -avoid-version \
1358         -shared \
1359         -export-symbols-regex '^pam_sm_.*'
1360
1361 pam_systemd_la_LIBADD = \
1362         libsystemd-basic.la \
1363         libsystemd-daemon.la \
1364         $(PAM_LIBS) \
1365         $(DBUS_LIBS)
1366
1367 libsystemd_login_la_CFLAGS = \
1368         $(AM_CFLAGS) \
1369         -fvisibility=hidden
1370
1371 libsystemd_login_la_LDFLAGS = \
1372         -shared \
1373         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE)
1374
1375 libsystemd_login_la_SOURCES = \
1376         src/sd-login.c \
1377         src/cgroup-util.c
1378
1379 libsystemd_login_la_LIBADD = \
1380         libsystemd-basic.la
1381
1382 SED_PROCESS = \
1383         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1384         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1385                 -e 's,@rootbindir\@,$(rootbindir),g' \
1386                 -e 's,@bindir\@,$(bindir),g' \
1387                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1388                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1389                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1390                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1391                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1392                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1393                 -e 's,@userunitdir\@,$(userunitdir),g' \
1394                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1395                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1396                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1397                 -e 's,@prefix\@,$(prefix),g' \
1398                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
1399                 -e 's,@libdir\@,$(libdir),g' \
1400                 -e 's,@includedir\@,$(includedir),g' \
1401                 < $< > $@ || rm $@
1402
1403 units/%: units/%.in Makefile
1404         $(SED_PROCESS)
1405
1406 man/%: man/%.in Makefile
1407         $(SED_PROCESS)
1408
1409 %.pc: %.pc.in Makefile
1410         $(SED_PROCESS)
1411
1412 src/%.policy.in: src/%.policy.in.in Makefile
1413         $(SED_PROCESS)
1414
1415 src/%.rules: src/%.rules.in Makefile
1416         $(SED_PROCESS)
1417
1418 M4_PROCESS_SYSTEM = \
1419         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1420         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1421
1422 M4_PROCESS_USER = \
1423         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1424         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1425
1426 units/%: units/%.m4 Makefile
1427         $(M4_PROCESS_SYSTEM)
1428
1429 units/user/%: units/%.m4 Makefile
1430         $(M4_PROCESS_USER)
1431
1432 CLEANFILES = \
1433         $(nodist_systemunit_DATA) \
1434         $(nodist_userunit_DATA) \
1435         $(nodist_man_MANS) \
1436         ${XML_IN_FILES:.xml.in=.html} \
1437         $(pkgconfigdata_DATA) \
1438         $(nodist_polkitpolicy_DATA) \
1439         src/73-seat-late.rules
1440
1441 if HAVE_VALAC
1442 CLEANFILES += \
1443         ${systemadm_SOURCES:.vala=.c}
1444 endif
1445
1446 if HAVE_XSLTPROC
1447 XSLTPROC_FLAGS = \
1448         --nonet \
1449         --param funcsynopsis.style "'ansi'"
1450
1451 XSLTPROC_PROCESS_MAN = \
1452         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1453         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1454
1455 XSLTPROC_PROCESS_MAN_IN = \
1456         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1457         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1458         mv ${@:.in=} $@
1459
1460 XSLTPROC_PROCESS_HTML = \
1461         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1462         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1463
1464 XSLTPROC_PROCESS_HTML_IN = \
1465         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1466         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1467         mv ${@:.in=} $@
1468
1469 man/%.1: man/%.xml
1470         $(XSLTPROC_PROCESS_MAN)
1471
1472 man/%.1.in: man/%.xml.in
1473         $(XSLTPROC_PROCESS_MAN)
1474
1475 man/%.3: man/%.xml
1476         $(XSLTPROC_PROCESS_MAN)
1477
1478 man/%.3.in: man/%.xml.in
1479         $(XSLTPROC_PROCESS_MAN)
1480
1481 man/%.5: man/%.xml
1482         $(XSLTPROC_PROCESS_MAN)
1483
1484 man/%.5.in: man/%.xml.in
1485         $(XSLTPROC_PROCESS_MAN)
1486
1487 man/%.7: man/%.xml
1488         $(XSLTPROC_PROCESS_MAN)
1489
1490 man/%.7.in: man/%.xml.in
1491         $(XSLTPROC_PROCESS_MAN_IN)
1492
1493 man/%.8: man/%.xml
1494         $(XSLTPROC_PROCESS_MAN)
1495
1496 man/%.8.in: man/%.xml.in
1497         $(XSLTPROC_PROCESS_MAN_IN)
1498
1499 man/%.html: man/%.xml
1500         $(XSLTPROC_PROCESS_HTML)
1501
1502 man/%.html.in: man/%.xml.in
1503         $(XSLTPROC_PROCESS_HTML_IN)
1504
1505 CLEANFILES += \
1506         $(dist_man_MANS) \
1507         ${nodist_man_MANS:=.in} \
1508         ${XML_FILES:.xml=.html} \
1509         ${XML_IN_FILES:.xml.in=.html.in}
1510 endif
1511
1512 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1513
1514 org.freedesktop.systemd1.%.xml: systemd
1515         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1516                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1517                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1518
1519 org.freedesktop.hostname1.xml: systemd-hostnamed
1520         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1521                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1522                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1523
1524 org.freedesktop.locale1.xml: systemd-localed
1525         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1526                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1527                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1528
1529 org.freedesktop.timedate1.xml: systemd-timedated
1530         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1531                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1532                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1533
1534 CLEANFILES += \
1535         $(dbusinterface_DATA)
1536
1537 install-data-hook:
1538         $(MKDIR_P) -m 0755 \
1539                 $(DESTDIR)$(tmpfilesdir) \
1540                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1541                 $(DESTDIR)$(prefix)/lib/modules-load.d \
1542                 $(DESTDIR)$(sysconfdir)/modules-load.d \
1543                 $(DESTDIR)$(prefix)/lib/sysctl.d \
1544                 $(DESTDIR)$(sysconfdir)/sysctl.d \
1545                 $(DESTDIR)$(systemshutdowndir) \
1546                 $(DESTDIR)$(systemgeneratordir) \
1547                 $(DESTDIR)$(usergeneratordir)
1548 if ENABLE_BINFMT
1549         $(MKDIR_P) -m 0755 \
1550                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1551                 $(DESTDIR)$(sysconfdir)/binfmt.d
1552 endif
1553         $(MKDIR_P) -m 0755 \
1554                 $(DESTDIR)$(systemunitdir) \
1555                 $(DESTDIR)$(userunitdir) \
1556                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1557                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1558                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1559                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1560                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1561                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1562                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1563                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1564                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1565                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1566                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1567                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1568                 $(DESTDIR)$(pkgsysconfdir)/system \
1569                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1570                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1571                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1572                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1573                 $(DESTDIR)$(pkgsysconfdir)/user \
1574                 $(DESTDIR)$(dbussessionservicedir) \
1575                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1576         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1577                 rm -f user && \
1578                 $(LN_S) $(pkgsysconfdir)/user user )
1579         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1580                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1581                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1582                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1583                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1584                 $(LN_S) ../syslog.socket syslog.socket )
1585         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1586                 rm -f systemd-update-utmp-runlevel.service && \
1587                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1588         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1589                 rm -f systemd-update-utmp-runlevel.service && \
1590                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1591         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1592                 rm -f systemd-update-utmp-runlevel.service && \
1593                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1594         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1595                 rm -f systemd-update-utmp-runlevel.service && \
1596                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1597         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1598                 rm -f systemd-update-utmp-runlevel.service && \
1599                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1600         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1601                 rm -f systemd-update-utmp-shutdown.service \
1602                         systemd-random-seed-save.service && \
1603                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1604                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1605         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1606                 rm -f systemd-remount-api-vfs.service \
1607                         fsck-root.service \
1608                         remount-rootfs.service \
1609                         var-run.mount \
1610                         media.mount && \
1611                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1612                 $(LN_S) ../fsck-root.service fsck-root.service && \
1613                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1614                 $(LN_S) ../var-run.mount var-run.mount && \
1615                 $(LN_S) ../media.mount media.mount )
1616         ( cd $(DESTDIR)$(userunitdir) && \
1617                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
1618                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1619                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1620                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1621                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1622                 $(LN_S) $(systemunitdir)/sound.target sound.target )
1623         ( cd $(DESTDIR)$(systemunitdir) && \
1624                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1625                 $(LN_S) poweroff.target runlevel0.target && \
1626                 $(LN_S) rescue.target runlevel1.target && \
1627                 $(LN_S) multi-user.target runlevel2.target && \
1628                 $(LN_S) multi-user.target runlevel3.target && \
1629                 $(LN_S) multi-user.target runlevel4.target && \
1630                 $(LN_S) graphical.target runlevel5.target && \
1631                 $(LN_S) reboot.target runlevel6.target )
1632         ( cd $(DESTDIR)$(systemunitdir) && \
1633                 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt@.service && \
1634                 $(LN_S) graphical.target default.target && \
1635                 $(LN_S) reboot.target ctrl-alt-del.target && \
1636                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service && \
1637                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \
1638                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service && \
1639                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
1640                 $(LN_S) getty@.service autovt@.service )
1641         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1642                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
1643                 $(LN_S) ../getty.target getty.target && \
1644                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1645                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path && \
1646                 $(LN_S) ../systemd-logind.service systemd-logind.service )
1647         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1648                 rm -f getty@tty1.service && \
1649                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
1650         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1651                 rm -f remote-fs.target && \
1652                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1653         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1654                 rm -f dev-hugepages.automount \
1655                         dev-mqueue.automount \
1656                         sys-kernel-debug.automount \
1657                         sys-kernel-security.automount \
1658                         systemd-vconsole-setup.service \
1659                         systemd-modules-load.service \
1660                         systemd-random-seed-load.service \
1661                         systemd-tmpfiles-setup.service \
1662                         systemd-sysctl.service \
1663                         systemd-ask-password-console.path \
1664                         systemd-kmsg-syslogd.service \
1665                         cryptsetup.target && \
1666                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1667                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1668                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1669                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1670                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1671                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1672                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1673                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1674                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1675                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1676                 $(LN_S) ../systemd-kmsg-syslogd.service && \
1677                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1678 if ENABLE_BINFMT
1679         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1680                 rm -f systemd-binfmt.service \
1681                         proc-sys-fs-binfmt_misc.automount && \
1682                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1683                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1684 endif
1685         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1686                 rm -f systemd-tmpfiles-clean.timer && \
1687                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1688         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1689                 rm -f org.freedesktop.systemd1.service && \
1690                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1691 if HAVE_PLYMOUTH
1692         $(MKDIR_P) -m 0755 \
1693                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1694                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1695                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1696                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1697                 $(DESTDIR)$(systemunitdir)/halt.target.wants
1698         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1699                 rm -f plymouth-start.service plymouth-read-write.service && \
1700                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1701                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1702         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1703                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1704                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1705                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1706         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1707                 rm -f plymouth-reboot.service && \
1708                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1709         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1710                 rm -f plymouth-kexec.service && \
1711                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1712         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1713                 rm -f plymouth-poweroff.service && \
1714                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1715         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1716                 rm -f plymouth-halt.service && \
1717                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1718 endif
1719 if TARGET_MEEGO
1720         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1721         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1722                 rm -f network.target && \
1723                 $(LN_S) $(systemunitdir)/network.target network.target )
1724         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1725                 rm -f * )
1726         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1727                 rm -f * )
1728         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1729                 rm -f * )
1730         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1731                 rm -f * )
1732 endif
1733
1734 if TARGET_FEDORA
1735         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1736         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1737                 rm -f rc-local.service && \
1738                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1739         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1740                 rm -f halt-local.service && \
1741                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1742         ( cd $(DESTDIR)$(systemunitdir) && \
1743                 rm -f display-manager.service single.service && \
1744                 $(LN_S) prefdm.service display-manager.service && \
1745                 $(LN_S) rescue.service single.service )
1746         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1747                 rm -f display-manager.service && \
1748                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1749 endif
1750
1751 if TARGET_MANDRIVA
1752         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1753         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1754                 rm -f rc-local.service && \
1755                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1756         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1757                 rm -f halt-local.service && \
1758                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1759         ( cd $(DESTDIR)$(systemunitdir) && \
1760                 rm -f display-manager.service dm.service single.service && \
1761                 $(LN_S) prefdm.service display-manager.service && \
1762                 $(LN_S) prefdm.service dm.service && \
1763                 $(LN_S) rescue.service single.service )
1764         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1765                 rm -f display-manager.service && \
1766                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1767 endif
1768
1769 if TARGET_DEBIAN_OR_UBUNTU
1770         ( cd $(DESTDIR)$(systemunitdir) && \
1771                 rm -f runlevel5.target && \
1772                 $(LN_S) multi-user.target runlevel5.target )
1773 endif
1774
1775 if TARGET_SUSE
1776         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1777         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1778                 rm -f rc-local.service && \
1779                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1780         ( cd $(DESTDIR)$(systemunitdir) && \
1781                 rm -f local.service && \
1782                 $(LN_S) rc-local.service local.service )
1783         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1784                 rm -f halt-local.service && \
1785                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1786 endif
1787
1788 if HAVE_SYSV_COMPAT
1789         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1790                 rm -f var-lock.mount && \
1791                 $(LN_S) ../var-lock.mount var-lock.mount )
1792 endif
1793
1794 DISTCHECK_CONFIGURE_FLAGS = \
1795         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1796         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1797         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1798         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1799         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1800         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1801         --with-rootdir=$$dc_install_base/$(rootdir)
1802
1803 upload: all distcheck
1804         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1805         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1806         scp man/*.html tango:public/systemd-man/
1807
1808 git-tag:
1809         git tag "v$(VERSION)" -m "systemd $(VERSION)"