X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=data%2FMakefile.am;h=79660251a4d16e64ba44cbe493192bf699cb69ae;hb=761de5f5ba44cc94c98adf2b68809ea453d6bdfa;hp=669742c878f0117737ac61f3e8078e7ebd767b70;hpb=794bbc93d05e090d7fef7b39f6f0237cbb26fa31;p=evince.git diff --git a/data/Makefile.am b/data/Makefile.am index 669742c8..79660251 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -18,19 +18,11 @@ uidir = $(pkgdatadir) ui_DATA = \ evince-ui.xml \ evince-toolbar.xml \ - evince-preview-toolbar.xml \ - hand-open.png \ - $(NULL) + hand-open.png -# -# Glade -# - -gladedir = $(pkgdatadir) -glade_DATA = \ - evince-password.glade \ - evince-properties.glade \ - $(NULL) +if ENABLE_PREVIEWER +ui_DATA += evince-previewer-ui.xml +endif # # Desktop file @@ -44,11 +36,23 @@ 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 # # GConf schema # +if WITH_GCONF @INTLTOOL_SCHEMAS_RULE@ schema_in_files = evince.schemas.in @@ -79,18 +83,28 @@ if GCONF_SCHEMAS_INSTALL fi endif +else + +install-schemas: +uninstall-schemas: + +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 install, run this:"; \ + echo "*** Icon cache not updated. After (un)install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi @@ -99,13 +113,14 @@ update-icon-cache: # Extra files to be included in the tarball # -EXTRA_DIST = \ - $(glade_DATA) \ - $(ui_DATA) \ - $(DESKTOP_IN_FILES) \ - $(schema_in_files) \ - $(man_MANS) \ - $(NULL) +EXTRA_DIST = \ + $(ui_DATA) \ + $(DESKTOP_IN_FILES) \ + $(schema_in_files) \ + org.gnome.evince.Daemon.service.in \ + $(man_MANS) \ + evince.ico \ + $(NULL) # # Clean up properly @@ -113,6 +128,7 @@ EXTRA_DIST = \ DISTCLEANFILES = \ $(DESKTOP_FILES) \ - $(schema_DATA) - + $(schema_DATA) \ + $(service_DATA) +-include $(top_srcdir)/git.mk