[gdm] build-goo: fix distcheck
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] build-goo: fix distcheck
- Date: Thu, 22 Jun 2017 19:00:28 +0000 (UTC)
commit d126c5a535d595a201cb8fe0b933738018101398
Author: Ray Strode <rstrode redhat com>
Date: Thu Jun 22 14:28:46 2017 -0400
build-goo: fix distcheck
Makefile.am | 2 +-
configure.ac | 2 ++
data/Makefile.am | 23 ++++++-----------------
3 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index d3c46c8..a6409e1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,4 +30,4 @@ EXTRA_DIST = \
DISTCLEANFILES = \
$(NULL)
-AM_DISTCHECK_CONFIGURE_FLAGS = --enable-split-authentication --enable-introspection
+AM_DISTCHECK_CONFIGURE_FLAGS = --enable-split-authentication --enable-introspection
--without-systemdsystemunitdir
diff --git a/configure.ac b/configure.ac
index 18c330a..59edd7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -948,6 +948,8 @@ if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST(SYSTEMD_SYSTEM_UNIT_DIR, [$with_systemdsystemunitdir])
fi
+AM_CONDITIONAL(INSTALL_SYSTEMD_UNITS, test x$with_systemdsystemunitdir != xno)
+
dnl ---------------------------------------------------------------------------
dnl - Check for plymouth support
dnl ---------------------------------------------------------------------------
diff --git a/data/Makefile.am b/data/Makefile.am
index d011134..f2875fc 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -198,6 +198,11 @@ gdm.service: $(srcdir)/gdm.service.in
systemdsystemunit += gdm.service
CLEANFILES += gdm.service
+if INSTALL_SYSTEMD_UNITS
+systemdsystemunit_DATA=$(systemdsystemunit)
+systemdsystemunitdir=$(SYSTEMD_SYSTEM_UNIT_DIR)
+endif
+
Xsession_files =
if ENABLE_GDM_XSESSION
@@ -227,13 +232,7 @@ uninstall-hook:
$(DESTDIR)$(xauthdir) \
$(DESTDIR)$(PAM_PREFIX)/pam.d
- if test -n "$(systemdsystemunit)"; then \
- rm -f $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)/$(systemdsystemunit); \
- rmdir $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR) || : ; \
- fi
-
-
-install-data-hook: gdm.conf-custom $(Xsession_files) Init PostSession PreSession $(systemdsystemunit)
+install-data-hook: gdm.conf-custom $(Xsession_files) Init PostSession PreSession
if test '!' -d $(DESTDIR)$(gdmconfdir); then \
$(mkinstalldirs) $(DESTDIR)$(gdmconfdir); \
chmod 755 $(DESTDIR)$(gdmconfdir); \
@@ -309,16 +308,6 @@ endif
chown root:gdm $(DESTDIR)$(xauthdir) || : ; \
fi
- if test '!' -d $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR); then \
- $(mkinstalldirs) $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR); \
- chmod 0755 $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR); \
- chown root:root $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR) || : ; \
- fi
-
- if test -n "$(systemdsystemunit)"; then \
- $(INSTALL_DATA) $(builddir)/$(systemdsystemunit)
$(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)/$(systemdsystemunit); \
- fi
-
if test '!' -d $(DESTDIR)$(screenshotdir); then \
$(mkinstalldirs) $(DESTDIR)$(screenshotdir); \
chmod 0755 $(DESTDIR)$(screenshotdir); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]