summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am21
1 files changed, 15 insertions, 6 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 7d521bbb..1bc8d7dc 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -16,11 +16,6 @@ xauthdir = $(GDM_XAUTH_DIR)
screenshotdir = $(GDM_SCREENSHOT_DIR)
cachedir = $(localstatedir)/cache/gdm
-Xsession: $(srcdir)/Xsession.in
- sed -e 's,[@]XSESSION_SHELL[@],$(XSESSION_SHELL),g' \
- -e 's,[@]libexecdir[@],$(libexecdir),g' \
- <$(srcdir)/Xsession.in >Xsession
-
Init: $(srcdir)/Init.in
sed -e 's,[@]X_PATH[@],$(X_PATH),g' \
<$(srcdir)/Init.in >Init
@@ -195,6 +190,18 @@ CLEANFILES += gdm.service
endif
+Xsession_files =
+if ENABLE_GDM_XSESSION
+
+Xsession: $(srcdir)/Xsession.in
+ sed -e 's,[@]XSESSION_SHELL[@],$(XSESSION_SHELL),g' \
+ -e 's,[@]libexecdir[@],$(libexecdir),g' \
+ <$(srcdir)/Xsession.in >Xsession
+Xsession_files += Xsession
+CLEANFILES += Xsession
+
+endif
+
EXTRA_DIST += gdm.service.in
uninstall-hook:
@@ -218,7 +225,7 @@ uninstall-hook:
fi
-install-data-hook: gdm.conf-custom Xsession Init PostSession PreSession $(systemdsystemunit)
+install-data-hook: gdm.conf-custom $(Xsession_files) Init PostSession PreSession $(systemdsystemunit)
if test '!' -d $(DESTDIR)$(gdmconfdir); then \
$(mkinstalldirs) $(DESTDIR)$(gdmconfdir); \
chmod 755 $(DESTDIR)$(gdmconfdir); \
@@ -228,7 +235,9 @@ install-data-hook: gdm.conf-custom Xsession Init PostSession PreSession $(system
chmod 644 $(DESTDIR)$(GDM_CUSTOM_CONF); \
fi
+if ENABLE_GDM_XSESSION
$(INSTALL_SCRIPT) Xsession $(DESTDIR)$(gdmconfdir)/Xsession
+endif
if test '!' -d $(DESTDIR)$(initdir); then \
$(mkinstalldirs) $(DESTDIR)$(initdir); \