X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=21d833a4fc3f0548474a72f91ae4ccb39019e456;hb=b8079ae19b41c9b61850c796dddc601b826850e0;hp=21cac4e56f6e25b81d079d3393ef83656785ef8b;hpb=94fb446e55babb713fb24850455627acf30d999b;p=elogind.git diff --git a/Makefile.am b/Makefile.am index 21cac4e56..21d833a4f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -56,12 +56,12 @@ usergeneratordir=$(pkglibexecdir)/user-generators pkgincludedir=$(includedir)/systemd # And these are the special ones for / -rootdir=@rootdir@ -rootbindir=$(rootdir)/bin -rootlibexecdir=$(rootdir)/lib/systemd +rootprefix=@rootprefix@ +rootbindir=$(rootprefix)/bin +rootlibexecdir=$(rootprefix)/lib/systemd systemgeneratordir=$(rootlibexecdir)/system-generators systemshutdowndir=$(rootlibexecdir)/system-shutdown -systemunitdir=$(rootdir)/lib/systemd/system +systemunitdir=$(rootprefix)/lib/systemd/system CLEANFILES = EXTRA_DIST = @@ -89,6 +89,7 @@ AM_CPPFLAGS = \ -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ + -DROOTPREFIX=\"$(rootprefix)\" \ -DRUNTIME_DIR=\"/run\" \ -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ @@ -1171,6 +1172,9 @@ systemd_journald_SOURCES = \ src/acl-util.c \ src/cgroup-util.c +nodist_systemd_journald_SOURCES = \ + src/journal/journald-gperf.c + systemd_journald_CFLAGS = \ $(AM_CFLAGS) \ $(ACL_CFLAGS) @@ -1203,6 +1207,7 @@ if HAVE_XZ systemd_journalctl_SOURCES += \ src/journal/compress.c systemd_journalctl_CFLAGS = \ + $(AM_CFLAGS) \ $(XZ_CFLAGS) systemd_journalctl_LDADD += \ $(XZ_LIBS) @@ -1224,6 +1229,7 @@ test_journal_SOURCES += \ src/journal/compress.c test_journal_CFLAGS = \ + $(AM_CFLAGS) \ $(XZ_CFLAGS) test_journal_LDADD += \ @@ -1233,13 +1239,11 @@ endif libsystemd_journal_la_SOURCES = \ src/journal/sd-journal.c \ src/journal/journal-file.c \ - src/journal/compress.c \ src/journal/lookup3.c \ src/journal/journal-send.c libsystemd_journal_la_CFLAGS = \ $(AM_CFLAGS) \ - $(XZ_CFLAGS) \ -fvisibility=hidden libsystemd_journal_la_LDFLAGS = \ @@ -1249,8 +1253,18 @@ libsystemd_journal_la_LDFLAGS = \ libsystemd_journal_la_LIBADD = \ libsystemd-basic.la \ - libsystemd-id128.la \ + libsystemd-id128.la + +if HAVE_XZ +libsystemd_journal_la_SOURCES += \ + src/journal/compress.c + +libsystemd_journal_la_CFLAGS += \ + $(XZ_CFLAGS) + +libsystemd_journal_la_LIBADD += \ $(XZ_LIBS) +endif # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed libsystemd-journal-install-hook: @@ -1292,10 +1306,15 @@ dist_systemunit_DATA += \ nodist_systemunit_DATA += \ units/systemd-journald.service +dist_pkgsysconf_DATA += \ + src/journal/systemd-journald.conf + pkgconfiglib_DATA += \ src/journal/libsystemd-journal.pc journal-install-data-hook: + $(MKDIR_P) -m 0755 \ + $(DESTDIR)$(systemunitdir)/sockets.target.wants ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ rm -f systemd-journald.socket && \ $(LN_S) ../systemd-journald.socket ) @@ -1312,7 +1331,11 @@ EXTRA_DIST += \ src/journal/journal-rate-limit.h \ src/journal/libsystemd-journal.pc.in \ src/journal/libsystemd-journal.sym \ - units/systemd-journald.service.in + units/systemd-journald.service.in \ + src/journal/journald-gperf.gperf + +CLEANFILES += \ + src/journal/journald-gperf.c # ------------------------------------------------------------------------------ if ENABLE_BINFMT @@ -1335,7 +1358,8 @@ nodist_systemunit_DATA += \ binfmt-install-data-hook: $(MKDIR_P) -m 0755 \ $(DESTDIR)$(prefix)/lib/binfmt.d \ - $(DESTDIR)$(sysconfdir)/binfmt.d + $(DESTDIR)$(sysconfdir)/binfmt.d \ + $(DESTDIR)$(systemunitdir)/sysinit.target.wants ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ rm -f systemd-binfmt.service \ proc-sys-fs-binfmt_misc.automount && \ @@ -1367,6 +1391,8 @@ nodist_systemunit_DATA += \ units/systemd-vconsole-setup.service vconsole-install-data-hook: + $(MKDIR_P) -m 0755 \ + $(DESTDIR)$(systemunitdir)/sysinit.target.wants ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ rm -f systemd-vconsole-setup.service && \ $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service ) @@ -1471,6 +1497,9 @@ systemd_random_seed_LDADD = \ libsystemd-basic.la randomseed-install-data-hook: + $(MKDIR_P) -m 0755 \ + $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ + $(DESTDIR)$(systemunitdir)/sysinit.target.wants ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ rm -f systemd-random-seed-save.service && \ $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service ) @@ -1515,6 +1544,8 @@ systemd_cryptsetup_generator_LDADD = \ libsystemd-basic.la cryptsetup-install-data-hook: + $(MKDIR_P) -m 0755 \ + $(DESTDIR)$(systemunitdir)/sysinit.target.wants ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ rm -f cryptsetup.target && \ $(LN_S) ../cryptsetup.target cryptsetup.target ) @@ -1856,6 +1887,8 @@ polkitpolicy_in_files += \ src/login/org.freedesktop.login1.policy.in logind-install-data-hook: + $(MKDIR_P) -m 0755 \ + $(DESTDIR)$(systemunitdir)/multi-user.target.wants ( cd $(DESTDIR)$(systemunitdir) && \ rm -f dbus-org.freedesktop.login1.service && \ $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service) @@ -2051,11 +2084,11 @@ XSLTPROC_PROCESS_MAN_IN = \ XSLTPROC_PROCESS_HTML = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) man/custom-html.xsl $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< XSLTPROC_PROCESS_HTML_IN = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) man/custom-html.xsl $< && \ + $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< && \ mv ${@:.in=} $@ man/%.1: man/%.xml @@ -2364,7 +2397,7 @@ DISTCHECK_CONFIGURE_FLAGS = \ --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ - --with-rootdir=$$dc_install_base/$(rootdir) + --with-rootprefix=$$dc_install_base/$(rootprefix) upload: all distcheck cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/