X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=data%2FMakefile.am;h=35bb0a12d10ca99b0bd4093e30455c5ed77d9545;hb=9e5880e71caf9f4737b8a4f630e7183b8ac484ed;hp=2ff2f59caa575f30282433989149d6f8c2108fbc;hpb=2ff8c1eabbd96a9366fbbdadc396932101ed3821;p=evince.git diff --git a/data/Makefile.am b/data/Makefile.am index 2ff2f59c..35bb0a12 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,34 +1,70 @@ @INTLTOOL_DESKTOP_RULE@ +@INTLTOOL_SCHEMAS_RULE@ NULL = uidir = $(pkgdatadir) ui_DATA = \ evince-ui.xml \ + evince-toolbar.xml \ + hand-open.png \ $(NULL) gladedir = $(pkgdatadir) glade_DATA = \ evince-password.glade \ + evince-properties.glade \ $(NULL) -stockdir = $(datadir)/pixmaps/evince -stock_DATA = \ - ev-stock-zoom-fit-width.png \ - $(NULL) - -DESKTOP_IN_FILES= evince.desktop.in -DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in=.desktop) +DESKTOP_IN_FILES= evince.desktop.in.in +DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop) desktopdir = $(datadir)/applications desktop_DATA = $(DESKTOP_FILES) +schema_in_files = evince.schemas.in +schemadir = $(GCONF_SCHEMA_FILE_DIR) +schema_DATA = $(schema_in_files:.schemas.in=.schemas) + +icon_16dir = $(datadir)/icons/hicolor/16x16/apps +icon_16_DATA = evince-16.png +icon_22dir = $(datadir)/icons/hicolor/22x22/apps +icon_22_DATA = evince-22.png +icondir = $(datadir)/icons/hicolor/48x48/apps +icon_DATA = evince.png +svgicondir = $(datadir)/icons/hicolor/scalable/apps +svgicon_DATA = evince.svg +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: +if GCONF_SCHEMAS_INSTALL + if test -z "$(DESTDIR)" ; then \ + for p in $(schema_DATA) ; do \ + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p >&1 > /dev/null; \ + done \ + fi +endif + if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. After install, run this:"; \ + echo "*** $(gtk_update_icon_cache)"; \ + fi + EXTRA_DIST = \ - $(stock_DATA) \ $(glade_DATA) \ $(ui_DATA) \ $(DESKTOP_IN_FILES) \ - $(NULL) + $(schema_in_files) \ + $(icon_16_DATA) \ + $(icon_22_DATA) \ + $(icon_DATA) \ + $(svgicon_DATA) \ + $(NULL) DISTCLEANFILES = \ - $(DESKTOP_FILES) + $(DESKTOP_FILES) \ + $(schema_DATA) + +