ui_DATA = \
evince-ui.xml \
evince-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
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
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
# 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) \
+ $(NULL)
#
# Clean up properly
DISTCLEANFILES = \
$(DESKTOP_FILES) \
- $(schema_DATA)
-
+ $(schema_DATA) \
+ $(service_DATA)
+-include $(top_srcdir)/git.mk