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