diff options
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..c68a309 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,66 @@ +SUBDIRS = icons + +bin_SCRIPTS = mate-wm + +uidir = $(pkgdatadir) +ui_DATA = \ + session-properties.ui \ + gsm-inhibit-dialog.ui + +xsessiondir = $(datadir)/xsessions +xsession_in_files = mate.desktop.in +xsession_DATA = $(xsession_in_files:.desktop.in=.desktop) + +desktopdir = $(datadir)/applications +desktop_in_files = mate-session-properties.desktop.in +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) + +if USE_MATE_WM +desktop_in_files += mate-wm.desktop.in +endif + +@INTLTOOL_DESKTOP_RULE@ + +schemas_in_in_files = mate-session.schemas.in.in +schemas_in_files = $(schemas_in_in_files:.schemas.in.in=.schemas.in) +schemasdir = $(MATECONF_SCHEMA_FILE_DIR) +schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) + +$(schemas_in_files): $(schemas_in_files).in Makefile + $(AM_V_GEN)sed \ + -e "s|\@DEFAULT_WM\@|$(DEFAULT_WM)|" \ + $< > $@ + +@INTLTOOL_SCHEMAS_RULE@ + +if MATECONF_SCHEMAS_INSTALL +install-data-local: + 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 +uninstall-local: + for p in $(schema_DATA) ; do \ + MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-uninstall-rule $(top_builddir)/data/$$p ; \ + done +endif + +EXTRA_DIST = \ + mate-wm \ + $(xsession_in_files) \ + $(schemas_in_in_files) \ + $(ui_DATA) \ + $(pixmap_DATA_dist) + +CLEANFILES = \ + $(schemas_in_files) \ + $(schemas_DATA) \ + $(xsession_DATA) \ + $(desktop_DATA) \ + mate-wm.desktop + +DISTCLEANFILES = \ + $(desktop_in_files) + +-include $(top_srcdir)/git.mk |