summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am116
1 files changed, 116 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..1bae8e9
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,116 @@
+SUBDIRS = \
+ images
+
+NULL =
+
+man_MANS = \
+ mate-screensaver.1 \
+ mate-screensaver-command.1 \
+ mate-screensaver-preferences.1 \
+ $(NULL)
+
+@INTLTOOL_SCHEMAS_RULE@
+
+schemasdir = @MATECONF_SCHEMA_FILE_DIR@
+schemas_in_files = mate-screensaver.schemas.in
+schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
+
+@INTLTOOL_DESKTOP_RULE@
+
+desktopdir = $(datadir)/applications
+desktop_in_files = mate-screensaver-preferences.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+@INTLTOOL_DIRECTORY_RULE@
+
+directorydir = $(datadir)/desktop-directories
+directory_in_files = \
+ mate-screensaver.directory.in \
+ $(NULL)
+directory_DATA = $(directory_in_files:.directory.in=.directory)
+
+menudir = $(sysconfdir)/xdg/menus
+menu_DATA = \
+ mate-screensavers.menu \
+ $(NULL)
+
+gtkbuilderdir = $(pkgdatadir)
+gtkbuilder_DATA = \
+ mate-screensaver-preferences.ui \
+ lock-dialog-default.ui \
+ $(NULL)
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = mate-screensaver.pc
+
+dbussessionservicedir = $(DBUS_SESSION_SERVICE_DIR)
+dbussessionservice_DATA = org.mate.ScreenSaver.service
+
+EXTRA_DIST = \
+ $(schemas_in_files) \
+ $(desktop_in_files) \
+ $(directory_in_files) \
+ $(gtkbuilder_DATA) \
+ $(man_MANS) \
+ mate-screensaver \
+ mate-screensaver.pc.in \
+ org.mate.ScreenSaver.service.in\
+ xscreensaver-config.xsl \
+ migrate-xscreensaver-config.sh \
+ $(NULL)
+
+DISTCLEANFILES = \
+ $(schemas_DATA) \
+ $(desktop_DATA) \
+ $(directory_DATA) \
+ $(NULL)
+
+MAINTAINERCLEANFILES = \
+ *~ \
+ Makefile.in
+
+if MATECONF_SCHEMAS_INSTALL
+# don't do this if we are building in eg. rpm
+install-data-local: $(schemas_DATA)
+ if test -z "$(DESTDIR)" ; then \
+ for p in $(schemas_DATA) ; do \
+ MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
+ done \
+ fi
+else
+install-data-local:
+endif
+
+install-data-hook:
+ @system=`uname`; \
+ if test -f /usr/include/security/pam_appl.h; then \
+ if test '!' -d $(DESTDIR)$(PAM_PREFIX)/pam.d; then \
+ $(mkinstalldirs) $(DESTDIR)$(PAM_PREFIX)/pam.d; \
+ chmod 755 $(DESTDIR)$(PAM_PREFIX)/pam.d; \
+ fi; \
+ if test $$system = Linux; then \
+ if test '!' -f $(DESTDIR)$(PAM_PREFIX)/pam.d/mate-screensaver; then \
+ $(INSTALL_DATA) mate-screensaver $(DESTDIR)$(PAM_PREFIX)/pam.d/mate-screensaver; \
+ fi; \
+ if test "x$(PAM_PREFIX)" != "x/etc/pam.d"; then \
+ echo "***" ; \
+ echo "*** Warning: mate-screensaver has been compiled with support for" ; \
+ echo "*** Pluggable Authentication Modules (PAM). However, you may need to" ; \
+ echo "*** manually install $(PAM_PREFIX)/pam.d/mate-screensaver" ; \
+ echo "*** to /etc/pam.d/mate-screensaver. Otherwise, unlocking might" ; \
+ echo "*** not work." ; \
+ echo "***" ; \
+ echo "*** Note: If you are using SuSE/Novell you may have to modify this file." ; \
+ echo "***" ; \
+ fi; \
+ fi; \
+ if test $$system = SunOS; then \
+ echo "***" ; \
+ echo "*** Warning: mate-screensaver has been compiled with support for" ; \
+ echo "*** Pluggable Authentication Modules (PAM). However, you" ; \
+ echo "*** need to manually add authentication for mate-screensaver in" ; \
+ echo "*** $(PAM_PREFIX)/pam.conf or /etc/pam.conf." ; \
+ echo "*** Otherwise, unlocking might not work." ; \
+ echo "***" ; \
+ fi; \
+ fi