X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=data%2FMakefile.am;h=feb52301527bcf88e1a41a07aab9cbd3c00c0b6f;hb=3870e956f822f915f730d82c87d5fdd05dc97551;hp=e543c3bee23356d0de93a7a815f2b2de47737c47;hpb=731969528297b9bfbfff7f14f3212a6b1f569d5c;p=evince.git diff --git a/data/Makefile.am b/data/Makefile.am index e543c3be..feb52301 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,16 +1,108 @@ -NULL = +SUBDIRS = icons +NULL= + +install-data-local: update-icon-cache + +# +# man file +# + +man_MANS=evince.1 + +# +# UI descriptions +# uidir = $(pkgdatadir) ui_DATA = \ evince-ui.xml \ - $(NULL) + evince-toolbar.xml \ + hand-open.png -stockdir = $(datadir)/pixmaps/evince -stock_DATA = \ - ev-stock-zoom-fit-width.png \ - $(NULL) +if ENABLE_PREVIEWER +ui_DATA += evince-previewer-ui.xml +endif + +# +# Desktop file +# + +@INTLTOOL_DESKTOP_RULE@ + +DESKTOP_IN_FILES= evince.desktop.in.in +DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop) + +desktopdir = $(datadir)/applications +desktop_DATA = $(DESKTOP_FILES) + +# +# DBus servide file +# +if ENABLE_DBUS +servicedir = $(datadir)/dbus-1/services +service_in_files = org.gnome.evince.Daemon.service.in +service_DATA = $(service_in_files:.service.in=.service) + +$(service_DATA): $(service_in_files) Makefile + $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ +endif -EXTRA_DIST = \ - $(stock_DATA) \ - $(ui_DATA) \ +# +# GSettings schema +# + +# gsettingsschemadir and gschema_compile are defined by the GLIB_GSETTINGS +# macro in configure.ac +gsettingsschema_in_files = org.gnome.Evince.gschema.xml.in +gsettingsschema_DATA = $(gsettingsschema_in_files:.xml.in=.xml) +@INTLTOOL_XML_NOMERGE_RULE@ +# This rule will check your schemas for validity before installation +# Uncomment when porting is done +# GSETTINGS_CHECK_RULE +if GSETTINGS_SCHEMAS_INSTALL +install-data-hook: + $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --allow-any-name $(DESTDIR)$(gsettingsschemadir) --targetdir=$(DESTDIR)$(gsettingsschemadir) +endif + +# +# GTK icon cache +# + +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: update-icon-cache +uninstall-hook: update-icon-cache + +update-icon-cache: + if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. After (un)install, run this:"; \ + echo "*** $(gtk_update_icon_cache)"; \ + fi + + +# +# Extra files to be included in the tarball +# + +EXTRA_DIST = \ + $(ui_DATA) \ + $(DESKTOP_IN_FILES) \ + $(gsettingsschema_in_files) \ + org.gnome.evince.Daemon.service.in \ + $(man_MANS) \ + evince.ico \ $(NULL) + +# +# Clean up properly +# + +DISTCLEANFILES = \ + $(DESKTOP_FILES) \ + $(gsettingsschema_DATA) \ + $(service_DATA) + +-include $(top_srcdir)/git.mk