chiark / gitweb /
update TODO
[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 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
26 pamlibdir=@pamlibdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28 polkitpolicydir=$(datadir)/polkit-1/actions
29 bashcompletiondir=$(sysconfdir)/bash_completion.d
30
31 # Our own, non-special dirs
32 pkgsysconfdir=$(sysconfdir)/systemd
33 userunitdir=$(pkgdatadir)/user
34 tmpfilesdir=$(sysconfdir)/tmpfiles.d
35 usergeneratordir=$(pkglibexecdir)/user-generators
36
37 # And these are the special ones for /
38 rootdir=@rootdir@
39 rootbindir=$(rootdir)/bin
40 rootsbindir=$(rootdir)/sbin
41 rootlibexecdir=$(rootdir)/lib/systemd
42 systemunitdir=$(rootdir)/lib/systemd/system
43 systemgeneratordir=$(rootdir)/lib/systemd/system-generators
44
45 AM_CPPFLAGS = \
46         -include $(top_builddir)/config.h \
47         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
53         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
54         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
55         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60         -DRUNTIME_DIR=\"$(localstatedir)/run\" \
61         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
62         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
63         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
64         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
65         -I $(top_srcdir)/src
66
67 if TARGET_GENTOO
68 AM_CPPFLAGS += \
69         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
70         -DKBD_SETFONT=\"/usr/bin/setfont\" \
71         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
72 else
73 if TARGET_ARCH
74 AM_CPPFLAGS += \
75         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
76         -DKBD_SETFONT=\"/usr/bin/setfont\" \
77         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
78 else
79 if TARGET_FRUGALWARE
80 AM_CPPFLAGS += \
81         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
82         -DKBD_SETFONT=\"/usr/bin/setfont\" \
83         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
84 else
85 AM_CPPFLAGS += \
86         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
87         -DKBD_SETFONT=\"/bin/setfont\" \
88         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
89 endif
90 endif
91 endif
92
93 rootbin_PROGRAMS = \
94         systemd \
95         systemctl \
96         systemd-notify \
97         systemd-ask-password \
98         systemd-tty-ask-password-agent
99
100 bin_PROGRAMS = \
101         systemd-cgls
102
103 if HAVE_GTK
104 bin_PROGRAMS += \
105         systemadm \
106         systemd-gnome-ask-password-agent
107 endif
108
109 rootlibexec_PROGRAMS = \
110         systemd-logger \
111         systemd-cgroups-agent \
112         systemd-initctl \
113         systemd-update-utmp \
114         systemd-random-seed \
115         systemd-shutdownd \
116         systemd-shutdown \
117         systemd-modules-load \
118         systemd-remount-api-vfs \
119         systemd-kmsg-syslogd \
120         systemd-vconsole-setup \
121         systemd-reply-password \
122         systemd-readahead-collect \
123         systemd-readahead-replay \
124         systemd-tmpfiles \
125         systemd-user-sessions \
126         systemd-fsck \
127         systemd-quotacheck \
128         systemd-timestamp \
129         systemd-ac-power \
130         systemd-sysctl
131
132 if HAVE_LIBCRYPTSETUP
133 rootlibexec_PROGRAMS += \
134         systemd-cryptsetup
135
136 systemgenerator_PROGRAMS = \
137         systemd-cryptsetup-generator
138 endif
139
140 noinst_PROGRAMS = \
141         test-engine \
142         test-job-type \
143         test-ns \
144         test-loopback \
145         test-hostname \
146         test-daemon \
147         test-cgroup \
148         test-env-replace \
149         test-strv
150
151 if HAVE_PAM
152 pamlib_LTLIBRARIES = \
153         pam_systemd.la
154 endif
155
156 dist_pkgsysconf_DATA = \
157         src/system.conf
158
159 dist_dbuspolicy_DATA = \
160         src/org.freedesktop.systemd1.conf
161
162 dist_dbussystemservice_DATA = \
163         src/org.freedesktop.systemd1.service
164
165 dist_udevrules_DATA = \
166         src/99-systemd.rules
167
168 dbusinterface_DATA = \
169         org.freedesktop.systemd1.Manager.xml \
170         org.freedesktop.systemd1.Job.xml \
171         org.freedesktop.systemd1.Unit.xml \
172         org.freedesktop.systemd1.Service.xml \
173         org.freedesktop.systemd1.Socket.xml \
174         org.freedesktop.systemd1.Timer.xml \
175         org.freedesktop.systemd1.Target.xml \
176         org.freedesktop.systemd1.Device.xml \
177         org.freedesktop.systemd1.Mount.xml \
178         org.freedesktop.systemd1.Automount.xml \
179         org.freedesktop.systemd1.Snapshot.xml \
180         org.freedesktop.systemd1.Swap.xml \
181         org.freedesktop.systemd1.Path.xml
182
183 dist_bashcompletion_DATA = \
184         src/systemctl-bash-completion.sh
185
186 dist_tmpfiles_DATA = \
187         tmpfiles.d/systemd.conf \
188         tmpfiles.d/x11.conf
189
190 dist_systemunit_DATA = \
191         units/emergency.service \
192         units/emergency.target \
193         units/sysinit.target \
194         units/basic.target \
195         units/getty.target \
196         units/halt.target \
197         units/kexec.target \
198         units/local-fs.target \
199         units/cryptsetup.target \
200         units/network.target \
201         units/nss-lookup.target \
202         units/mail-transfer-agent.target \
203         units/http-daemon.target \
204         units/poweroff.target \
205         units/reboot.target \
206         units/rescue.target \
207         units/rpcbind.target \
208         units/rtc-set.target \
209         units/shutdown.target \
210         units/final.target \
211         units/umount.target \
212         units/sigpwr.target \
213         units/sockets.target \
214         units/swap.target \
215         units/dbus.target \
216         units/systemd-initctl.socket \
217         units/systemd-logger.socket \
218         units/systemd-shutdownd.socket \
219         units/syslog.socket \
220         units/dev-hugepages.automount \
221         units/dev-hugepages.mount \
222         units/dev-mqueue.automount \
223         units/dev-mqueue.mount \
224         units/proc-sys-fs-binfmt_misc.automount \
225         units/proc-sys-fs-binfmt_misc.mount \
226         units/sys-kernel-debug.automount \
227         units/sys-kernel-debug.mount \
228         units/sys-kernel-security.automount \
229         units/sys-kernel-security.mount \
230         units/var-lock.mount \
231         units/var-run.mount \
232         units/hwclock-load.service \
233         units/hwclock-save.service \
234         units/remount-rootfs.service \
235         units/printer.target \
236         units/bluetooth.target \
237         units/smartcard.target \
238         units/systemd-readahead-done.timer \
239         units/systemd-tmpfiles-clean.timer \
240         units/quotaon.service \
241         units/systemd-ask-password-wall.path \
242         units/systemd-ask-password-plymouth.path \
243         units/systemd-ask-password-console.path
244
245 nodist_systemunit_DATA = \
246         units/getty@.service \
247         units/serial-getty@.service \
248         units/graphical.target \
249         units/remote-fs.target \
250         units/multi-user.target \
251         units/systemd-initctl.service \
252         units/systemd-logger.service \
253         units/systemd-shutdownd.service \
254         units/systemd-kmsg-syslogd.service \
255         units/systemd-modules-load.service \
256         units/systemd-vconsole-setup.service \
257         units/systemd-remount-api-vfs.service \
258         units/systemd-update-utmp-runlevel.service \
259         units/systemd-update-utmp-shutdown.service \
260         units/systemd-random-seed-save.service \
261         units/systemd-random-seed-load.service \
262         units/systemd-readahead-collect.service \
263         units/systemd-readahead-replay.service \
264         units/systemd-readahead-done.service \
265         units/systemd-tmpfiles-setup.service \
266         units/systemd-tmpfiles-clean.service \
267         units/systemd-user-sessions.service \
268         units/systemd-ask-password-wall.service \
269         units/systemd-ask-password-plymouth.service \
270         units/systemd-ask-password-console.service \
271         units/systemd-sysctl.service \
272         units/syslog.target \
273         units/halt.service \
274         units/poweroff.service \
275         units/reboot.service \
276         units/kexec.service \
277         units/fsck@.service \
278         units/fsck-root.service \
279         units/quotacheck.service \
280         units/rescue.service
281
282 dist_userunit_DATA = \
283         units/user/default.target \
284         units/user/exit.target
285
286 nodist_userunit_DATA = \
287         units/user/remote-fs.target \
288         units/user/exit.service
289
290 EXTRA_DIST = \
291         units/getty@.service.m4 \
292         units/serial-getty@.service.m4 \
293         units/graphical.target.m4 \
294         units/multi-user.target.m4 \
295         units/remote-fs.target.m4 \
296         units/rescue.service.m4 \
297         units/systemd-initctl.service.in \
298         units/systemd-logger.service.in \
299         units/systemd-shutdownd.service.in \
300         units/systemd-kmsg-syslogd.service.in \
301         units/systemd-modules-load.service.in \
302         units/systemd-vconsole-setup.service.in \
303         units/systemd-remount-api-vfs.service.in \
304         units/systemd-update-utmp-runlevel.service.in \
305         units/systemd-update-utmp-shutdown.service.in \
306         units/systemd-random-seed-save.service.in \
307         units/systemd-random-seed-load.service.in \
308         units/systemd-readahead-collect.service.in \
309         units/systemd-readahead-replay.service.in \
310         units/systemd-readahead-done.service.in \
311         units/systemd-tmpfiles-setup.service.in \
312         units/systemd-tmpfiles-clean.service.in \
313         units/systemd-user-sessions.service.in \
314         units/systemd-ask-password-wall.service.in \
315         units/systemd-ask-password-plymouth.service.in \
316         units/systemd-ask-password-console.service.in \
317         units/systemd-sysctl.service.in \
318         units/syslog.target.in \
319         units/halt.service.in \
320         units/poweroff.service.in \
321         units/reboot.service.in \
322         units/kexec.service.in \
323         units/user/exit.service.in \
324         units/fsck@.service.in \
325         units/fsck-root.service.in \
326         units/quotacheck.service.in \
327         systemd.pc.in \
328         introspect.awk
329
330 if TARGET_FEDORA
331 dist_systemunit_DATA += \
332         units/fedora/prefdm.service \
333         units/fedora/rc-local.service \
334         units/fedora/halt-local.service \
335         units/fedora/plymouth-start.service \
336         units/fedora/plymouth-read-write.service \
337         units/fedora/plymouth-quit.service \
338         units/fedora/plymouth-reboot.service \
339         units/fedora/plymouth-kexec.service \
340         units/fedora/plymouth-poweroff.service \
341         units/fedora/plymouth-halt.service
342 endif
343
344 dist_doc_DATA = \
345         README \
346         LICENSE \
347         DISTRO_PORTING \
348         src/sd-daemon.h \
349         src/sd-daemon.c \
350         src/sd-readahead.h \
351         src/sd-readahead.c
352
353 pkgconfigdata_DATA = \
354         systemd.pc
355
356 dist_polkitpolicy_DATA = \
357         src/org.freedesktop.systemd1.policy
358
359 noinst_LTLIBRARIES = \
360         libsystemd-basic.la \
361         libsystemd-core.la \
362         libsystemd-daemon.la
363
364 libsystemd_basic_la_SOURCES = \
365         src/util.c \
366         src/label.c \
367         src/hashmap.c \
368         src/set.c \
369         src/strv.c \
370         src/conf-parser.c \
371         src/socket-util.c \
372         src/log.c \
373         src/ratelimit.c
374
375 libsystemd_basic_la_CFLAGS = \
376         $(AM_CFLAGS) \
377         $(SELINUX_CFLAGS)
378
379 libsystemd_basic_la_LIBADD = \
380         $(SELINUX_LIBS)
381
382 libsystemd_core_la_SOURCES = \
383         src/unit.c \
384         src/job.c \
385         src/manager.c \
386         src/path-lookup.c \
387         src/load-fragment.c \
388         src/service.c \
389         src/automount.c \
390         src/mount.c \
391         src/swap.c \
392         src/device.c \
393         src/target.c \
394         src/snapshot.c \
395         src/socket.c \
396         src/timer.c \
397         src/path.c \
398         src/load-dropin.c \
399         src/execute.c \
400         src/utmp-wtmp.c \
401         src/exit-status.c \
402         src/dbus.c \
403         src/dbus-manager.c \
404         src/dbus-unit.c \
405         src/dbus-job.c \
406         src/dbus-service.c \
407         src/dbus-socket.c \
408         src/dbus-timer.c \
409         src/dbus-target.c \
410         src/dbus-mount.c \
411         src/dbus-automount.c \
412         src/dbus-swap.c \
413         src/dbus-snapshot.c \
414         src/dbus-device.c \
415         src/dbus-execute.c \
416         src/dbus-path.c \
417         src/cgroup.c \
418         src/mount-setup.c \
419         src/hostname-setup.c \
420         src/selinux-setup.c \
421         src/loopback-setup.c \
422         src/kmod-setup.c \
423         src/locale-setup.c \
424         src/specifier.c \
425         src/unit-name.c \
426         src/fdset.c \
427         src/namespace.c \
428         src/tcpwrap.c \
429         src/cgroup-util.c \
430         src/condition.c
431
432 libsystemd_core_la_CFLAGS = \
433         $(AM_CFLAGS) \
434         $(DBUS_CFLAGS) \
435         $(UDEV_CFLAGS) \
436         $(LIBWRAP_CFLAGS) \
437         $(PAM_CFLAGS) \
438         $(AUDIT_CFLAGS)
439
440 libsystemd_core_la_LIBADD = \
441         libsystemd-basic.la \
442         $(DBUS_LIBS) \
443         $(UDEV_LIBS) \
444         $(LIBWRAP_LIBS) \
445         $(PAM_LIBS) \
446         $(AUDIT_LIBS)
447
448 libsystemd_daemon_la_SOURCES = \
449         src/sd-daemon.c
450
451 # This is needed because automake is buggy in how it generates the
452 # rules for C programs, but not Vala programs.  We therefore can't
453 # list the .h files as dependencies if we want make dist to work.
454
455 EXTRA_DIST += \
456         ${libsystemd_basic_la_SOURCES:.c=.h} \
457         ${libsystemd_core_la_SOURCES:.c=.h} \
458         ${libsystemd_daemon_la_SOURCES:.c=.h} \
459         src/macro.h \
460         src/ioprio.h \
461         src/missing.h \
462         src/list.h \
463         src/securebits.h \
464         src/linux/auto_dev-ioctl.h \
465         src/linux/fanotify.h \
466         src/initreq.h \
467         src/sd-readahead.h \
468         src/special.h \
469         src/dbus-common.h \
470         src/bus-errors.h \
471         src/cgroup-show.h \
472         src/build.h \
473         src/shutdownd.h \
474         src/umount.h \
475         src/readahead-common.h \
476         src/ask-password-api.h
477
478 MANPAGES = \
479         man/systemd.1 \
480         man/systemctl.1 \
481         man/systemadm.1 \
482         man/systemd-cgls.1 \
483         man/systemd-notify.1 \
484         man/sd_notify.3 \
485         man/sd_readahead.3 \
486         man/sd_booted.3 \
487         man/sd_listen_fds.3 \
488         man/sd_is_fifo.3 \
489         man/systemd.unit.5 \
490         man/systemd.service.5 \
491         man/systemd.socket.5 \
492         man/systemd.mount.5 \
493         man/systemd.automount.5 \
494         man/systemd.swap.5 \
495         man/systemd.timer.5 \
496         man/systemd.path.5 \
497         man/systemd.target.5 \
498         man/systemd.device.5 \
499         man/systemd.snapshot.5 \
500         man/systemd.exec.5 \
501         man/daemon.7 \
502         man/sd-daemon.7 \
503         man/sd-readahead.7 \
504         man/runlevel.8 \
505         man/telinit.8 \
506         man/halt.8 \
507         man/shutdown.8 \
508         man/pam_systemd.8 \
509         man/systemd.conf.5 \
510         man/tmpfiles.d.5 \
511         man/hostname.5 \
512         man/vconsole.conf.5 \
513         man/locale.conf.5 \
514         man/os-release.5 \
515         man/modules-load.d.5
516
517 MANPAGES_ALIAS = \
518         man/reboot.8 \
519         man/poweroff.8 \
520         man/sd_is_socket.3 \
521         man/sd_is_socket_unix.3 \
522         man/sd_is_socket_inet.3 \
523         man/sd_notifyf.3 \
524         man/init.1
525
526 man/reboot.8: man/halt.8
527 man/poweroff.8: man/halt.8
528 man/sd_is_socket.3: man/sd_is_fifo.3
529 man/sd_is_socket_unix.3: man/sd_is_fifo.3
530 man/sd_is_socket_inet.3: man/sd_is_fifo.3
531 man/sd_notifyf.3: man/sd_notify.3
532 man/init.1: man/systemd.1
533
534 dist_man_MANS = \
535         $(MANPAGES) \
536         $(MANPAGES_ALIAS)
537
538 nodist_man_MANS = \
539         man/systemd.special.7
540
541 XML_FILES = \
542         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
543
544 XML_IN_FILES = \
545         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
546
547 dist_noinst_DATA = \
548         ${XML_FILES:.xml=.html}
549
550 nodist_noinst_DATA = \
551         ${XML_IN_FILES:.xml.in=.html}
552
553 EXTRA_DIST += \
554         $(XML_FILES) \
555         $(XML_IN_FILES) \
556         ${nodist_man_MANS:=.in} \
557         ${XML_IN_FILES:.xml.in=.html.in}
558
559 systemd_SOURCES = \
560         src/main.c
561
562 systemd_CFLAGS = \
563         $(AM_CFLAGS) \
564         $(DBUS_CFLAGS) \
565         $(UDEV_CFLAGS)
566
567 systemd_LDADD = \
568         libsystemd-core.la
569
570 test_engine_SOURCES = \
571         src/test-engine.c
572
573 test_engine_CFLAGS = $(systemd_CFLAGS)
574 test_engine_LDADD = $(systemd_LDADD)
575
576 test_job_type_SOURCES = \
577         src/test-job-type.c
578
579 test_job_type_CFLAGS = $(systemd_CFLAGS)
580 test_job_type_LDADD = $(systemd_LDADD)
581
582 test_ns_SOURCES = \
583         src/test-ns.c
584
585 test_ns_CFLAGS = $(systemd_CFLAGS)
586 test_ns_LDADD = $(systemd_LDADD)
587
588 test_loopback_SOURCES = \
589         src/test-loopback.c \
590         src/loopback-setup.c
591
592 test_loopback_LDADD = \
593         libsystemd-basic.la
594
595 test_hostname_SOURCES = \
596         src/test-hostname.c \
597         src/hostname-setup.c
598
599 test_hostname_LDADD = \
600         libsystemd-basic.la
601
602 test_daemon_SOURCES = \
603         src/test-daemon.c
604
605 test_daemon_LDADD = \
606         libsystemd-basic.la \
607         libsystemd-daemon.la
608
609 test_cgroup_SOURCES = \
610         src/test-cgroup.c \
611         src/cgroup-util.c
612
613 test_cgroup_CFLAGS = \
614         $(AM_CFLAGS)
615
616 test_cgroup_LDADD = \
617         libsystemd-basic.la
618
619 test_env_replace_SOURCES = \
620         src/test-env-replace.c
621
622 test_env_replace_CFLAGS = \
623         $(AM_CFLAGS)
624
625 test_env_replace_LDADD = \
626         libsystemd-basic.la
627
628 test_strv_SOURCES = \
629         src/test-strv.c \
630         src/specifier.c
631
632 test_strv_CFLAGS = \
633         $(AM_CFLAGS)
634
635 test_strv_LDADD = \
636         libsystemd-basic.la
637
638 systemd_logger_SOURCES = \
639         src/logger.c \
640         src/tcpwrap.c
641
642 systemd_logger_LDADD = \
643         libsystemd-basic.la \
644         libsystemd-daemon.la \
645         $(LIBWRAP_LIBS)
646
647 systemd_initctl_SOURCES = \
648         src/initctl.c \
649         src/dbus-common.c
650
651 systemd_initctl_CFLAGS = \
652         $(AM_CFLAGS) \
653         $(DBUS_CFLAGS)
654
655 systemd_initctl_LDADD = \
656         libsystemd-basic.la \
657         libsystemd-daemon.la \
658         $(DBUS_LIBS)
659
660 systemd_update_utmp_SOURCES = \
661         src/update-utmp.c \
662         src/dbus-common.c \
663         src/utmp-wtmp.c
664
665 systemd_update_utmp_CFLAGS = \
666         $(AM_CFLAGS) \
667         $(DBUS_CFLAGS) \
668         $(AUDIT_CFLAGS)
669
670 systemd_update_utmp_LDADD = \
671         libsystemd-basic.la \
672         $(DBUS_LIBS) \
673         $(AUDIT_LIBS)
674
675 systemd_random_seed_SOURCES = \
676         src/random-seed.c
677
678 systemd_random_seed_CFLAGS = \
679         $(AM_CFLAGS)
680
681 systemd_random_seed_LDADD = \
682         libsystemd-basic.la
683
684 systemd_shutdownd_SOURCES = \
685         src/utmp-wtmp.c \
686         src/shutdownd.c
687
688 systemd_shutdownd_CFLAGS = \
689         $(AM_CFLAGS)
690
691 systemd_shutdownd_LDADD = \
692         libsystemd-basic.la \
693         libsystemd-daemon.la
694
695 systemd_shutdown_SOURCES = \
696         src/mount-setup.c \
697         src/umount.c \
698         src/shutdown.c
699
700 systemd_shutdown_CFLAGS = \
701         $(AM_CFLAGS) \
702         $(UDEV_CFLAGS)
703
704 systemd_shutdown_LDADD = \
705         libsystemd-basic.la \
706         $(UDEV_LIBS)
707
708 systemd_modules_load_SOURCES = \
709         src/modules-load.c
710
711 systemd_modules_load_CFLAGS = \
712         $(AM_CFLAGS)
713
714 systemd_modules_load_LDADD = \
715         libsystemd-basic.la
716
717 systemd_tmpfiles_SOURCES = \
718         src/tmpfiles.c
719
720 systemd_tmpfiles_CFLAGS = \
721         $(AM_CFLAGS)
722
723 systemd_tmpfiles_LDADD = \
724         libsystemd-basic.la
725
726 systemd_sysctl_SOURCES = \
727         src/sysctl.c
728
729 systemd_sysctl_CFLAGS = \
730         $(AM_CFLAGS)
731
732 systemd_sysctl_LDADD = \
733         libsystemd-basic.la
734
735 systemd_fsck_SOURCES = \
736         src/fsck.c \
737         src/dbus-common.c
738
739 systemd_fsck_CFLAGS = \
740         $(AM_CFLAGS) \
741         $(UDEV_CFLAGS) \
742         $(DBUS_CFLAGS)
743
744 systemd_fsck_LDADD = \
745         libsystemd-basic.la \
746         $(UDEV_LIBS) \
747         $(DBUS_LIBS)
748
749 systemd_quotacheck_SOURCES = \
750         src/quotacheck.c
751
752 systemd_quotacheck_CFLAGS = \
753         $(AM_CFLAGS)
754
755 systemd_quotacheck_LDADD = \
756         libsystemd-basic.la
757
758 systemd_timestamp_SOURCES = \
759         src/timestamp.c
760
761 systemd_timestamp_CFLAGS = \
762         $(AM_CFLAGS)
763
764 systemd_timestamp_LDADD = \
765         libsystemd-basic.la
766
767 systemd_ac_power_SOURCES = \
768         src/ac-power.c
769
770 systemd_ac_power_CFLAGS = \
771         $(AM_CFLAGS) \
772         $(UDEV_CFLAGS)
773
774 systemd_ac_power_LDADD = \
775         libsystemd-basic.la \
776         $(UDEV_LIBS)
777
778 systemd_cryptsetup_SOURCES = \
779         src/cryptsetup.c \
780         src/ask-password-api.c
781
782 systemd_cryptsetup_CFLAGS = \
783         $(LIBCRYPTSETUP_CFLAGS) \
784         $(UDEV_CFLAGS) \
785         $(AM_CFLAGS)
786
787 systemd_cryptsetup_LDADD = \
788         $(LIBCRYPTSETUP_LIBS) \
789         $(UDEV_LIBS) \
790         libsystemd-basic.la
791
792 systemd_cryptsetup_generator_SOURCES = \
793         src/cryptsetup-generator.c \
794         src/unit-name.c
795
796 systemd_cryptsetup_generator_CFLAGS = \
797         $(AM_CFLAGS)
798
799 systemd_cryptsetup_generator_LDADD = \
800         libsystemd-basic.la
801
802 systemd_user_sessions_SOURCES = \
803         src/user-sessions.c \
804         src/cgroup-util.c
805
806 systemd_user_sessions_CFLAGS = \
807         $(AM_CFLAGS)
808
809 systemd_user_sessions_LDADD = \
810         libsystemd-basic.la
811
812 systemd_vconsole_setup_SOURCES = \
813         src/vconsole-setup.c
814
815 systemd_vconsole_setup_CFLAGS = \
816         $(AM_CFLAGS)
817
818 systemd_vconsole_setup_LDADD = \
819         libsystemd-basic.la
820
821 systemd_remount_api_vfs_SOURCES = \
822         src/remount-api-vfs.c \
823         src/mount-setup.c
824
825 systemd_remount_api_vfs_CFLAGS = \
826         $(AM_CFLAGS)
827
828 systemd_remount_api_vfs_LDADD = \
829         libsystemd-basic.la
830
831 systemd_cgroups_agent_SOURCES = \
832         src/cgroups-agent.c \
833         src/dbus-common.c
834
835 systemd_cgroups_agent_CFLAGS = \
836         $(AM_CFLAGS) \
837         $(DBUS_CFLAGS)
838
839 systemd_cgroups_agent_LDADD = \
840         libsystemd-basic.la \
841         $(DBUS_LIBS)
842
843 systemd_kmsg_syslogd_SOURCES = \
844         src/kmsg-syslogd.c \
845         src/fdset.c
846
847 systemd_kmsg_syslogd_CFLAGS = \
848         $(AM_CFLAGS)
849
850 systemd_kmsg_syslogd_LDADD = \
851         libsystemd-basic.la \
852         libsystemd-daemon.la
853
854 systemctl_SOURCES = \
855         src/systemctl.c \
856         src/utmp-wtmp.c \
857         src/dbus-common.c \
858         src/path-lookup.c \
859         src/cgroup-show.c \
860         src/cgroup-util.c \
861         src/exit-status.c \
862         src/unit-name.c
863
864 systemctl_CFLAGS = \
865         $(AM_CFLAGS) \
866         $(DBUS_CFLAGS)
867
868 systemctl_LDADD = \
869         libsystemd-basic.la \
870         libsystemd-daemon.la \
871         $(DBUS_LIBS)
872
873 systemd_notify_SOURCES = \
874         src/notify.c \
875         src/sd-readahead.c
876
877 systemd_notify_LDADD = \
878         libsystemd-basic.la \
879         libsystemd-daemon.la
880
881 systemd_ask_password_SOURCES = \
882         src/ask-password.c \
883         src/ask-password-api.c
884
885 systemd_ask_password_LDADD = \
886         libsystemd-basic.la
887
888 systemd_reply_password_SOURCES = \
889         src/reply-password.c
890
891 systemd_reply_password_LDADD = \
892         libsystemd-basic.la
893
894 systemd_readahead_collect_SOURCES = \
895         src/readahead-collect.c \
896         src/readahead-common.c
897
898 systemd_readahead_collect_CFLAGS = \
899         $(UDEV_CFLAGS)
900
901 systemd_readahead_collect_LDADD = \
902         libsystemd-basic.la \
903         libsystemd-daemon.la \
904         $(UDEV_LIBS)
905
906 systemd_readahead_replay_SOURCES = \
907         src/readahead-replay.c \
908         src/readahead-common.c
909
910 systemd_readahead_replay_CFLAGS = \
911         $(UDEV_CFLAGS)
912
913 systemd_readahead_replay_LDADD = \
914         libsystemd-basic.la \
915         libsystemd-daemon.la \
916         $(UDEV_LIBS)
917
918 systemd_cgls_SOURCES = \
919         src/cgls.c \
920         src/cgroup-show.c \
921         src/cgroup-util.c
922
923 systemd_cgls_CFLAGS = \
924         $(AM_CFLAGS)
925
926 systemd_cgls_LDADD = \
927         libsystemd-basic.la
928
929 systemadm_SOURCES = \
930         src/systemadm.vala \
931         src/systemd-interfaces.vala
932
933 systemadm_CFLAGS = \
934         $(AM_CFLAGS) \
935         $(DBUSGLIB_CFLAGS) \
936         $(GTK_CFLAGS) \
937         -Wno-unused-variable \
938         -Wno-unused-function \
939         -Wno-shadow \
940         -Wno-format-nonliteral
941
942 systemadm_VALAFLAGS = \
943         --pkg=dbus-glib-1 \
944         --pkg=posix \
945         --pkg=gtk+-2.0 \
946         -g
947
948 systemadm_LDADD = \
949         $(DBUSGLIB_LIBS) \
950         $(GTK_LIBS)
951
952 systemd_gnome_ask_password_agent_SOURCES = \
953         src/gnome-ask-password-agent.vala
954
955 systemd_gnome_ask_password_agent_CFLAGS = \
956         $(AM_CFLAGS) \
957         $(DBUSGLIB_CFLAGS) \
958         $(LIBNOTIFY_CFLAGS) \
959         $(GTK_CFLAGS) \
960         -Wno-unused-variable \
961         -Wno-unused-function \
962         -Wno-shadow \
963         -Wno-format-nonliteral
964
965 systemd_gnome_ask_password_agent_VALAFLAGS = \
966         --pkg=dbus-glib-1 \
967         --pkg=posix \
968         --pkg=gtk+-2.0 \
969         --pkg=linux \
970         --pkg=gio-unix-2.0 \
971         --pkg=libnotify
972 if LIBNOTIFY07
973 systemd_gnome_ask_password_agent_VALAFLAGS += \
974         -D LIBNOTIFY07
975 endif
976 systemd_gnome_ask_password_agent_VALAFLAGS += \
977         -g
978
979 systemd_gnome_ask_password_agent_LDADD = \
980         $(DBUSGLIB_LIBS) \
981         $(LIBNOTIFY_LIBS) \
982         $(GTK_LIBS)
983
984 systemd_tty_ask_password_agent_SOURCES = \
985         src/tty-ask-password-agent.c \
986         src/ask-password-api.c \
987         src/utmp-wtmp.c
988
989 systemd_tty_ask_password_agent_LDADD = \
990         libsystemd-basic.la
991
992 pam_systemd_la_SOURCES = \
993         src/pam-module.c \
994         src/cgroup-util.c
995
996 pam_systemd_la_CFLAGS = \
997         $(AM_CFLAGS)
998         -fvisibility=hidden
999
1000 pam_systemd_la_LDFLAGS = \
1001         -module \
1002         -export-dynamic \
1003         -avoid-version \
1004         -shared \
1005         -export-symbols-regex '^pam_sm_.*'
1006
1007 pam_systemd_la_LIBADD = \
1008         libsystemd-basic.la \
1009         libsystemd-daemon.la \
1010         $(PAM_LIBS)
1011
1012 SED_PROCESS = \
1013         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1014         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1015                 -e 's,@rootbindir\@,$(rootbindir),g' \
1016                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
1017                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1018                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1019                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1020                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1021                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1022                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1023                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1024                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1025                 -e 's,@prefix\@,$(prefix),g' \
1026                 < $< > $@ || rm $@
1027
1028 units/%: units/%.in Makefile
1029         $(SED_PROCESS)
1030
1031 man/%: man/%.in Makefile
1032         $(SED_PROCESS)
1033
1034 %.pc: %.pc.in Makefile
1035         $(SED_PROCESS)
1036
1037 M4_PROCESS_SYSTEM = \
1038         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1039         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1040
1041 M4_PROCESS_USER = \
1042         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1043         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1044
1045 units/%: units/%.m4 Makefile
1046         $(M4_PROCESS_SYSTEM)
1047
1048 units/user/%: units/%.m4 Makefile
1049         $(M4_PROCESS_USER)
1050
1051 CLEANFILES = \
1052         $(nodist_systemunit_DATA) \
1053         $(nodist_userunit_DATA) \
1054         $(nodist_man_MANS) \
1055         ${XML_IN_FILES:.xml.in=.html} \
1056         $(pkgconfigdata_DATA)
1057
1058 if HAVE_VALAC
1059 CLEANFILES += \
1060         ${systemadm_SOURCES:.vala=.c}
1061 endif
1062
1063 if HAVE_XSLTPROC
1064 XSLTPROC_FLAGS = \
1065         --nonet \
1066         --param funcsynopsis.style "'ansi'"
1067
1068 XSLTPROC_PROCESS_MAN = \
1069         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1070         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1071
1072 XSLTPROC_PROCESS_MAN_IN = \
1073         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1074         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1075         mv ${@:.in=} $@
1076
1077 XSLTPROC_PROCESS_HTML = \
1078         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1079         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1080
1081 XSLTPROC_PROCESS_HTML_IN = \
1082         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1083         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1084         mv ${@:.in=} $@
1085
1086 man/%.1: man/%.xml
1087         $(XSLTPROC_PROCESS_MAN)
1088
1089 man/%.1.in: man/%.xml.in
1090         $(XSLTPROC_PROCESS_MAN)
1091
1092 man/%.3: man/%.xml
1093         $(XSLTPROC_PROCESS_MAN)
1094
1095 man/%.3.in: man/%.xml.in
1096         $(XSLTPROC_PROCESS_MAN)
1097
1098 man/%.5: man/%.xml
1099         $(XSLTPROC_PROCESS_MAN)
1100
1101 man/%.5.in: man/%.xml.in
1102         $(XSLTPROC_PROCESS_MAN)
1103
1104 man/%.7: man/%.xml
1105         $(XSLTPROC_PROCESS_MAN)
1106
1107 man/%.7.in: man/%.xml.in
1108         $(XSLTPROC_PROCESS_MAN_IN)
1109
1110 man/%.8: man/%.xml
1111         $(XSLTPROC_PROCESS_MAN)
1112
1113 man/%.8.in: man/%.xml.in
1114         $(XSLTPROC_PROCESS_MAN_IN)
1115
1116 man/%.html: man/%.xml
1117         $(XSLTPROC_PROCESS_HTML)
1118
1119 man/%.html.in: man/%.xml.in
1120         $(XSLTPROC_PROCESS_HTML_IN)
1121
1122 CLEANFILES += \
1123         $(dist_man_MANS) \
1124         ${nodist_man_MANS:=.in} \
1125         ${XML_FILES:.xml=.html} \
1126         ${XML_IN_FILES:.xml.in=.html.in}
1127 endif
1128
1129 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1130
1131 org.freedesktop.systemd1.%.xml: systemd
1132         $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1133                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1134                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1135
1136 CLEANFILES += \
1137         $(dbusinterface_DATA)
1138
1139 install-data-hook:
1140         $(MKDIR_P) -m 0755 \
1141                 $(DESTDIR)$(systemunitdir) \
1142                 $(DESTDIR)$(userunitdir) \
1143                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1144                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1145                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1146                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1147                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1148                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1149                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1150                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1151                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1152                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1153                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1154                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1155                 $(DESTDIR)$(pkgsysconfdir)/system \
1156                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1157                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1158                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1159                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1160                 $(DESTDIR)$(pkgsysconfdir)/user \
1161                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1162         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1163                 rm -f user && \
1164                 $(LN_S) $(pkgsysconfdir)/user user )
1165         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1166                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1167                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1168                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1169                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1170                 $(LN_S) ../syslog.socket syslog.socket )
1171         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1172                 rm -f systemd-update-utmp-runlevel.service && \
1173                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1174         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1175                 rm -f systemd-update-utmp-runlevel.service && \
1176                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1177         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1178                 rm -f systemd-update-utmp-runlevel.service && \
1179                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1180         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1181                 rm -f systemd-update-utmp-runlevel.service && \
1182                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1183         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1184                 rm -f systemd-update-utmp-runlevel.service && \
1185                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1186         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1187                 rm -f systemd-update-utmp-shutdown.service \
1188                         hwclock-save.service \
1189                         systemd-random-seed-save.service && \
1190                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1191                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1192                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1193         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1194                 rm -f systemd-remount-api-vfs.service \
1195                         fsck-root.service \
1196                         remount-rootfs.service \
1197                         var-run.mount \
1198                         var-lock.mount \
1199                         cryptsetup.target && \
1200                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1201                 $(LN_S) ../fsck-root.service fsck-root.service && \
1202                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1203                 $(LN_S) ../var-run.mount var-run.mount && \
1204                 $(LN_S) ../var-lock.mount var-lock.mount && \
1205                 $(LN_S) ../cryptsetup.target )
1206         ( cd $(DESTDIR)$(userunitdir) && \
1207                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1208                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1209                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1210                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1211                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1212                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1213                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1214         ( cd $(DESTDIR)$(systemunitdir) && \
1215                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1216                 $(LN_S) poweroff.target runlevel0.target && \
1217                 $(LN_S) rescue.target runlevel1.target && \
1218                 $(LN_S) multi-user.target runlevel2.target && \
1219                 $(LN_S) multi-user.target runlevel3.target && \
1220                 $(LN_S) multi-user.target runlevel4.target && \
1221                 $(LN_S) graphical.target runlevel5.target && \
1222                 $(LN_S) reboot.target runlevel6.target )
1223         ( cd $(DESTDIR)$(systemunitdir) && \
1224                 rm -f default.target ctrl-alt-del.target && \
1225                 $(LN_S) graphical.target default.target && \
1226                 $(LN_S) reboot.target ctrl-alt-del.target )
1227         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1228                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1229                 $(LN_S) ../getty.target getty.target && \
1230                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1231                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1232         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1233                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1234                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1235                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1236                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1237                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1238                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1239                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1240         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1241                 rm -f quotaon.service quotacheck.service && \
1242                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1243                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1244         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1245                 rm -f remote-fs.target && \
1246                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1247         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1248                 rm -f hwclock-load.service && \
1249                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1250         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1251                 rm -f dev-hugepages.automount \
1252                         dev-mqueue.automount \
1253                         proc-sys-fs-binfmt_misc.automount \
1254                         sys-kernel-debug.automount \
1255                         sys-kernel-security.automount \
1256                         systemd-vconsole-setup.service \
1257                         systemd-modules-load.service \
1258                         systemd-random-seed-load.service \
1259                         systemd-tmpfiles-setup.service \
1260                         systemd-sysctl.service \
1261                         systemd-ask-password-console.path && \
1262                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1263                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1264                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1265                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1266                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1267                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1268                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1269                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1270                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1271                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1272                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
1273         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1274                 rm -f systemd-tmpfiles-clean.timer && \
1275                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1276         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1277                 rm -f org.freedesktop.systemd1.service && \
1278                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1279 if TARGET_FEDORA
1280         $(MKDIR_P) -m 0755 \
1281                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1282                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1283                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1284                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1285                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1286                 $(DESTDIR)$(systemunitdir)/final.target.wants
1287         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1288                 rm -f rc-local.service && \
1289                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1290         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1291                 rm -f halt-local.service && \
1292                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1293         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1294                 rm -f plymouth-start.service plymouth-read-write.service && \
1295                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1296                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1297         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1298                 rm -f plymouth-quit.service  && \
1299                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1300         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1301                 rm -f plymouth-reboot.service && \
1302                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1303         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1304                 rm -f plymouth-kexec.service && \
1305                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1306         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1307                 rm -f plymouth-poweroff.service && \
1308                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1309         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1310                 rm -f plymouth-halt.service && \
1311                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1312         ( cd $(DESTDIR)$(systemunitdir) && \
1313                 rm -f display-manager.service && \
1314                 $(LN_S) prefdm.service display-manager.service )
1315         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1316                 rm -f display-manager.service && \
1317                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1318 endif
1319 if TARGET_DEBIAN_OR_UBUNTU
1320         ( cd $(DESTDIR)$(systemunitdir) && \
1321                 rm -f runlevel5.target && \
1322                 $(LN_S) multi-user.target runlevel5.target )
1323 endif
1324
1325 DISTCHECK_CONFIGURE_FLAGS = \
1326         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1327         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1328         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1329         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1330         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1331         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1332         --with-rootdir=$$dc_install_base/$(rootdir)
1333
1334 upload: all distcheck
1335         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1336         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1337         scp man/*.html tango:public/systemd-man/
1338
1339 git-tag:
1340         git tag "v$(VERSION)" -m "systemd $(VERSION)"