Makefile.am revision ac0a983ac6a47cf445ead257aa5a38b06779366e
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# This file is part of systemd.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Copyright 2010 Lennart Poettering
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# systemd is free software; you can redistribute it and/or modify it
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# under the terms of the GNU General Public License as published by
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# the Free Software Foundation; either version 2 of the License, or
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# (at your option) any later version.
83bee7f569bee7534741915e173e6a7de9ddae81stoddard# systemd is distributed in the hope that it will be useful, but
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbb# WITHOUT ANY WARRANTY; without even the implied warranty of
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# General Public License for more details.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# You should have received a copy of the GNU General Public License
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbb# along with systemd; If not, see <http://www.gnu.org/licenses/>.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingACLOCAL_AMFLAGS = -I m4
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingSUBDIRS = po
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingLIBSYSTEMD_LOGIN_CURRENT=0
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingLIBSYSTEMD_LOGIN_REVISION=4
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingLIBSYSTEMD_LOGIN_AGE=0
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingLIBSYSTEMD_DAEMON_CURRENT=0
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingLIBSYSTEMD_DAEMON_REVISION=0
db920ff940978fe01db8d4de8c2a9d507bc0bbcdstoddardLIBSYSTEMD_DAEMON_AGE=0
c032b37ad682c1da5382258811e8e35a8ec0d78dwrowe# Dirs of external packages
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingdbuspolicydir=@dbuspolicydir@
7b3590ada24130fe5d52ce7fbf98177e3d121a4cstoddarddbussessionservicedir=@dbussessionservicedir@
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbbdbussystemservicedir=@dbussystemservicedir@
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingdbusinterfacedir=@dbusinterfacedir@
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingudevrulesdir=@udevrulesdir@
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingpamlibdir=@pamlibdir@
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingpkgconfigdatadir=$(datadir)/pkgconfig
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbbpkgconfiglibdir=$(libdir)/pkgconfig
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingpolkitpolicydir=$(datadir)/polkit-1/actions
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingbashcompletiondir=$(sysconfdir)/bash_completion.d
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Our own, non-special dirs
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingpkgsysconfdir=$(sysconfdir)/systemd
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldinguserunitdir=$(prefix)/lib/systemd/user
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingtmpfilesdir=$(prefix)/lib/tmpfiles.d
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingusergeneratordir=$(pkglibexecdir)/user-generators
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingpkgincludedir=$(includedir)/systemd
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# And these are the special ones for /
db920ff940978fe01db8d4de8c2a9d507bc0bbcdstoddardrootdir=@rootdir@
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingrootbindir=$(rootdir)/bin
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingrootlibexecdir=$(rootdir)/lib/systemd
c032b37ad682c1da5382258811e8e35a8ec0d78dwrowesystemgeneratordir=$(rootlibexecdir)/system-generators
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingsystemshutdowndir=$(rootlibexecdir)/system-shutdown
7b3590ada24130fe5d52ce7fbf98177e3d121a4cstoddardsystemunitdir=$(rootdir)/lib/systemd/system
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingAM_CPPFLAGS = \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -include $(top_builddir)/config.h \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
f6bd1c0924641e60dcc56cbaba27d3cb3ce4917erbb -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
f1e6cde4b93eae1d6e248a1dad14ef9017bb546dstoddard -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
db920ff940978fe01db8d4de8c2a9d507bc0bbcdstoddard -DRUNTIME_DIR=\"/run\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
-DKBD_SETFONT=\"/usr/bin/setfont\" \
-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
-DKBD_SETFONT=\"/usr/bin/setfont\" \
-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
-DKBD_SETFONT=\"/usr/bin/setfont\" \
-DKBD_LOADKEYS=\"/bin/loadkeys\" \
-DKBD_SETFONT=\"/bin/setfont\" \
-DKBD_LOADKEYS=\"/bin/loadkeys\" \
-DKBD_SETFONT=\"/bin/setfont\" \
-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
-DKBD_SETFONT=\"/usr/bin/setfont\" \
-DKBD_LOADKEYS=\"/bin/loadkeys\" \
-DKBD_SETFONT=\"/bin/setfont\" \
src/70-uaccess.rules \
src/71-seat.rules
src/73-seat-late.rules \
src/99-systemd.rules
units/getty@.service \
units/serial-getty@.service \
units/fsck@.service \
units/user@.service
src/73-seat-late.rules.in \
$(polkitpolicy_in_files:.policy.in=.policy) \
$(polkitpolicy_in_in_files:.policy.in.in=.policy)
${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}
-Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
-Wl,--version-script=$(top_srcdir)/src/libsystemd-login.sym
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
%.pc: %.pc.in Makefile
src/%.rules: src/%.rules.in Makefile
$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ || rm $@
units/user/%: units/%.m4 Makefile
${XML_IN_FILES:.xml.in=.html} \
src/73-seat-late.rules \
src/99-systemd.rules \
--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 $< && \
DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
org.freedesktop.systemd1.%.xml: systemd
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
org.freedesktop.hostname1.xml: systemd-hostnamed
$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
org.freedesktop.locale1.xml: systemd-localed
$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
org.freedesktop.timedate1.xml: systemd-timedated
$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
$(DESTDIR)$(sysconfdir)/tmpfiles.d \
$(DESTDIR)$(prefix)/lib/modules-load.d \
$(DESTDIR)$(sysconfdir)/modules-load.d \
$(DESTDIR)$(prefix)/lib/sysctl.d \
$(DESTDIR)$(sysconfdir)/sysctl.d \
$(DESTDIR)$(prefix)/lib/binfmt.d \
$(DESTDIR)$(sysconfdir)/binfmt.d
$(DESTDIR)$(systemunitdir)/sysinit.target.wants \
$(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)$(systemunitdir)/graphical.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
$(DESTDIR)$(sysconfdir)/xdg/systemd
( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
rm -f systemd-initctl.socket systemd-stdout-syslog-bridge.socket systemd-shutdownd.socket syslog.socket && \
( 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 \
media.mount && \
rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
rm -f remote-fs.target && \
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f dev-hugepages.mount \
cryptsetup.target && \
$(LN_S) ../systemd-kmsg-syslogd.service && \
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f systemd-binfmt.service \
rm -f dbus-org.freedesktop.hostname1.service && \
rm -f dbus-org.freedesktop.timedate1.service && \
rm -f dbus-org.freedesktop.locale1.service && \
( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
rm -f systemd-tmpfiles-clean.timer && \
rm -f org.freedesktop.systemd1.service && \
$(DESTDIR)$(systemunitdir)/reboot.target.wants \
$(DESTDIR)$(systemunitdir)/kexec.target.wants \
$(DESTDIR)$(systemunitdir)/poweroff.target.wants \
$(DESTDIR)$(systemunitdir)/halt.target.wants
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
rm -f plymouth-reboot.service && \
( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
rm -f plymouth-kexec.service && \
( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
rm -f plymouth-poweroff.service && \
( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
rm -f plymouth-halt.service && \
$(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f network.target && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
$(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f rc-local.service && \
( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
rm -f halt-local.service && \
( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
rm -f display-manager.service && \
$(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f rc-local.service && \
( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
rm -f halt-local.service && \
( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
rm -f display-manager.service && \
rm -f runlevel5.target && \
$(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f rc-local.service && \
rm -f local.service && \
( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
rm -f halt-local.service && \
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f var-lock.mount && \
scp man/*.html tango:public/systemd-man/