X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=25ce3f4704fba9ac8be8de61c9b224a5e8a9c889;hp=db0db19c31e1a81e1a9031293744390e0bf180cc;hb=9b7115360516f2b6ec1eef1523157ff528878880;hpb=02f130cbd943c5c177cb0e711db0447cac685d67 diff --git a/Makefile.am b/Makefile.am index db0db19c3..25ce3f470 100644 --- a/Makefile.am +++ b/Makefile.am @@ -652,7 +652,8 @@ EXTRA_DIST += \ src/logind-session.h \ src/logind-user.h \ src/logind-acl.h \ - src/dbus-loop.h + src/dbus-loop.h \ + src/spawn-agent.h MANPAGES = \ man/systemd.1 \ @@ -1434,6 +1435,19 @@ libsystemd_login_la_LDFLAGS = \ libsystemd_login_la_LIBADD = \ libsystemd-basic.la +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed +libsystemd-login-install-hook: + if test "$(libdir)" != "$(rootlibdir)"; then \ + mkdir -p $(DESTDIR)$(rootlibdir) && \ + so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \ + so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ + ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \ + mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \ + fi + +libsystemd-login-uninstall-hook: + rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* + SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ @@ -1490,6 +1504,7 @@ CLEANFILES = \ $(nodist_man_MANS) \ ${XML_IN_FILES:.xml.in=.html} \ $(pkgconfigdata_DATA) \ + $(pkgconfiglib_DATA) \ $(nodist_polkitpolicy_DATA) \ src/73-seat-late.rules \ src/99-systemd.rules @@ -1847,9 +1862,9 @@ if HAVE_SYSV_COMPAT $(LN_S) ../var-lock.mount var-lock.mount ) endif -install-exec-hook: libsystemd-daemon-install-hook +install-exec-hook: libsystemd-daemon-install-hook libsystemd-login-install-hook -uninstall-hook: libsystemd-daemon-uninstall-hook +uninstall-hook: libsystemd-daemon-uninstall-hook libsystemd-login-uninstall-hook DISTCHECK_CONFIGURE_FLAGS = \ --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \