Makefile.am revision 3b63d2d31d0850bd7a81ab9b468218d2c4c461e8
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# This file is part of systemd.
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# Copyright 2010 Lennart Poettering
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# systemd is free software; you can redistribute it and/or modify it
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# under the terms of the GNU General Public License as published by
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# the Free Software Foundation; either version 2 of the License, or
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# (at your option) any later version.
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# systemd is distributed in the hope that it will be useful, but
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# General Public License for more details.
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# You should have received a copy of the GNU General Public License
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart PoetteringACLOCAL_AMFLAGS = -I m4
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# Dirs of external packages
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdbuspolicydir=@dbuspolicydir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdbussessionservicedir=@dbussessionservicedir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdbussystemservicedir=@dbussystemservicedir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdbusinterfacedir=@dbusinterfacedir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringudevrulesdir=@udevrulesdir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringpamlibdir=@pamlibdir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringpkgconfigdatadir=$(datadir)/pkgconfig
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringpolkitpolicydir=$(datadir)/polkit-1/actions
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering# Our own, non-special dirs
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringpkgsysconfdir=$(sysconfdir)/systemd
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringsessionunitdir=$(pkgdatadir)/session
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringtmpfilesdir=$(sysconfdir)/tmpfiles.d
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering# And these are the special ones for /
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootdir=@rootdir@
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootbindir=$(rootdir)/bin
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootsbindir=$(rootdir)/sbin
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootlibexecdir=$(rootdir)/lib/systemd
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringsystemunitdir=$(rootdir)/lib/systemd/system
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart PoetteringAM_CPPFLAGS = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -include $(top_builddir)/config.h \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DRUNTIME_DIR=\"$(localstatedir)/run\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DKEXEC_BINARY_PATH=\"$(rootsbindir)/kexec\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -I $(top_srcdir)/src
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringif TARGET_GENTOO
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart PoetteringAM_CPPFLAGS += \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DKBD_SETFONT=\"/usr/bin/setfont\" \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering -DDEFAULT_FONT=\"LatArCyrHeb-16\"
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart PoetteringAM_CPPFLAGS += \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering -DKBD_SETFONT=\"/usr/bin/setfont\" \
c30a0c62fdbf6f11902be9db64ade99fb508adfdLennart Poettering -DDEFAULT_FONT=\"LatArCyrHeb-16\"
c30a0c62fdbf6f11902be9db64ade99fb508adfdLennart PoetteringAM_CPPFLAGS += \
c30a0c62fdbf6f11902be9db64ade99fb508adfdLennart Poettering -DKBD_LOADKEYS=\"/bin/loadkeys\" \
03e334a1c7dc8c20c38902aa039440763acc9b17Lennart Poettering -DKBD_SETFONT=\"/bin/setfont\" \
c30a0c62fdbf6f11902be9db64ade99fb508adfdLennart Poettering -DDEFAULT_FONT=\"latarcyrheb-sun16\"
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootbin_PROGRAMS = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-notify \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-ask-password
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringbin_PROGRAMS = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringbin_PROGRAMS += \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-ask-password-agent
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringrootlibexec_PROGRAMS = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-logger \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-cgroups-agent \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-initctl \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poettering systemd-update-utmp \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-random-seed \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-shutdownd \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-shutdown \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-modules-load \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-remount-api-vfs \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-kmsg-syslogd \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-vconsole-setup \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-reply-password \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-readahead-collect \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-readahead-replay \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-tmpfiles \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer systemd-user-sessions
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffernoinst_PROGRAMS = \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering test-job-type \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering test-loopback \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering test-hostname \
3c56cab44150ad47323970cfadfb0257c6305a74Ben Wolsieffer test-cgroup \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering test-env-replace
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringpamlib_LTLIBRARIES = \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringdist_pkgsysconf_DATA = \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringdist_dbuspolicy_DATA = \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringdist_dbussystemservice_DATA = \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringdist_udevrules_DATA = \
cc3773810855956bad92337cee8fa193584ab62eLennart Poetteringdbusinterface_DATA = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdist_tmpfiles_DATA = \
e9d21f240704f87c6bb5f7fca1c5e6d0f31c84cdLennart Poetteringdist_systemunit_DATA = \
c485437f50450c0087bae3df4aed462e4a86ee83Zbigniew Jędrzejewski-Szmek units/systemd-shutdownd.socket \
7b77ed8cf36e8eca6017791626044b61ae2d68e7Lennart Poettering units/proc-sys-fs-binfmt_misc.automount \
2d62c530d2b4c2730abff715b7342f1402114513Lennart Poetteringnodist_systemunit_DATA = \
c485437f50450c0087bae3df4aed462e4a86ee83Zbigniew Jędrzejewski-Szmek units/systemd-modules-load.service \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering units/systemd-update-utmp-runlevel.service \
2d62c530d2b4c2730abff715b7342f1402114513Lennart Poettering units/systemd-update-utmp-shutdown.service \
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering units/systemd-readahead-collect.service \
cc3773810855956bad92337cee8fa193584ab62eLennart Poetteringdist_sessionunit_DATA = \
cc3773810855956bad92337cee8fa193584ab62eLennart Poetteringnodist_sessionunit_DATA = \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-vconsole-setup.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-remount-api-vfs.service.in \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poettering units/systemd-update-utmp-runlevel.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-update-utmp-shutdown.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-random-seed-load.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-readahead-collect.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-readahead-replay.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-readahead-done.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-tmpfiles-setup.service.in \
cc3773810855956bad92337cee8fa193584ab62eLennart Poettering units/systemd-tmpfiles-clean.service.in \
65b5116220a8ebf8a260716152409aa05377aaccLennart Poetteringif TARGET_FEDORA
65b5116220a8ebf8a260716152409aa05377aaccLennart Poetteringdist_systemunit_DATA += \
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringif TARGET_DEBIAN
ed4ba7e4f652150310d062ffbdfefb4521ce1054Lennart Poetteringdist_systemunit_DATA += \
${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
${XML_IN_FILES:.xml.in=.html}
%.pc: %.pc.in Makefile
units/session/%: units/%.m4 Makefile
${XML_IN_FILES:.xml.in=.html} \
--param funcsynopsis.style "'ansi'"
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
org.freedesktop.systemd1.%.xml: systemd
$(DESTDIR)$(systemunitdir)/sockets.target.wants \
$(DESTDIR)$(systemunitdir)/basic.target.wants \
$(DESTDIR)$(systemunitdir)/shutdown.target.wants \
$(DESTDIR)$(systemunitdir)/local-fs.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
$(DESTDIR)$(systemunitdir)/multi-user.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
$(DESTDIR)$(sysconfdir)/xdg/systemd
( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f systemd-remount-api-vfs.service \
var-lock.mount && \
rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
rm -f remote-fs.target && \
( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
rm -f dev-hugepages.automount \
rm -f org.freedesktop.systemd1.service && \
$(DESTDIR)$(systemunitdir)/reboot.target.wants \
$(DESTDIR)$(systemunitdir)/poweroff.target.wants \
$(DESTDIR)$(systemunitdir)/halt.target.wants \
$(DESTDIR)$(systemunitdir)/rescue.target.wants \
$(DESTDIR)$(systemunitdir)/multi-user.target.wants \
$(DESTDIR)$(systemunitdir)/final.target.wants
rm -f display-manager.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
rm -f prefdm.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
rm -f rc-local.service && \
( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
rm -f halt-local.service && \
( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
rm -f single.service && \
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f plymouth-quit.service && \
( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
rm -f plymouth-reboot.service && \
( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
rm -f plymouth-poweroff.service && \
( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
rm -f plymouth-halt.service && \
rm -f local.service && \
$(LN_S) halt reboot > /dev/null 2>&1 || true )
rm -f display-manager.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
rm -f xdm.service && \
$(DESTDIR)$(systemunitdir)/umount.target.wants
( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
rm -f runlevel5.target && \
rm -f fsck.target && \
scp man/*.html tango:public/systemd-man/
# Opt out from a few services on Fedora for now, as long as rc.sysinit does this job