Makefile.am revision ef63833d532dd86bdba63211e6a1363cbb3ef61d
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# -*- Mode: makefile; indent-tabs-mode: t -*- */
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# This file is part of systemd.
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# Copyright 2010-2012 Lennart Poettering
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# Copyright 2010-2012 Kay Sievers
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# systemd is free software; you can redistribute it and/or modify it
685810e390056c123842842f5104daa3179cf2c9Phill Cunnington# under the terms of the GNU Lesser General Public License as published by
0d29d2c9c206eb1652fa951dd55bcc0cfa4b48feNeil Madden# the Free Software Foundation; either version 2.1 of the License, or
685810e390056c123842842f5104daa3179cf2c9Phill Cunnington# (at your option) any later version.
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# systemd is distributed in the hope that it will be useful, but
685810e390056c123842842f5104daa3179cf2c9Phill Cunnington# WITHOUT ANY WARRANTY; without even the implied warranty of
685810e390056c123842842f5104daa3179cf2c9Phill Cunnington# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# Lesser General Public License for more details.
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# You should have received a copy of the GNU Lesser General Public License
685810e390056c123842842f5104daa3179cf2c9Phill Cunnington# along with systemd; If not, see <http://www.gnu.org/licenses/>.
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitAM_MAKEFLAGS = --no-print-directory
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitSUBDIRS = . po
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# remove targets if the command fails
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit.DELETE_ON_ERROR:
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBUDEV_CURRENT=2
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBUDEV_REVISION=0
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBUDEV_AGE=1
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBGUDEV_CURRENT=1
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBGUDEV_REVISION=2
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBGUDEV_AGE=1
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_LOGIN_CURRENT=3
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_LOGIN_REVISION=2
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_LOGIN_AGE=3
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_DAEMON_CURRENT=0
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_DAEMON_REVISION=4
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_DAEMON_AGE=0
685810e390056c123842842f5104daa3179cf2c9Phill CunningtonLIBSYSTEMD_ID128_CURRENT=0
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_ID128_REVISION=8
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitLIBSYSTEMD_ID128_AGE=0
polkitpolicydir=$(datadir)/polkit-1/actions
bashcompletiondir=$(sysconfdir)/bash_completion.d
userunitdir=$(prefix)/lib/systemd/user
tmpfilesdir=$(prefix)/lib/tmpfiles.d
sysctldir=$(prefix)/lib/sysctl.d
usergeneratordir=$(prefix)/lib/systemd/user-generators
systemunitdir=$(rootprefix)/lib/systemd/system
udevlibexecdir=$(rootprefix)/lib/udev
udevrulesdir = $(udevlibexecdir)/rules.d
rootlibexecdir=$(rootprefix)/lib/systemd
-include $(top_builddir)/config.h \
-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
-I $(top_srcdir)/src/shared \
-I $(top_srcdir)/src/login \
-I $(top_srcdir)/src/journal \
-I $(top_srcdir)/src/systemd \
-I $(top_builddir)/src/core \
-I $(top_srcdir)/src/core \
-I $(top_srcdir)/src/libudev \
-I $(top_srcdir)/src/udev \
-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=\"/usr/bin/loadkeys\" \
-DKBD_SETFONT=\"/usr/bin/setfont\" \
-DKBD_LOADKEYS=\"/bin/loadkeys\" \
-DKBD_SETFONT=\"/bin/setfont\" \
-DKBD_LOADKEYS=\"/bin/loadkeys\" \
-DKBD_SETFONT=\"/bin/setfont\" \
units/getty@.service \
units/serial-getty@.service \
units/user@.service \
units/systemd-fsck@.service \
man/systemd-fsck@.service.8 \
${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
$(AM_V_GEN)$(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 ";" }' < $< > $@
src/core/syscall-list.txt: Makefile
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+\(?.*[0-9]+.*\)?/ { sub(/__NR_/, "", $$2); print $$2; }' > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
$(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[__NR_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
org.freedesktop.systemd1.%.xml: systemd
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
-Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/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/libudev/libudev.sym
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \
mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
-$(MKDIR_P) $(DESTDIR)$(sysconfdir)/udev/rules.d
rules/99-systemd.rules \
rules/42-usb-hid-pm.rules \
rules/50-udev-default.rules \
rules/60-persistent-storage-tape.rules \
rules/60-persistent-serial.rules \
rules/60-persistent-input.rules \
rules/60-persistent-alsa.rules \
rules/60-persistent-storage.rules \
rules/75-net-description.rules \
rules/75-tty-description.rules \
rules/78-sound-card.rules \
rules/80-drivers.rules \
rules/95-udev-late.rules
rules/99-systemd.rules.in \
rules/99-systemd.rules \
$(MKDIR_P) $(DESTDIR)$(systemunitdir)/sockets.target.wants
ln -sf ../systemd-udevd-control.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/systemd-udevd-control.socket
ln -sf ../systemd-udevd-kernel.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/systemd-udevd-kernel.socket
$(MKDIR_P) $(DESTDIR)$(systemunitdir)/sysinit.target.wants
ln -sf ../systemd-udevd.service $(DESTDIR)$(systemunitdir)/sysinit.target.wants/systemd-udevd.service
ln -sf ../systemd-udev-trigger.service $(DESTDIR)$(systemunitdir)/sysinit.target.wants/systemd-udev-trigger.service
$(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
-rm -rf test/sys
rules/60-cdrom_id.rules
rules/60-persistent-v4l.rules
libudev.la -lm \
rules/61-accelerometer.rules
$(includedir)/gudev-1.0/gudev
lib_LTLIBRARIES += libgudev-1.0.la
-I$(top_builddir)/src/gudev \
-I$(top_srcdir)/src/gudev \
$(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
-I$(top_srcdir)/src/gdev \
-I$(top_builddir)/src/gdev
src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libgudev-1.0.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libgudev-1.0.so && \
mv $(DESTDIR)$(libdir)/libgudev-1.0.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
$(AM_CPPFLAGS) -I src/udev/keymap
udevkeymapforcereldir = $(udevlibexecdir)/keymaps/force-release
src/udev/keymap/keys.txt: Makefile
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
rules/75-probe_mtd.rules
-Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
-version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
-Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
$(DESTDIR)$(systemunitdir)/sockets.target.wants \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants
( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
rm -f systemd-journald.socket && \
$(LN_S) ../systemd-journald.socket )
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f systemd-journald.service && \
$(LN_S) ../systemd-journald.service )
$(DESTDIR)$(prefix)/lib/binfmt.d \
$(DESTDIR)$(sysconfdir)/binfmt.d \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f systemd-binfmt.service \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f systemd-vconsole-setup.service && \
$(DESTDIR)$(systemunitdir)/shutdown.target.wants \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants
( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
rm -f systemd-random-seed-save.service && \
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f systemd-random-seed-load.service && \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f cryptsetup.target && \
man/systemd-cryptsetup@.service.8 \
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 | \
rm -f dbus-org.freedesktop.hostname1.service && \
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 | \
rm -f dbus-org.freedesktop.locale1.service && \
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)$(prefix)/lib/systemd/ntp-units.d \
$(DESTDIR)$(sysconfdir)/systemd/ntp-units.d
rm -f dbus-org.freedesktop.timedate1.service && \
-Wl,--version-script=$(top_srcdir)/src/login/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*
$(DESTDIR)$(systemunitdir)/multi-user.target.wants \
$(DESTDIR)$(localstatedir)/lib/systemd
rm -f dbus-org.freedesktop.login1.service && \
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
-e 's,@RANDOM_SEED\@,$(localstatedir)/lib/random-seed,g' \
%.pc: %.pc.in Makefile
%.rules: %.rules.in Makefile
%.sh: %.sh.in Makefile
units/user/%: units/%.m4 Makefile
$(polkitpolicy_in_in_files:.policy.in.in=.policy)
--stringparam man.output.quietly 1 \
--stringparam funcsynopsis.style ansi \
--stringparam man.th.extra1.suppress 1 \
--stringparam man.authors.section.enabled 0 \
--stringparam man.copyright.section.enabled 0
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
man/%.html: man/%.xml man/custom-html.xsl
DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
$(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)$(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 && \
( 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 && \
rm -f systemd-update-utmp-shutdown.service && \
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f systemd-remount-fs.service \
tmp.mount && \
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 && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
rm -f remote-fs.target && \
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f dev-hugepages.mount \
( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
rm -f systemd-tmpfiles-clean.timer && \
rm -f org.freedesktop.systemd1.service && \
rm -f runlevel5.target && \
rm -f local.service && \
rm -f display-manager.service )
scp man/*.html tango:public/systemd-man/
gtkdoc-rebase --html-dir=docs/libudev/html --online
rsync -av --delete docs/libudev/html/ --omit-dir-times www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd/libudev/
gtkdoc-rebase --html-dir=docs/gudev/html --online
rsync -av --delete docs/gudev/html/ --omit-dir-times www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd/gudev/
rsync -av --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd/man/